Class PrimesSpeedTest

java.lang.Object
com.singularsys.jepexamples.diagnostics.SpeedTest
com.singularsys.extexamples.diagnostics.PrimesSpeedTest

public class PrimesSpeedTest extends SpeedTest
Speed test for various methods of calculating primes. Some the the implements are in the main lambda, chained, stream ans structure documentation.
Options: maxvalue [-monitor|-montime|-unchecked] [-pause] [-shuffle] [-config=<name>]
  • maxvalue: first argument is maximum value to calculate primes to
  • -monitor: print function/operator/variable call counts
  • -montime: print function/operator/variable call counts and times for calls
  • -unchecked: use the unchecked evaluator
  • -calltree: print the call tree
  • -pause: pause after each test to allow profiling
  • -shuffle: shuffle the order of execution
  • -config=name: only run the specified configuration
Since:
Jep 4.1, extensions 2.2
  • Constructor Details

  • Method Details

    • doAll

      public void doAll(int n)
      Run speed comparison for a set of equations.
    • doOne

      public void doOne(int n, com.singularsys.extexamples.diagnostics.PrimesSpeedTest.PrimeEvaluationConfig config)
    • main

      public static void main(String[] args)
      Main method, executes all speed tests.
      Parameters:
      args -