|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjigcell.compare.tests.Benchmark
jigcell.compare.tests.ExperimentBenchmark
public class ExperimentBenchmark
A collection of tests for evaluating experiment loading performance.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Field Summary | |
|---|---|
protected EditableSeriesView |
experimentView
View to load in |
protected IDataGenerator |
result
Record of loading results |
protected FileDataSource |
source
Source to load from |
| Fields inherited from class jigcell.compare.tests.Benchmark |
|---|
benchmarkRunnable, compare |
| Constructor Summary | |
|---|---|
ExperimentBenchmark(Compare compare)
Creates a new tester for experiment loading performance. |
|
| Method Summary | |
|---|---|
double |
benchmark(int size)
Runs a benchmark that loads an experiment file. |
double |
benchmarkAddRow(int size)
Runs a benchmark that loads an experiment file, adds a new row, and saves the experiment file. |
static IDataGeneratorList |
generateData(int size)
Generates some experimental data. |
static IDataGenerator |
generateGenerator(IEditableDataGenerator generator,
int seed)
Generates a new experimental setup. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
IDataGenerator |
runBenchmark()
Runs a collection of benchmarks for loading experiment files. |
IDataGenerator |
runBenchmarkAddRow()
Runs a collection of benchmarks for adding to experiment files. |
protected void |
runOffEventThread()
Performs the tester computations that do not interact with the interface. |
protected void |
runOnEventThread(int state)
Performs an operation that interacts with the interface. |
static void |
test(Compare compare)
Runs a loading benchmark. |
| Methods inherited from class jigcell.compare.tests.Benchmark |
|---|
createBenchmarkReport, currentTime, loadInView, reset, runState, timeRunState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EditableSeriesView experimentView
protected FileDataSource source
protected IDataGenerator result
| Constructor Detail |
|---|
public ExperimentBenchmark(Compare compare)
compare - Comparator to abuse| Method Detail |
|---|
public static IDataGeneratorList generateData(int size)
size - Number of generators to create
public static IDataGenerator generateGenerator(IEditableDataGenerator generator,
int seed)
generator - Generator to configure or null to create a new data generatorseed - Number used to create unique experimental datapublic static void test(Compare compare)
compare - Comparator to abuse
public double benchmark(int size)
throws java.lang.Exception
size - Size of experiment file
java.lang.Exception
public double benchmarkAddRow(int size)
throws java.lang.Exception
size - Size of experiment file
java.lang.Exceptionpublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListener
public IDataGenerator runBenchmark()
throws java.lang.Exception
java.lang.Exception
public IDataGenerator runBenchmarkAddRow()
throws java.lang.Exception
java.lang.Exception
protected void runOffEventThread()
throws java.lang.Exception
runOffEventThread in class Benchmarkjava.lang.Exception
protected void runOnEventThread(int state)
throws java.lang.Exception
runOnEventThread in class Benchmarkstate - Indicates which interface operation is next
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||