morfologik.util
Class PerformanceTimer
java.lang.Object
morfologik.util.PerformanceTimer
public final class PerformanceTimer
- extends java.lang.Object
Simple, simple performance checking.
Method Summary |
long |
elemsPerSecond(int sequences)
|
static PerformanceTimer |
run(java.util.concurrent.Callable<java.lang.Void> task,
int warmupRounds,
int cycles)
Run the task with a given number of warm-up rounds and the given number
of cycles. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PerformanceTimer
public PerformanceTimer()
run
public static PerformanceTimer run(java.util.concurrent.Callable<java.lang.Void> task,
int warmupRounds,
int cycles)
- Run the task with a given number of warm-up rounds and the given number
of cycles.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
elemsPerSecond
public long elemsPerSecond(int sequences)