Class PhiloxGenerationPerformance


  • public class PhiloxGenerationPerformance
    extends AbstractBenchmark
    Executes benchmark to compare the speed of generation of random numbers from the various Philox providers.

    Performance Notes

    Some improvements to performance are observed on JDK 8 for the inline and zero variations of the 32-bit generator. On higher JDKs the performance of the original implementation is consistently the best and the modified variants are either the same speed but can be significantly slower. This typically occurs for the inline variant which may not be efficiently targeted by the JVM optimisations. The variations are left for future development.

    The 64-bit generator can be made significantly faster if it uses the 64-bit multiplication methods available in the Math class (see RNG-188).