Class StatementTest


  • public class StatementTest
    extends java.lang.Object
    Compares 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
    • Constructor Detail

      • StatementTest

        public StatementTest()
    • Method Detail

      • prepareBindExecute

        public java.lang.String prepareBindExecute​(StatementTest.HrConnection state)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • executeQuery

        public java.lang.String executeQuery​(StatementTest.HrConnection state)
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • forEach

        public java.lang.String forEach​(StatementTest.HrConnection state)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • close

        private static void close​(java.sql.ResultSet rs,
                                  java.sql.Statement st)