public class Benchmark extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Benchmark.Statistician
Collects statistics for a test that is run multiple times.
|
| Modifier and Type | Field and Description |
|---|---|
private Function1<Benchmark.Statistician,Void> |
function |
static org.slf4j.Logger |
LOGGER
Certain tests are enabled only if logging is enabled at debug level or
higher.
|
private int |
repeat |
private Benchmark.Statistician |
statistician |
| Constructor and Description |
|---|
Benchmark(String description,
Function1<Benchmark.Statistician,Void> function,
int repeat) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
enabled()
Returns whether performance tests are enabled.
|
(package private) static long |
printDuration(String desc,
long t0) |
void |
run() |
public static final org.slf4j.Logger LOGGER
private final Function1<Benchmark.Statistician,Void> function
private final int repeat
private final Benchmark.Statistician statistician
public Benchmark(String description, Function1<Benchmark.Statistician,Void> function, int repeat)
public static boolean enabled()
static long printDuration(String desc, long t0)
public void run()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.