Re: RND engines benchs

2011-02-18 Thread %u
== Quote from bearophile (bearophileh...@lycos.com)'s article > Timings, n = 100_000_000, seconds, best of 6: > Xorshift: 1.08 > MinstdRand: 1.15 > Mt19937:1.92 > DMD 2.052. It seems that compared to MinstdRand, Xorshift is both faster and gives higher quality outputs :-) > import std.s

RND engines benchs

2011-02-18 Thread bearophile
Timings, n = 100_000_000, seconds, best of 6: Xorshift: 1.08 MinstdRand: 1.15 Mt19937:1.92 DMD 2.052. It seems that compared to MinstdRand, Xorshift is both faster and gives higher quality outputs :-) import std.stdio, std.random; void main() { uint r; //auto rnd = Xorshift(