public class BenchB extends java.lang.Object implements Bench, java.lang.Runnable
See also http://www.tpc.org/tpcb
| Constructor and Description |
|---|
BenchB() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the name of the test.
|
protected int |
getTransactionsPerClient(int size)
Get the number of transactions per client.
|
void |
init(org.h2.test.bench.Database db,
int size)
Initialize the database.
|
void |
run() |
void |
runTest()
Run the test.
|
void |
setThreadCount(int threadCount) |
public void init(org.h2.test.bench.Database db,
int size)
throws java.sql.SQLException
Benchprotected int getTransactionsPerClient(int size)
size - test sizepublic void run()
run in interface java.lang.Runnablepublic void runTest()
throws java.lang.Exception
Benchpublic java.lang.String getName()
Benchpublic void setThreadCount(int threadCount)