Skip to content

Instantly share code, notes, and snippets.

@flyingmutant
Created August 6, 2022 13:03
Show Gist options
  • Save flyingmutant/bf3bd489ee3c7a32f40714c11325d614 to your computer and use it in GitHub Desktop.
Save flyingmutant/bf3bd489ee3c7a32f40714c11325d614 to your computer and use it in GitHub Desktop.
Testing Go's github.com/valyala/fastrand with PractRand (using https://github.com/flyingmutant/rand/tree/master/misc/practrand)
> ./practrand -gen=x-fast | PractRand stdin64 -multithreaded
RNG_test using PractRand version 0.95
RNG = RNG_stdin64, seed = unknown
test set = core, folding = standard (64 bit)
rng=RNG_stdin64, seed=unknown
length= 1 gigabyte (2^30 bytes), time= 3.7 seconds
Test Name Raw Processed Evaluation
BCFN(2+0,13-1,T) R=+217.8 p = 9.2e-117 FAIL !!!!!
BCFN(2+1,13-1,T) R= +47.8 p = 3.4e-25 FAIL !!
BCFN(2+2,13-1,T) R= +12.8 p = 2.5e-6 suspicious
DC6-9x1Bytes-1 R= +1878 p = 9.0e-972 FAIL !!!!!!!
Gap-16:A R= +9.0 p = 2.6e-7 very suspicious
Gap-16:B R= +7.1 p = 5.1e-6 suspicious
FPF-14+6/16:(0,14-0) R= -6.6 p =1-9.4e-6 unusual
FPF-14+6/16:(1,14-0) R= -8.7 p =1-1.1e-7 suspicious
FPF-14+6/16:(3,14-0) R= -6.5 p =1-1.0e-5 unusual
FPF-14+6/16:all R= -15.2 p =1-1.7e-14 FAIL
BRank(12):128(8) R= +5547 p~= 5e-3561 FAIL !!!!!!!!
BRank(12):256(4) R= +9433 p~= 7e-5018 FAIL !!!!!!!!
BRank(12):384(1) R= +7472 p~= 2e-2250 FAIL !!!!!!!!
BRank(12):512(4) R=+20455 p~= 0 FAIL !!!!!!!!
BRank(12):768(1) R=+15738 p~= 8e-4739 FAIL !!!!!!!!
BRank(12):1K(2) R=+30051 p~= 2e-9047 FAIL !!!!!!!!
BRank(12):1536(1) R=+32271 p~= 1e-9715 FAIL !!!!!!!!
BRank(12):2K(2) R=+61226 p~= 0 FAIL !!!!!!!!
BRank(12):3K(1) R=+65337 p~= 0 FAIL !!!!!!!!
[Low16/64]DC6-9x1Bytes-1 R= +29.5 p = 1.8e-15 FAIL !
[Low16/64]Gap-16:A R= +45.0 p = 1.5e-35 FAIL !!!
[Low16/64]Gap-16:B R= +27.7 p = 1.4e-22 FAIL !!
[Low16/64]FPF-14+6/16:all R= -8.0 p =1-2.1e-7 very suspicious
[Low16/64]BRank(12):128(4) R= +3922 p~= 8e-2087 FAIL !!!!!!!!
[Low16/64]BRank(12):256(4) R= +9433 p~= 7e-5018 FAIL !!!!!!!!
[Low16/64]BRank(12):384(1) R= +7472 p~= 2e-2250 FAIL !!!!!!!!
[Low16/64]BRank(12):512(2) R=+14464 p~= 4e-4355 FAIL !!!!!!!!
[Low16/64]BRank(12):768(1) R=+15738 p~= 8e-4739 FAIL !!!!!!!!
[Low16/64]BRank(12):1K(2) R=+30051 p~= 2e-9047 FAIL !!!!!!!!
[Low16/64]BRank(12):1536(1) R=+32271 p~= 1e-9715 FAIL !!!!!!!!
[Low16/64]BRank(12):2K(1) R=+43293 p~= 0 FAIL !!!!!!!!
[Low4/64]BRank(12):128(4) R= +3922 p~= 8e-2087 FAIL !!!!!!!!
[Low4/64]BRank(12):256(2) R= +6670 p~= 5e-2009 FAIL !!!!!!!!
[Low4/64]BRank(12):384(1) R= +7472 p~= 2e-2250 FAIL !!!!!!!!
[Low4/64]BRank(12):512(2) R=+14464 p~= 4e-4355 FAIL !!!!!!!!
[Low4/64]BRank(12):768(1) R=+15738 p~= 8e-4739 FAIL !!!!!!!!
[Low4/64]BRank(12):1K(1) R=+21249 p~= 9e-6398 FAIL !!!!!!!!
[Low1/64]Gap-16:A R= +27.0 p = 6.6e-21 FAIL !!
[Low1/64]Gap-16:B R= +5.9 p = 4.7e-5 mildly suspicious
[Low1/64]BRank(12):128(4) R= +3922 p~= 8e-2087 FAIL !!!!!!!!
[Low1/64]BRank(12):256(2) R= +6670 p~= 5e-2009 FAIL !!!!!!!!
[Low1/64]BRank(12):384(1) R= +7472 p~= 2e-2250 FAIL !!!!!!!!
[Low1/64]BRank(12):512(2) R=+14464 p~= 4e-4355 FAIL !!!!!!!!
[Low1/64]BRank(12):768(1) R=+15738 p~= 8e-4739 FAIL !!!!!!!!
...and 202 test result(s) without anomalies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment