Skip to content

Commit

Permalink
Update rand to 0.8.3
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jfroy committed Feb 22, 2021
1 parent d78f90d commit 5c7496c
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 12 deletions.
79 changes: 68 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
image = "0.23"
palette = "0.5"
rand = "0.7"
rand = { version = "0.8.3", features = ["small_rng"] }
rayon = "1.5.0"
vek = "0.14.0"

Expand Down

0 comments on commit 5c7496c

Please sign in to comment.