Package org.apache.commons.rng.examples.jmh.core
Benchmarks for the
org.apache.commons.rng.core
components.-
Class Summary Class Description AbstractBenchmark Declares the JMH annotations for the benchmarks to compare the speed of generation of random numbers from the various source providers forUniformRandomProvider
.BaselineGenerationPerformance Benchmarks to check linearity in the baseline implementations ofUniformRandomProvider
.BaselineSources A benchmark state that can retrieve the various generators defined byRandomSource
values.BaselineUtils Defines baseline implementations for theUniformRandomProvider
.CachedNextGenerationPerformance Executes a benchmark to compare the speed of generation of random numbers from the various source providers using the bit cache verses simple generation.CachedNextGenerationPerformance.BooleanSources Provides a function to obtain a boolean value from the various "RandomSource"s.CachedNextGenerationPerformance.IntSources Provides a function to obtain an int value from the various "RandomSource"s that produce 64-bit output.FloatingPointGenerationPerformance Executes benchmark to compare the speed of generation of floating point numbers from the integer primitives.FloatingPointGenerationPerformance.LongSource Mimic the generation of the SplitMix64 algorithm.JumpBenchmark Executes benchmark for jump operations of jumpable RNGs.JumpBenchmark.BaseJumpableSource Encapsulates a method to jump an RNG.JumpBenchmark.JumpableSource Exercise theJumpableUniformRandomProvider.jump()
function.JumpBenchmark.LongJumpableSource Exercise theLongJumpableUniformRandomProvider.longJump()
function.LXMBenchmark Executes a benchmark for operations used in the LXM family of RNGs.LXMBenchmark.LCG128Source Encapsulates a method to compute an update step on a 128-bit linear congruential generator (LCG).LXMBenchmark.LXM128Source Encapsulates a method to compute an update step on an LXM generator with a 128-bit Linear Congruential Generator.LXMBenchmark.UnsignedMultiply128Source Encapsulates a method to compute an unsigned multiply of two 128-bit values to create a truncated 128-bit result.LXMBenchmark.UnsignedMultiplyHighSource Encapsulates a method to compute an unsigned multiply of 64-bit values to create the upper and optionally low 64-bits of the 128-bit result.NextBooleanGenerationPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers forUniformRandomProvider.nextBoolean()
.NextBooleanGenerationPerformance.Sources The benchmark state (retrieve the various "RandomSource"s).NextBytesGenerationPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers forUniformRandomProvider.nextBytes(byte[])
.NextBytesGenerationPerformance.Sources The benchmark state (retrieve the various "RandomSource"s).NextDoubleGenerationPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers forUniformRandomProvider.nextDouble()
.NextDoubleGenerationPerformance.Sources The benchmark state (retrieve the various "RandomSource"s).NextFloatGenerationPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers forUniformRandomProvider.nextFloat()
.NextFloatGenerationPerformance.Sources The benchmark state (retrieve the various "RandomSource"s).NextIntGenerationPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers forUniformRandomProvider.nextInt()
andUniformRandomProvider.nextInt(int)
.NextIntGenerationPerformance.Sources The benchmark state (retrieve the various "RandomSource"s).NextLongGenerationPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers forUniformRandomProvider.nextLong()
andUniformRandomProvider.nextLong(long)
.NextLongGenerationPerformance.Sources The benchmark state (retrieve the various "RandomSource"s).RngNextIntInRangeBenchmark Executes benchmark to compare the speed of random number generators to create an int value in a range.RngNextIntInRangeBenchmark.IntData The data used for the shuffle benchmark.RngNextIntInRangeBenchmark.IntRange The upper range for theint
generation.RngNextIntInRangeBenchmark.Source The source generator.