Skip to content

Commit 5c7496c

Browse files
committed
Update rand to 0.8.3
This update in particular changes the SmallRng to xoshiro, which I explored in an experimental branch. Benchmarking shows that this change is performance-neutral and the output looks the same. See rust-random/rand#1038 for more. The experimental branch was more complicated because it replaced the use of thread_rng with a custom rayon pool. I may eventually pick up that branch again because it offers more control, but for now this new rand version gets me the better PRNG. AMD Ryzen 9 3900X 12-Core Processor (AMD64 Family 23 Model 113 Stepping 0) tracescene/10x10x4 time: [295.42 us 295.79 us 296.17 us] change: [-1.4129% -1.1793% -0.9318%] (p = 0.00 < 0.05) Change within noise threshold. Found 8 outliers among 100 measurements (8.00%) 1 (1.00%) low severe 5 (5.00%) low mild 1 (1.00%) high mild 1 (1.00%) high severe
1 parent d78f90d commit 5c7496c

File tree

2 files changed

+69
-12
lines changed

2 files changed

+69
-12
lines changed

Cargo.lock

+68-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
[dependencies]
88
image = "0.23"
99
palette = "0.5"
10-
rand = "0.7"
10+
rand = { version = "0.8.3", features = ["small_rng"] }
1111
rayon = "1.5.0"
1212
vek = "0.14.0"
1313

0 commit comments

Comments
 (0)