Class JumpBenchmark.ArbitrarilyJumpableSource

  • Enclosing class:
    JumpBenchmark

    public static class JumpBenchmark.ArbitrarilyJumpableSource
    extends JumpBenchmark.BaseJumpableSource
    Exercise the ArbitrarilyJumpableUniformRandomProvider.jump(double) function, or the ArbitrarilyJumpableUniformRandomProvider.jumpPowerOfTwo(int) function.

    The power-of-two jump function is called if the distance is an exact int value.

    To jump a small arbitrary amount specify the distance with a fractional component, e.g. jump 123 using 123.5, otherwise a power-of-2 jump of 123 will be called.