|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.benchmark.Benchmark
public abstract class Benchmark
Base class for all benchmark classes. Gives methods for measuring elapsed time as well as methods for creating test sets and benchmark data handling.
Constructor Summary | |
---|---|
Benchmark()
|
Method Summary | |
---|---|
void |
addData(double[] d)
Adds benchmark data to the data pool. |
void |
clearData()
Clears all collected benchmark data. |
double[] |
createRandomDoubleArray(int size,
cern.jet.random.AbstractDistribution dist)
Creates a test set containing size random numbers of the
distribution dist . |
long |
end()
Gets the elapsed time since the last call of start in nanoseconds |
int |
getNumBins()
Gets the number of bins that are used for creating gnuplot histograms. |
void |
setNumBins(int numBins)
Sets the number of bins that are used for creating gnuplot histograms. |
void |
start()
sets a start time for the benchmark system |
GnuPlot |
toGnuplot(GnuPlot gnuplot,
String[] dataLabels,
String[] styles)
Adds the benchmark data without conversion to a given GnuPlot object. |
GnuPlot |
toGnuplot(String[] dataLabels,
String[] styles)
Adds the benchmark data without conversion to a new GnuPlot object. |
GnuPlot |
toGnuPlotAsHistogram(GnuPlot gnuplot,
String[] dataLabels,
String[] styles)
Adds the benchmark data as histogram to a given GnuPlot object. |
GnuPlot |
toGnuPlotAsHistogram(String[] dataLabels,
String[] styles)
Adds the benchmark data as histogram to a new GnuPlot object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Benchmark()
Method Detail |
---|
public int getNumBins()
public void setNumBins(int numBins)
numBins
- number of binspublic void addData(double[] d)
d
- benchmark datapublic void clearData()
public GnuPlot toGnuplot(String[] dataLabels, String[] styles)
GnuPlot
object.
dataLabels
- labels for the benchmark datastyles
- styles for the benchmark data
GnuPlot
object containing the benchmark dataGnuPlot
public GnuPlot toGnuplot(GnuPlot gnuplot, String[] dataLabels, String[] styles)
GnuPlot
object.
dataLabels
- labels for the benchmark datastyles
- styles for the benchmark data
GnuPlot
object containing the benchmark dataGnuPlot
public GnuPlot toGnuPlotAsHistogram(String[] dataLabels, String[] styles)
GnuPlot
object.
dataLabels
- labels for the benchmark datastyles
- styles for the benchmark data
GnuPlot
object containing the benchmark dataGnuPlot
public GnuPlot toGnuPlotAsHistogram(GnuPlot gnuplot, String[] dataLabels, String[] styles)
GnuPlot
object.
dataLabels
- labels for the benchmark datastyles
- styles for the benchmark data
GnuPlot
object containing the benchmark dataGnuPlot
public void start()
public long end()
start
in nanoseconds
public double[] createRandomDoubleArray(int size, cern.jet.random.AbstractDistribution dist)
size
random numbers of the
distribution dist
.
size
- the size of the test setdist
- the probability distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |