Class SpeedTestComplex

java.lang.Object
com.singularsys.jepexamples.diagnostics.SpeedTestComplex

public class SpeedTestComplex extends Object
Compares the speed of evaluation between different evaluation schemes. The standard class compares BigDecimal, Jep (with default Fast evaluator), the old StandardEvaluator, and RealEvaluator.

If you have some nice complicated examples, I'd love to hear about them to see if we can tune things up. - rich

  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init()
    • fini

      public void fini()
    • doAll

      public void doAll(String eqn, String[] varNames)
      Run speed comparison for a single equation.
      Parameters:
      eqn - The equation to test
      varNames - an array of variable names which will be set to random values.
    • doAll

      public void doAll(String[] eqns, String[] varNames)
      Run speed comparison for a set of equations.
      Parameters:
      eqns -
      varNames -
    • addConfig

      public void addConfig(SpeedTestComplex.EvaluationConfig config)
      Adds a new EvaluationConfig to be run for comparison.
      Parameters:
      config -
    • main

      public static void main(String[] args)
      Main method, executes all speed tests. Arguments '-pause' causes the program to wait for keyboard input before running test, useful use in profilers. Or a number specifying number of iterations to run.
      Parameters:
      args - Can contain '-pause' or NUM
    • runTests

      public void runTests()
      A standard set of tests.