Introduce new PRNG with drastically better performance #1

Merged
kayos merged 1 commits from entropy into master 2022-03-16 03:43:53 +00:00
Owner

dear god

Original

=== RUN   Test_RNG
--- PASS: Test_RNG (0.01s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.44s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 867
--- PASS: Test_RandStr_Entropy (0.44s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.01s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.44s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 879
--- PASS: Test_RandStr_Entropy (0.45s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.01s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.45s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 905
--- PASS: Test_RandStr_Entropy (0.44s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.01s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.45s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 887
--- PASS: Test_RandStr_Entropy (0.44s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.01s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.45s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 840
--- PASS: Test_RandStr_Entropy (0.44s)
PASS

SplitMix64 (gr33tz skeeto)

╭─ ⸸kayos⸸  penta entropy → master
╰ ./test.splitmix64 -test.v -test.count 5
=== RUN   Test_RNG
--- PASS: Test_RNG (0.00s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.03s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 822
--- PASS: Test_RandStr_Entropy (0.03s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.01s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.08s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 792
--- PASS: Test_RandStr_Entropy (0.08s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.00s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.08s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 843
--- PASS: Test_RandStr_Entropy (0.07s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.00s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.03s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 845
--- PASS: Test_RandStr_Entropy (0.05s)
=== RUN   Test_RNG
--- PASS: Test_RNG (0.00s)
=== RUN   Test_RandStr
--- PASS: Test_RandStr (0.03s)
=== RUN   Test_RandStr_Entropy
    entropy_test.go:79: [ENTROPY] final score (lower is better): 826
--- PASS: Test_RandStr_Entropy (0.03s)
PASS

Signed-off-by: kayos@tcp.direct kayos@tcp.direct

# [dear god](https://github.com/skeeto/rng-go) ### Original ``` === RUN Test_RNG --- PASS: Test_RNG (0.01s) === RUN Test_RandStr --- PASS: Test_RandStr (0.44s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 867 --- PASS: Test_RandStr_Entropy (0.44s) === RUN Test_RNG --- PASS: Test_RNG (0.01s) === RUN Test_RandStr --- PASS: Test_RandStr (0.44s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 879 --- PASS: Test_RandStr_Entropy (0.45s) === RUN Test_RNG --- PASS: Test_RNG (0.01s) === RUN Test_RandStr --- PASS: Test_RandStr (0.45s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 905 --- PASS: Test_RandStr_Entropy (0.44s) === RUN Test_RNG --- PASS: Test_RNG (0.01s) === RUN Test_RandStr --- PASS: Test_RandStr (0.45s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 887 --- PASS: Test_RandStr_Entropy (0.44s) === RUN Test_RNG --- PASS: Test_RNG (0.01s) === RUN Test_RandStr --- PASS: Test_RandStr (0.45s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 840 --- PASS: Test_RandStr_Entropy (0.44s) PASS ``` ### SplitMix64 (gr33tz skeeto) ``` ╭─ ⸸kayos⸸  penta entropy → master ╰ ./test.splitmix64 -test.v -test.count 5 === RUN Test_RNG --- PASS: Test_RNG (0.00s) === RUN Test_RandStr --- PASS: Test_RandStr (0.03s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 822 --- PASS: Test_RandStr_Entropy (0.03s) === RUN Test_RNG --- PASS: Test_RNG (0.01s) === RUN Test_RandStr --- PASS: Test_RandStr (0.08s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 792 --- PASS: Test_RandStr_Entropy (0.08s) === RUN Test_RNG --- PASS: Test_RNG (0.00s) === RUN Test_RandStr --- PASS: Test_RandStr (0.08s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 843 --- PASS: Test_RandStr_Entropy (0.07s) === RUN Test_RNG --- PASS: Test_RNG (0.00s) === RUN Test_RandStr --- PASS: Test_RandStr (0.03s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 845 --- PASS: Test_RandStr_Entropy (0.05s) === RUN Test_RNG --- PASS: Test_RNG (0.00s) === RUN Test_RandStr --- PASS: Test_RandStr (0.03s) === RUN Test_RandStr_Entropy entropy_test.go:79: [ENTROPY] final score (lower is better): 826 --- PASS: Test_RandStr_Entropy (0.03s) PASS ``` Signed-off-by: kayos@tcp.direct <kayos@tcp.direct>
kayos added 1 commit 2022-03-16 03:43:14 +00:00
kayos merged commit 04e1bde185 into master 2022-03-16 03:43:53 +00:00
kayos deleted branch entropy 2022-03-16 03:43:53 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kayos/common#1
No description provided.