public class FinalizeConnection extends Object
To run this and other benchmarks (you can run the class from within IDE):
mvn package && java -classpath postgresql-driver.jar:target/benchmarks.jar
-Duser=postgres -Dpassword=postgres -Dport=5433 -wi 10 -i 10 -f 1
To run with profiling:
java -classpath postgresql-driver.jar:target/benchmarks.jar -prof gc -f 1 -wi
10 -i 10 | Constructor and Description |
|---|
FinalizeConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
baseline() |
Connection |
createAndClose() |
static void |
main(String[] args) |
void |
setUp() |
public void setUp()
throws SQLException
SQLExceptionpublic void baseline()
throws SQLException
SQLExceptionpublic Connection createAndClose() throws SQLException
SQLExceptionpublic static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
org.openjdk.jmh.runner.RunnerExceptionCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.