public class SpeedTest
extends java.lang.Object
If you have some nice complicated examples, I'd love to hear about them to see if we can tune things up. - rich
| Modifier and Type | Class and Description |
|---|---|
static class |
SpeedTest.BDConfig
Configuration using the BDConfig
|
static class |
SpeedTest.EvaluationConfig
Basic class to set the evaluation context
|
static class |
SpeedTest.JepConfig
Standard Jep configuration (with FastEvaluator)
|
static class |
SpeedTest.OldConfig
Configuration using the StandardEvaluator
|
static class |
SpeedTest.Outputter
Different output methods
|
static class |
SpeedTest.RatioOutputter
Print detailed ratios for each run.
|
static class |
SpeedTest.RealConfig
Configuration using the RealEvaluator
|
static class |
SpeedTest.TabOutputter
Print output tab separated.
|
static class |
SpeedTest.ThreadSafeConfig
Configuration using the RealEvaluator
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<SpeedTest.EvaluationConfig> |
configs |
int |
nDeriv |
int |
num_itts |
int |
num_vals |
protected SpeedTest.Outputter |
outputter |
protected long[] |
totalTimes |
| Constructor and Description |
|---|
SpeedTest(SpeedTest.Outputter outputter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfig(SpeedTest.EvaluationConfig config)
Adds a new EvaluationConfig to be be run for comparison.
|
void |
doAll(java.lang.String[] eqns,
java.lang.String[] varNames)
Run speed comparison for a set of equations.
|
void |
doAll(java.lang.String eqn,
java.lang.String[] varNames)
Run speed comparison for a single equation.
|
void |
fini() |
void |
init() |
static void |
main(java.lang.String[] args)
Main method, executes all speed tests.
|
static void |
runTests(SpeedTest st)
A standard set of tests.
|
public int num_itts
public int num_vals
public int nDeriv
protected final java.util.List<SpeedTest.EvaluationConfig> configs
protected SpeedTest.Outputter outputter
protected long[] totalTimes
public SpeedTest(SpeedTest.Outputter outputter)
outputter - public void init()
public void fini()
public void doAll(java.lang.String eqn,
java.lang.String[] varNames)
eqn - The equation to testvarNames - an array of variable names which will be set to random values.public void doAll(java.lang.String[] eqns,
java.lang.String[] varNames)
eqns - varNames - public void addConfig(SpeedTest.EvaluationConfig config)
config - public static void main(java.lang.String[] args)
args - public static void runTests(SpeedTest st)
st - Copyright © 2018 Singular Systems http://www.singularsys.com/jep