Package org.apache.uima.fit.benchmark
Class Benchmark
java.lang.Object
org.apache.uima.fit.benchmark.Benchmark
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTemplate(Benchmark aTemplate) batchToString(Batch aBatch) static longcpuTime()Get CPU time in nanoseconds.longlonglonggetName()org.apache.commons.math3.stat.descriptive.DescriptiveStatisticsgetStats()longignore(boolean aIgnore) incrementTimes(int aTimes) initialize(IntConsumer aPieceOfCode) booleanlimit(long aLimit) magnitude(int aMagnitude) magnitudeIncrement(IntFunction<Integer> aIncrement) measure(RunnableWithExceptions aPieceOfCode) repeat(int aRepeat) voidrun()static longsystem()Get static system time in nanoseconds.timer(LongSupplier aTimer, DoubleFunction<Double> aToMs) doubletoMs(double duration) static longuserTime()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.
-