Package org.apache.uima.fit.benchmark
Class Benchmark
java.lang.Object
org.apache.uima.fit.benchmark.Benchmark
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTemplate
(Benchmark aTemplate) batchToString
(Batch aBatch) static long
cpuTime()
Get CPU time in nanoseconds.long
long
long
getName()
org.apache.commons.math3.stat.descriptive.DescriptiveStatistics
getStats()
long
ignore
(boolean aIgnore) incrementTimes
(int aTimes) initialize
(IntConsumer aPieceOfCode) boolean
limit
(long aLimit) magnitude
(int aMagnitude) magnitudeIncrement
(IntFunction<Integer> aIncrement) measure
(RunnableWithExceptions aPieceOfCode) repeat
(int aRepeat) void
run()
static long
system()
Get static system time in nanoseconds.timer
(LongSupplier aTimer, DoubleFunction<Double> aToMs) double
toMs
(double duration) static long
userTime()
Get user time in nanoseconds.
-
Constructor Details
-
Benchmark
-
Benchmark
-
Benchmark
-
-
Method Details
-
ignore
-
isIgnored
public boolean isIgnored() -
limit
-
getTimeLimitMs
public long getTimeLimitMs() -
applyTemplate
-
getName
-
timer
-
repeat
-
magnitude
-
magnitudeIncrement
-
incrementTimes
-
initialize
-
measure
-
run
public void run() -
getBatches
-
getMaxDuration
public long getMaxDuration() -
getCumulativeDuration
public long getCumulativeDuration() -
getAverageDuration
public long getAverageDuration() -
getSlowestMeasurement
-
getStats
public org.apache.commons.math3.stat.descriptive.DescriptiveStatistics getStats() -
toMs
public double toMs(double duration) -
batchToString
-
cpuTime
public static long cpuTime()Get CPU time in nanoseconds. -
userTime
public static long userTime()Get user time in nanoseconds. -
system
public static long system()Get static system time in nanoseconds.
-