Class EvalPerfTest


  • public class EvalPerfTest
    extends PerfTest
    Evaluates an expression nIterations times.
    Author:
    nathan
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean useRealEval  
    • Constructor Summary

      Constructors 
      Constructor Description
      EvalPerfTest​(java.lang.String name, java.lang.String expression, int nIterations, boolean useRealEval)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Field Detail

      • useRealEval

        public boolean useRealEval
    • Constructor Detail

      • EvalPerfTest

        public EvalPerfTest​(java.lang.String name,
                            java.lang.String expression,
                            int nIterations,
                            boolean useRealEval)
    • Method Detail

      • 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