jigcell.compare.tests
Class RunManagerBenchmark

java.lang.Object
  extended by jigcell.compare.tests.Benchmark
      extended by jigcell.compare.tests.RunManagerBenchmark

public class RunManagerBenchmark
extends Benchmark

A collection of tests for evaluating run manager performance.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
protected  java.lang.String fileName
          File name to load from
protected  RunManagerPlugin plugin
          Run manager plugin
protected  IDataGenerator result
          Record of loading results
protected  IDataEditorTab view
          View to load in
 
Fields inherited from class jigcell.compare.tests.Benchmark
benchmarkRunnable, compare
 
Constructor Summary
RunManagerBenchmark(Compare compare)
          Creates a new tester for run manager loading performance.
 
Method Summary
 double benchmark(int runs)
          Runs a run manager benchmark.
 double benchmark2(int runs)
          Runs a run manager benchmark.
 double benchmark3(int runs)
          Runs a run manager benchmark.
 double benchmarkAddRow(int runs)
          Runs a benchmark that loads a run file, adds a new row, and saves the run file.
 double benchmarkExecute(int runs)
          Runs a benchmark that loads a run file and executes a run.
 double benchmarkModify(int runs)
          Runs a benchmark that loads a run file, modifies the settings for a run, and saves the run file.
 IDataGenerator runBenchmark()
          Runs a collection of benchmarks for loading run files.
 IDataGenerator runBenchmark2()
          Runs a collection of benchmarks for loading run files.
 IDataGenerator runBenchmark3()
          Runs a collection of benchmarks for loading run files.
 IDataGenerator runBenchmarkAddRow()
          Runs a collection of benchmarks for adding to run files.
 IDataGenerator runBenchmarkExecute()
          Runs a collection of benchmarks for executing runs.
 IDataGenerator runBenchmarkModify()
          Runs a collection of benchmarks for modifying runs.
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

view

protected IDataEditorTab view
View to load in


result

protected IDataGenerator result
Record of loading results


plugin

protected RunManagerPlugin plugin
Run manager plugin


fileName

protected java.lang.String fileName
File name to load from

Constructor Detail

RunManagerBenchmark

public RunManagerBenchmark(Compare compare)
Creates a new tester for run manager loading performance.

Parameters:
compare - Comparator to abuse
Method Detail

test

public static void test(Compare compare)
Runs a loading benchmark.

Parameters:
compare - Comparator to abuse

benchmark

public double benchmark(int runs)
                 throws java.lang.Exception
Runs a run manager benchmark.

Parameters:
runs - Number of runs in the run file
Throws:
java.lang.Exception

benchmark2

public double benchmark2(int runs)
                  throws java.lang.Exception
Runs a run manager benchmark.

Parameters:
runs - Number of runs in the run file
Throws:
java.lang.Exception

benchmark3

public double benchmark3(int runs)
                  throws java.lang.Exception
Runs a run manager benchmark.

Parameters:
runs - Number of runs in the run file
Throws:
java.lang.Exception

benchmarkAddRow

public double benchmarkAddRow(int runs)
                       throws java.lang.Exception
Runs a benchmark that loads a run file, adds a new row, and saves the run file.

Parameters:
runs - Number of runs in the run file
Throws:
java.lang.Exception

benchmarkExecute

public double benchmarkExecute(int runs)
                        throws java.lang.Exception
Runs a benchmark that loads a run file and executes a run.

Parameters:
runs - Number of runs in the run file
Throws:
java.lang.Exception

benchmarkModify

public double benchmarkModify(int runs)
                       throws java.lang.Exception
Runs a benchmark that loads a run file, modifies the settings for a run, and saves the run file.

Parameters:
runs - Number of runs in the run file
Throws:
java.lang.Exception

runBenchmark

public IDataGenerator runBenchmark()
                            throws java.lang.Exception
Runs a collection of benchmarks for loading run files.

Throws:
java.lang.Exception

runBenchmark2

public IDataGenerator runBenchmark2()
                             throws java.lang.Exception
Runs a collection of benchmarks for loading run files.

Throws:
java.lang.Exception

runBenchmark3

public IDataGenerator runBenchmark3()
                             throws java.lang.Exception
Runs a collection of benchmarks for loading run files.

Throws:
java.lang.Exception

runBenchmarkAddRow

public IDataGenerator runBenchmarkAddRow()
                                  throws java.lang.Exception
Runs a collection of benchmarks for adding to run files.

Throws:
java.lang.Exception

runBenchmarkExecute

public IDataGenerator runBenchmarkExecute()
                                   throws java.lang.Exception
Runs a collection of benchmarks for executing runs.

Throws:
java.lang.Exception

runBenchmarkModify

public IDataGenerator runBenchmarkModify()
                                  throws java.lang.Exception
Runs a collection of benchmarks for modifying runs.

Throws:
java.lang.Exception

runOffEventThread

protected void runOffEventThread()
                          throws java.lang.Exception
Performs the tester computations that do not interact with the interface. This method will be called at the start of the test.

Specified by:
runOffEventThread in class Benchmark
Throws:
java.lang.Exception

runOnEventThread

protected void runOnEventThread(int state)
                         throws java.lang.Exception
Performs an operation that interacts with the interface. After the operation completes, the thread needs to notify the benchmark.

Specified by:
runOnEventThread in class Benchmark
Parameters:
state - Indicates which interface operation is next
Throws:
java.lang.Exception