Class SpeedTestComplex


  • public class SpeedTestComplex
    extends java.lang.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

    • Method Detail

      • init

        public void init()
      • fini

        public void fini()
      • doAll

        public void doAll​(java.lang.String eqn,
                          java.lang.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​(java.lang.String[] eqns,
                          java.lang.String[] varNames)
        Run speed comparison for a set of equations.
        Parameters:
        eqns -
        varNames -
      • main

        public static void main​(java.lang.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.