com.singularsys.jeptests.system.perf
Class PerfTest
java.lang.Object
com.singularsys.jeptests.system.perf.PerfTest
- Direct Known Subclasses:
- EvalPerfTest, ParsePerfTest
public class PerfTest
- extends java.lang.Object
Base class for a single performance test.
- Author:
- Nathan Funk
Constructor Summary |
PerfTest(java.lang.String name,
java.lang.String expression,
int nIterations)
Sets up the name and number of iterations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerfTest
public PerfTest(java.lang.String name,
java.lang.String expression,
int nIterations)
- Sets up the name and number of iterations.
- Parameters:
name
- nIterations
-
setup
public void setup()
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run()
throws java.lang.Exception
- Runs the test which is timed by the PerfRunner class
- Throws:
java.lang.Exception
getName
public java.lang.String getName()
getExpression
public java.lang.String getExpression()
getIterations
public int getIterations()
Copyright © 2010 Singular Systems http://www.singularsys.com/jep