nkartashov / prng-bench Goto Github PK
View Code? Open in Web Editor NEWBenchmark suite for comparing PRNGs for performance in Haskell
License: MIT License
Benchmark suite for comparing PRNGs for performance in Haskell
License: MIT License
I would have expected PCG
to be at least twice as fast as Mersenne
and all the results seem to be identical for all the different RNGs. This makes me suspicious.
prng-bench $ ~/Library/Haskell/ghc-7.10.3/lib/prng-bench-0.1.0.0/bin/prng-bench
benchmarking Next/10000_Random
time 122.8 μs (121.6 μs .. 124.0 μs)
0.999 R² (0.998 R² .. 0.999 R²)
mean 122.6 μs (121.1 μs .. 124.1 μs)
std dev 4.668 μs (3.787 μs .. 5.908 μs)
variance introduced by outliers: 37% (moderately inflated)
benchmarking Next/10000_SplitMix
time 122.9 μs (121.3 μs .. 124.7 μs)
0.999 R² (0.998 R² .. 0.999 R²)
mean 122.7 μs (121.5 μs .. 124.3 μs)
std dev 4.747 μs (3.780 μs .. 6.969 μs)
variance introduced by outliers: 38% (moderately inflated)
benchmarking Next/10000_TFRandom
time 120.8 μs (119.5 μs .. 122.5 μs)
0.998 R² (0.998 R² .. 0.999 R²)
mean 121.5 μs (120.3 μs .. 123.1 μs)
std dev 4.765 μs (4.118 μs .. 5.649 μs)
variance introduced by outliers: 39% (moderately inflated)
benchmarking Next/10000_Mersenne
time 122.5 μs (121.2 μs .. 123.9 μs)
0.999 R² (0.998 R² .. 0.999 R²)
mean 123.2 μs (122.2 μs .. 124.7 μs)
std dev 3.909 μs (3.189 μs .. 5.051 μs)
variance introduced by outliers: 30% (moderately inflated)
benchmarking Next/10000_PCGRandom
time 122.5 μs (121.0 μs .. 123.9 μs)
0.999 R² (0.998 R² .. 0.999 R²)
mean 122.3 μs (121.3 μs .. 123.7 μs)
std dev 4.147 μs (3.377 μs .. 5.606 μs)
variance introduced by outliers: 32% (moderately inflated)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.