Class TestPerformance

java.lang.Object
org.h2.test.bench.TestPerformance
All Implemented Interfaces:
org.h2.test.bench.Database.DatabaseTest

public class TestPerformance extends Object implements org.h2.test.bench.Database.DatabaseTest
The main controller class of the benchmark application. To run the benchmark, call the main method of this class.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether data needs to be collected.
    static void
    main(String... args)
    This method is called when executing this sample application.
    void
    Print a message to system out if trace is enabled.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.h2.test.bench.Database.DatabaseTest

    loadProperties
  • Constructor Details

    • TestPerformance

      public TestPerformance()
  • Method Details

    • main

      public static void main(String... args) throws Exception
      This method is called when executing this sample application.
      Parameters:
      args - the command line parameters
      Throws:
      Exception
    • trace

      public void trace(String msg)
      Description copied from interface: org.h2.test.bench.Database.DatabaseTest
      Print a message to system out if trace is enabled.
      Specified by:
      trace in interface org.h2.test.bench.Database.DatabaseTest
      Parameters:
      msg - the message
    • isCollect

      public boolean isCollect()
      Description copied from interface: org.h2.test.bench.Database.DatabaseTest
      Whether data needs to be collected.
      Specified by:
      isCollect in interface org.h2.test.bench.Database.DatabaseTest
      Returns:
      true if yes