|
|
@ -58,6 +58,7 @@ public class Benchmark1
|
|
|
|
System.out.println("\nMixedBench");
|
|
|
|
System.out.println("\nMixedBench");
|
|
|
|
System.out.println(" Warming up JIT");
|
|
|
|
System.out.println(" Warming up JIT");
|
|
|
|
benchmarks.startMixedBench();
|
|
|
|
benchmarks.startMixedBench();
|
|
|
|
|
|
|
|
benchmarks.startMixedBench();
|
|
|
|
System.out.println(" MixedBench Final Timing Runs");
|
|
|
|
System.out.println(" MixedBench Final Timing Runs");
|
|
|
|
benchmarks.startMixedBench();
|
|
|
|
benchmarks.startMixedBench();
|
|
|
|
benchmarks.startMixedBench();
|
|
|
|
benchmarks.startMixedBench();
|
|
|
@ -67,6 +68,7 @@ public class Benchmark1
|
|
|
|
System.out.println("\nBoneBench");
|
|
|
|
System.out.println("\nBoneBench");
|
|
|
|
System.out.println(" Warming up JIT");
|
|
|
|
System.out.println(" Warming up JIT");
|
|
|
|
benchmarks.startSillyBench();
|
|
|
|
benchmarks.startSillyBench();
|
|
|
|
|
|
|
|
benchmarks.startSillyBench();
|
|
|
|
System.out.println(" BoneBench Final Timing Run");
|
|
|
|
System.out.println(" BoneBench Final Timing Run");
|
|
|
|
benchmarks.startSillyBench();
|
|
|
|
benchmarks.startSillyBench();
|
|
|
|
benchmarks.startSillyBench();
|
|
|
|
benchmarks.startSillyBench();
|
|
|
@ -83,7 +85,6 @@ public class Benchmark1
|
|
|
|
config.setConnectionTimeout(8000);
|
|
|
|
config.setConnectionTimeout(8000);
|
|
|
|
config.setIdleTimeout(TimeUnit.MINUTES.toMillis(30));
|
|
|
|
config.setIdleTimeout(TimeUnit.MINUTES.toMillis(30));
|
|
|
|
config.setJdbc4ConnectionTest(true);
|
|
|
|
config.setJdbc4ConnectionTest(true);
|
|
|
|
config.setPoolName("This has spaces");
|
|
|
|
|
|
|
|
config.setDataSourceClassName("com.zaxxer.hikari.mocks.StubDataSource");
|
|
|
|
config.setDataSourceClassName("com.zaxxer.hikari.mocks.StubDataSource");
|
|
|
|
|
|
|
|
|
|
|
|
HikariDataSource ds = new HikariDataSource(config);
|
|
|
|
HikariDataSource ds = new HikariDataSource(config);
|
|
|
@ -94,7 +95,7 @@ public class Benchmark1
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Class.forName("com.zaxxer.hikari.performance.StubDriver");
|
|
|
|
Class.forName("com.zaxxer.hikari.mocks.StubDriver");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (ClassNotFoundException e)
|
|
|
|
catch (ClassNotFoundException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|