Using a stub-JDBC implementation to isolate and measure the overhead of HikariCP, comparative benchmarks were performed on a commodity PC. The next fastest connection pool was BoneCP.
And how does it achieve such incredible performance? If you’re really technically minded, read here. Otherwise, just drop it in and let your code run like its pants are on fire.
Java 7 and Java 8 maven artifact:
<dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> <version>2.4.5</version> <scope>compile</scope> </dependency>
Java 6 maven artifact:
<dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP-java6</artifactId> <version>2.3.13</version> <scope>compile</scope> </dependency>
Initialization and Configuration
See the main project page for initialization examples.
You can find information about the configuration properties here.
Google discussion group HikariCP here.
- Java 6 and above
- slf4j library