Class JumpBenchmark
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.core.JumpBenchmark
-
public class JumpBenchmark extends Object
Executes benchmark for jump operations of jumpable RNGs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJumpBenchmark.ArbitrarilyJumpableSourceExercise theArbitrarilyJumpableUniformRandomProvider.jump(double)function, or theArbitrarilyJumpableUniformRandomProvider.jumpPowerOfTwo(int)function.static classJumpBenchmark.BaseJumpableSourceEncapsulates a method to jump an RNG.static classJumpBenchmark.JumpableSourceExercise theJumpableUniformRandomProvider.jump()function.static classJumpBenchmark.LongJumpableSourceExercise theLongJumpableUniformRandomProvider.longJump()function.
-
Constructor Summary
Constructors Constructor Description JumpBenchmark()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.rng.UniformRandomProviderarbitraryJump(JumpBenchmark.ArbitrarilyJumpableSource data)Arbitrary jump benchmark.org.apache.commons.rng.UniformRandomProviderjump(JumpBenchmark.JumpableSource data)Jump benchmark.org.apache.commons.rng.UniformRandomProviderlongJump(JumpBenchmark.LongJumpableSource data)Long jump benchmark.
-
-
-
Constructor Detail
-
JumpBenchmark
public JumpBenchmark()
-
-
Method Detail
-
jump
public org.apache.commons.rng.UniformRandomProvider jump(JumpBenchmark.JumpableSource data)
Jump benchmark.- Parameters:
data- Source of the jump- Returns:
- the copy
-
longJump
public org.apache.commons.rng.UniformRandomProvider longJump(JumpBenchmark.LongJumpableSource data)
Long jump benchmark.- Parameters:
data- Source of the jump- Returns:
- the copy
-
arbitraryJump
public org.apache.commons.rng.UniformRandomProvider arbitraryJump(JumpBenchmark.ArbitrarilyJumpableSource data)
Arbitrary jump benchmark.- Parameters:
data- Source of the jump- Returns:
- the copy
-
-