public class StatementTest extends Object
Statement vs PreparedStatement.
This package contains micro-benchmarks to test calcite performance.
To run this and other benchmarks:
mvn package &&
java -jar ./target/ubenchmarks.jar -wi 5 -i 5 -f 1
To run with profiling:
java -Djmh.stack.lines=10 -jar ./target/ubenchmarks.jar
-prof hs_comp,hs_gc,stack -f 1 -wi 5
| Modifier and Type | Class and Description |
|---|---|
static class |
StatementTest.Department
Department record.
|
static class |
StatementTest.Employee
Employee record.
|
static class |
StatementTest.HrConnection
Connection to be used during tests.
|
static class |
StatementTest.HrPreparedStatement
Tests performance of reused execution of prepared statement.
|
static class |
StatementTest.HrSchema
Pojo schema containing "emps" and "depts" tables.
|
| Constructor and Description |
|---|
StatementTest() |
| Modifier and Type | Method and Description |
|---|---|
String |
bindExecute(StatementTest.HrPreparedStatement state) |
private static void |
close(ResultSet rs,
Statement st) |
String |
executeQuery(StatementTest.HrConnection state) |
String |
forEach(StatementTest.HrConnection state) |
String |
prepareBindExecute(StatementTest.HrConnection state) |
public String prepareBindExecute(StatementTest.HrConnection state) throws SQLException
SQLExceptionpublic String bindExecute(StatementTest.HrPreparedStatement state) throws SQLException
SQLExceptionpublic String executeQuery(StatementTest.HrConnection state) throws SQLException
SQLExceptionpublic String forEach(StatementTest.HrConnection state) throws SQLException
SQLExceptionCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.