public class NanoBench
extends java.lang.Object
Lightweight CPU and memory benchmarking utility.
Inspired from nanobench (http://code.google.com/p/nanobench/)
Modifier and Type | Class and Description |
---|---|
static class |
NanoBench.BytesRunnable |
static class |
NanoBench.CPUMeasure
CPU time listener to calculate the average time spent in a measurement.
|
static class |
NanoBench.MemoryUtil
Utility memory class to perform GC and calculate memory usage
|
Constructor and Description |
---|
NanoBench() |
Modifier and Type | Method and Description |
---|---|
NanoBench |
bytesOnly() |
NanoBench |
cpuAndMemory() |
NanoBench |
cpuOnly() |
static NanoBench |
create() |
double |
getAvgTime() |
org.datavec.dataframe.testutil.NanoBench.MeasureListener |
getCPUListener() |
static java.util.logging.Logger |
getLogger() |
long |
getMemoryBytes() |
double |
getTotalTime() |
double |
getTps() |
void |
measure(java.lang.String label,
java.lang.Runnable task) |
NanoBench |
measurements(int numberOfMeasurement) |
NanoBench |
memoryOnly() |
NanoBench |
warmUps(int numberOfWarmups) |
public static NanoBench create()
public NanoBench measurements(int numberOfMeasurement)
public NanoBench warmUps(int numberOfWarmups)
public NanoBench cpuAndMemory()
public NanoBench bytesOnly()
public org.datavec.dataframe.testutil.NanoBench.MeasureListener getCPUListener()
public static java.util.logging.Logger getLogger()
public NanoBench cpuOnly()
public NanoBench memoryOnly()
public double getAvgTime()
public double getTotalTime()
public double getTps()
public long getMemoryBytes()
public void measure(java.lang.String label, java.lang.Runnable task)