|
||||||||||
| 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.TransformBenchmark
public class TransformBenchmark
A collection of tests for evaluating transform loading performance.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Field Summary | |
|---|---|
protected IDataEditorTab |
experimentView
View to load experimental data in |
protected IDataGenerator |
result
Record of loading results |
protected FileDataSource |
source
Source to load from |
protected EditableSeriesView |
transformView
View to load transforms in |
| Fields inherited from class jigcell.compare.tests.Benchmark |
|---|
benchmarkRunnable, compare |
| Constructor Summary | |
|---|---|
TransformBenchmark(Compare compare)
Creates a new tester for transform loading performance. |
|
| Method Summary | |
|---|---|
double |
benchmark(int size)
Runs a benchmark that loads an experiment file then loads a transform file. |
double |
benchmarkAddRow(int size)
Runs a benchmark that loads an experiment file, adds a new row, saves the experiment file, loads a transform file, adds a new transform, and saves the transform file. |
static IDataGeneratorMap |
generateData(int size)
Generates some transforms. |
static ITransform |
generateTransform(int seed)
Generates a new transform. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
IDataGenerator |
runBenchmark()
Runs a collection of benchmarks for loading transform 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 transformView
protected FileDataSource source
protected IDataEditorTab experimentView
protected IDataGenerator result
| Constructor Detail |
|---|
public TransformBenchmark(Compare compare)
compare - Comparator to abuse| Method Detail |
|---|
public static IDataGeneratorMap generateData(int size)
size - Number of transforms to createpublic static ITransform generateTransform(int seed)
seed - Number used to create unique datapublic static void test(Compare compare)
compare - Comparator to abuse
public double benchmark(int size)
throws java.lang.Exception
size - Size of experiment and transform files
java.lang.Exception
public double benchmarkAddRow(int size)
throws java.lang.Exception
size - Size of experiment and transform files
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
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 | |||||||||