Package org.apache.calcite.util
Class Benchmark
java.lang.Object
org.apache.calcite.util.Benchmark
Helps to run benchmarks by running the same task repeatedly and averaging
the running times.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Collects statistics for a test that is run multiple times. -
Field Summary
Modifier and TypeFieldDescriptionstatic final org.slf4j.Logger
Certain tests are enabled only if logging is enabled at debug level or higher. -
Constructor Summary
ConstructorDescriptionBenchmark
(String description, Function1<Benchmark.Statistician, Void> function, int repeat) -
Method Summary
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGERCertain tests are enabled only if logging is enabled at debug level or higher.
-
-
Constructor Details
-
Benchmark
-
-
Method Details
-
enabled
public static boolean enabled()Returns whether performance tests are enabled. -
run
public void run()
-