Notes:
Running the Benchmark
JDBCBenchMark runs a series of benchmark tests against a database accessed via a JDBC driver. The optional command-line argument indicates one of the following JDBC drivers against which to run the benchmark:
After a benchmark test is run, the execution log displays the benchmark results. The timing values are in milliseconds. Please note that the first time you run this sample with an empty database you will get some messages that might seem as if an exception has been thrown. This is because the application will try to drop a table that does not exist yet and also because the exception handler for that condition merely prints the stack trace. This is all right for the first run but you should not see the message for subsequent runs.
Configuring this benchmark for other JDBC databases
To configure these benchmark tests for your own database, update the getUrl(), getUser(), and getPassword() methods at the end of each class derived from JDBCDriver, and pass the appropriate driver name as a parameter.