com.singularsys.jeptests.system.perf.tests
Class EvalPerfTest
java.lang.Object
com.singularsys.jeptests.system.perf.PerfTest
com.singularsys.jeptests.system.perf.tests.EvalPerfTest
public class EvalPerfTest
- extends PerfTest
Evaluates an expression nIterations
times.
- Author:
- nathan
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useRealEval
public boolean useRealEval
EvalPerfTest
public EvalPerfTest(java.lang.String name,
java.lang.String expression,
int nIterations,
boolean useRealEval)
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