From fe244e00d2a1389617dccf54136356705413469f Mon Sep 17 00:00:00 2001 From: sunoru sidw Date: Mon, 29 Aug 2016 22:39:06 +0800 Subject: [PATCH] Use more correct seed for benchmark. --- benchmark/pcg_rxs_m_xs_64_64.jl | 2 +- benchmark/pcg_xsh_rs_128_64.jl | 3 ++- benchmark/pcg_xsh_rs_64_32.jl | 2 +- docs/src/man/benchmark.md | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/benchmark/pcg_rxs_m_xs_64_64.jl b/benchmark/pcg_rxs_m_xs_64_64.jl index 986edcf..4c58887 100644 --- a/benchmark/pcg_rxs_m_xs_64_64.jl +++ b/benchmark/pcg_rxs_m_xs_64_64.jl @@ -4,6 +4,6 @@ include("common.jl") using RNG.PCG -r = PCGStateSetseq(UInt64, PCG_RXS_M_XS, (123, 456)) +r = PCGStateSetseq(UInt64, PCG_RXS_M_XS, (0x018cd83e277674ac, 0x436cd6f2434be066)) test_all(r, 100_000_000) diff --git a/benchmark/pcg_xsh_rs_128_64.jl b/benchmark/pcg_xsh_rs_128_64.jl index 61882c2..e60ff1e 100644 --- a/benchmark/pcg_xsh_rs_128_64.jl +++ b/benchmark/pcg_xsh_rs_128_64.jl @@ -4,6 +4,7 @@ include("common.jl") using RNG.PCG -r = PCGStateSetseq(UInt64, PCG_XSH_RS, (123, 456)) +r = PCGStateSetseq(UInt64, PCG_XSH_RS, + (0x4e17a5abd5d47402ce332459f69eacfd, 0x96856028d0dc791c176537f21a77ab67)) test_all(r, 100_000_000) diff --git a/benchmark/pcg_xsh_rs_64_32.jl b/benchmark/pcg_xsh_rs_64_32.jl index 24c34a5..5f8d71c 100644 --- a/benchmark/pcg_xsh_rs_64_32.jl +++ b/benchmark/pcg_xsh_rs_64_32.jl @@ -4,6 +4,6 @@ include("common.jl") using RNG.PCG -r = PCGStateSetseq(UInt64, PCG_XSH_RS, 123 % UInt64, 456 % UInt64) +r = PCGStateSetseq(UInt64, PCG_XSH_RS, (0x018cd83e277674ac, 0x436cd6f2434be066)) test_all(r, 100_000_000) diff --git a/docs/src/man/benchmark.md b/docs/src/man/benchmark.md index da5b28a..afc29d2 100644 --- a/docs/src/man/benchmark.md +++ b/docs/src/man/benchmark.md @@ -59,8 +59,8 @@ and detailed in the table (sorted by speed): |ARS1x128|17.081|04:13:27.54|55 SampleCorr, k = 1 p-value = 7.0e-4| |BaseMT19937|1.971|03:18:23.47| | |MT19937|4.229|03:32:59.06|36 Gap, r = 0 p-value = eps
80LinearComp, r = 0 p-value = 1-eps1
81 LinearComp, r = 29 p-value = 1-eps1| -|PCG\_RXS\_M\_XS\_64\_64|1.522|03:23:44.44|21 BirthdaySpacings, t = 16 0.9994| -|PCG\_XSH\_RS\_128\_64`|3.373|03:40:54.73|73 GCD 8.4e-4| +|PCG\_RXS\_M\_XS\_64\_64|1.522|03:20:07.97| | +|PCG\_XSH\_RS\_128\_64`|3.373|03:24:57.54|54 SampleMean, r = 10 0.9991| |Philox2x64|5.737|03:28:52.27|35 Gap, r = 25 3.4e-4| |Threefry2x64|5.965|03:37:53.53| | |Xoroshiro128Plus|1.393|03:33:16.51| |