Package org.h2.test.bench
Interface Bench
-
- All Known Implementing Classes:
BenchA,BenchB,BenchC,BenchSimple
public interface BenchThe interface for benchmark tests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()Get the name of the test.voidinit(org.h2.test.bench.Database db, int size)Initialize the database.voidrunTest()Run the test.
-
-
-
Method Detail
-
init
void init(org.h2.test.bench.Database db, int size) throws java.sql.SQLExceptionInitialize the database. This includes creating tables and inserting data.- Parameters:
db- the database objectsize- the amount of data- Throws:
java.sql.SQLException
-
runTest
void runTest() throws java.lang.ExceptionRun the test.- Throws:
java.lang.Exception
-
getName
java.lang.String getName()
Get the name of the test.- Returns:
- the test name
-
-