|
||||||||||
| 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.ModelBuilderBenchmark
public class ModelBuilderBenchmark
A collection of tests for evaluating model builder performance.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Field Summary | |
|---|---|
protected java.lang.String |
fileName
File name to load from |
protected ModelBuilderPlugin |
plugin
Model builder plugin |
protected IDataGenerator |
result
Record of benchmark results |
protected IDataEditorTab |
view
View to load in |
| Fields inherited from class jigcell.compare.tests.Benchmark |
|---|
benchmarkRunnable, compare |
| Constructor Summary | |
|---|---|
ModelBuilderBenchmark(Compare compare)
Creates a new tester for model builder performance. |
|
| Method Summary | |
|---|---|
double |
benchmark(int size)
Runs a model builder benchmark. |
double |
benchmark2(int size)
Runs a model builder benchmark. |
double |
benchmark3(int size)
Runs a model builder benchmark. |
double |
benchmarkAddRow(int size)
Runs a benchmark that loads a model file, adds a new row, and saves the model file. |
IDataGenerator |
runBenchmark()
Runs a collection of benchmarks for loading models. |
IDataGenerator |
runBenchmark2()
Runs a collection of benchmarks for loading models. |
IDataGenerator |
runBenchmark3()
Runs a collection of benchmarks for loading models. |
IDataGenerator |
runBenchmarkAddRow()
Runs a collection of benchmarks for adding to model 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 model builder 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 IDataEditorTab view
protected IDataGenerator result
protected ModelBuilderPlugin plugin
protected java.lang.String fileName
| Constructor Detail |
|---|
public ModelBuilderBenchmark(Compare compare)
compare - Comparator to abuse| Method Detail |
|---|
public static void test(Compare compare)
compare - Comparator to abuse
public double benchmark(int size)
throws java.lang.Exception
size - Number of reactions to create
java.lang.Exception
public double benchmark2(int size)
throws java.lang.Exception
size - Number of reactions to create
java.lang.Exception
public double benchmark3(int size)
throws java.lang.Exception
size - Number of reactions to create
java.lang.Exception
public double benchmarkAddRow(int size)
throws java.lang.Exception
size - Size of model file
java.lang.Exception
public IDataGenerator runBenchmark()
throws java.lang.Exception
java.lang.Exception
public IDataGenerator runBenchmark2()
throws java.lang.Exception
java.lang.Exception
public IDataGenerator runBenchmark3()
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 | |||||||||