Package org.h2.test.bench
Class TestPerformance
- java.lang.Object
-
- org.h2.test.bench.TestPerformance
-
- All Implemented Interfaces:
org.h2.test.bench.Database.DatabaseTest
public class TestPerformance extends java.lang.Object implements org.h2.test.bench.Database.DatabaseTestThe main controller class of the benchmark application. To run the benchmark, call the main method of this class.
-
-
Constructor Summary
Constructors Constructor Description TestPerformance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCollect()Whether data needs to be collected.static voidmain(java.lang.String... args)This method is called when executing this sample application.voidtrace(java.lang.String msg)Print a message to system out if trace is enabled.
-
-
-
Method Detail
-
main
public static void main(java.lang.String... args) throws java.lang.ExceptionThis method is called when executing this sample application.- Parameters:
args- the command line parameters- Throws:
java.lang.Exception
-
trace
public void trace(java.lang.String msg)
Description copied from interface:org.h2.test.bench.Database.DatabaseTestPrint a message to system out if trace is enabled.- Specified by:
tracein interfaceorg.h2.test.bench.Database.DatabaseTest- Parameters:
msg- the message
-
isCollect
public boolean isCollect()
Description copied from interface:org.h2.test.bench.Database.DatabaseTestWhether data needs to be collected.- Specified by:
isCollectin interfaceorg.h2.test.bench.Database.DatabaseTest- Returns:
- true if yes
-
-