com.singularsys.jeptests.system.perf.tests
Class EvalPerfTest

java.lang.Object
  extended by com.singularsys.jeptests.system.perf.PerfTest
      extended by com.singularsys.jeptests.system.perf.tests.EvalPerfTest

public class EvalPerfTest
extends PerfTest

Evaluates an expression nIterations times.

Author:
nathan

Field Summary
 boolean useRealEval
           
 
Constructor Summary
EvalPerfTest(java.lang.String name, java.lang.String expression, int nIterations, boolean useRealEval)
           
 
Method Summary
 void run()
          Evaluate the expression nIterations times.
 void setup()
          Set up the parser and parse the expression
 
Methods inherited from class com.singularsys.jeptests.system.perf.PerfTest
getExpression, getIterations, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useRealEval

public boolean useRealEval
Constructor Detail

EvalPerfTest

public EvalPerfTest(java.lang.String name,
                    java.lang.String expression,
                    int nIterations,
                    boolean useRealEval)
Method Detail

setup

public void setup()
           throws java.lang.Exception
Set up the parser and parse the expression

Overrides:
setup in class PerfTest
Throws:
java.lang.Exception

run

public void run()
         throws java.lang.Exception
Evaluate the expression nIterations times. This is the method that is timed.

Overrides:
run in class PerfTest
Throws:
java.lang.Exception


Copyright © 2010 Singular Systems http://www.singularsys.com/jep