org.nlogo.workspace
Class Benchmarker

java.lang.Object
  extended by org.nlogo.workspace.Benchmarker

public class Benchmarker
extends Object


Nested Class Summary
static interface Benchmarker.BenchmarkRunner
           
 
Field Summary
static List allBenchmarks
           
static Set guiOnlyBenchmarks
           
static Set headlessOnlyBenchmarks
           
 
Constructor Summary
Benchmarker(AbstractWorkspace workspace)
           
 
Method Summary
 void benchmark(int iterations, Benchmarker.BenchmarkRunner runner)
           
 void benchmarkAll(int iterations, Benchmarker.BenchmarkRunner runner)
           
static void footer()
           
static String fullPathToBenchmark(String name)
           
static void header(int iterations)
           
 void openAndRunBenchmark(String name, int iterations, Benchmarker.BenchmarkRunner runner)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allBenchmarks

public static final List allBenchmarks

headlessOnlyBenchmarks

public static final Set headlessOnlyBenchmarks

guiOnlyBenchmarks

public static final Set guiOnlyBenchmarks
Constructor Detail

Benchmarker

public Benchmarker(AbstractWorkspace workspace)
Method Detail

benchmarkAll

public void benchmarkAll(int iterations,
                         Benchmarker.BenchmarkRunner runner)
                  throws IOException,
                         CompilerException,
                         LogoException
Throws:
IOException
CompilerException
LogoException

fullPathToBenchmark

public static String fullPathToBenchmark(String name)

header

public static void header(int iterations)

footer

public static void footer()

openAndRunBenchmark

public void openAndRunBenchmark(String name,
                                int iterations,
                                Benchmarker.BenchmarkRunner runner)
                         throws IOException,
                                CompilerException,
                                LogoException
Throws:
IOException
CompilerException
LogoException

benchmark

public void benchmark(int iterations,
                      Benchmarker.BenchmarkRunner runner)
               throws CompilerException,
                      LogoException
Throws:
CompilerException
LogoException