| testsuite.BaseTestCase testsuite.perf.BasePerfTest
All known Subclasses: testsuite.perf.LoadStorePerfTest,
BasePerfTest | abstract public class BasePerfTest extends BaseTestCase (Code) | | Base class for performance test cases. Handles statistics.
author: Mark Matthews |
Method Summary | |
protected void | addResult(double value) Adds one test result to the statistics. | protected void | doIterations(int numIterations) Calls doIteration() the numIterations times, displaying
the mean, std, margin of error and confidence level. | abstract protected void | doOneIteration() Sub-classes should override this to perform the operation to be measured. | protected double | getCurrentConfidence() Returns the current confidence level. | protected double | getMarginOfError() Returns the current margin of error. | public double | getMeanValue() Returns the meanValue. | protected double | getStandardDeviationP() Returns the current STDDEV. | protected synchronized void | reportResults(String additionalMessage) Reports the current results to STDOUT, preceeded by
additionalMessage if not null. |
BasePerfTest | public BasePerfTest(String name)(Code) | | Creates a new BasePerfTest object.
Parameters: name - the testcase name to perform. |
addResult | protected void addResult(double value)(Code) | | Adds one test result to the statistics.
Parameters: value - a single result representing the value being measured in thetest. |
doIterations | protected void doIterations(int numIterations) throws Exception(Code) | | Calls doIteration() the numIterations times, displaying
the mean, std, margin of error and confidence level.
Parameters: numIterations - the number of iterations to perform ( < 30) throws: Exception - if an error occurs. |
doOneIteration | abstract protected void doOneIteration() throws Exception(Code) | | Sub-classes should override this to perform the operation to be measured.
throws: Exception - if an error occurs. |
getCurrentConfidence | protected double getCurrentConfidence()(Code) | | Returns the current confidence level.
the current confindence level. |
getMarginOfError | protected double getMarginOfError()(Code) | | Returns the current margin of error.
the current margin of error. |
getMeanValue | public double getMeanValue()(Code) | | Returns the meanValue.
double |
getStandardDeviationP | protected double getStandardDeviationP()(Code) | | Returns the current STDDEV.
the current STDDEV |
reportResults | protected synchronized void reportResults(String additionalMessage)(Code) | | Reports the current results to STDOUT, preceeded by
additionalMessage if not null.
Parameters: additionalMessage - the additional message to print, or null if no message. |
Methods inherited from testsuite.BaseTestCase | protected void cleanupTempFiles(File exampleTempFile, String tempfilePrefix)(Code)(Java Doc) protected void closeMemberJDBCResources()(Code)(Java Doc) protected void createFunction(String functionName, String functionDefn) throws SQLException(Code)(Java Doc) protected void createProcedure(String procedureName, String procedureDefn) throws SQLException(Code)(Java Doc) protected void createSchemaObject(String objectType, String objectName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void createTable(String tableName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void dropFunction(String functionName) throws SQLException(Code)(Java Doc) protected void dropProcedure(String procedureName) throws SQLException(Code)(Java Doc) protected void dropSchemaObject(String objectType, String objectName) throws SQLException(Code)(Java Doc) protected void dropTable(String tableName) throws SQLException(Code)(Java Doc) protected Connection getAdminConnection() throws SQLException(Code)(Java Doc) protected Connection getAdminConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, Properties props) throws SQLException(Code)(Java Doc) protected int getInstanceNumber()(Code)(Java Doc) protected String getMysqlVariable(Connection c, String variableName) throws SQLException(Code)(Java Doc) protected String getMysqlVariable(String variableName) throws SQLException(Code)(Java Doc) protected Properties getPropertiesFromTestsuiteUrl() throws SQLException(Code)(Java Doc) protected int getRowCount(String tableName) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(Connection c, int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleValue(String tableName, String columnName, String whereClause) throws SQLException(Code)(Java Doc) protected Object getSingleValueWithQuery(String query) throws SQLException(Code)(Java Doc) protected boolean isAdminConnectionConfigured()(Code)(Java Doc) protected boolean isClassAvailable(String classname)(Code)(Java Doc) protected boolean isRunningOnJRockit()(Code)(Java Doc) protected boolean isRunningOnJdk131()(Code)(Java Doc) protected boolean isServerRunningOnWindows() throws SQLException(Code)(Java Doc) public void logDebug(String message)(Code)(Java Doc) protected File newTempBinaryFile(String name, long size) throws IOException(Code)(Java Doc) protected String randomString()(Code)(Java Doc) final protected boolean runLongTests()(Code)(Java Doc) protected boolean runMultiHostTests()(Code)(Java Doc) protected boolean runTestIfSysPropDefined(String propName)(Code)(Java Doc) public void setUp() throws Exception(Code)(Java Doc) public void tearDown() throws Exception(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor) throws SQLException(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor, int subminor) throws SQLException(Code)(Java Doc)
|
|
|