rust/library/core/benches
bors 12d3f107c1 Auto merge of #96626 - thomcc:rand-bump, r=m-ou-se
Avoid using `rand::thread_rng` in the stdlib benchmarks.

This is kind of an anti-pattern because it introduces extra nondeterminism for no real reason. In thread_rng's case this comes both from the random seed and also from the reseeding operations it does, which occasionally does syscalls (which adds additional nondeterminism). The impact of this would be pretty small in most cases, but it's a good practice to avoid (particularly because avoiding it was not hard).

Anyway, several of our benchmarks already did the right thing here anyway, so the change was pretty easy and mostly just applying it more universally. That said, the stdlib benchmarks aren't particularly stable (nor is our benchmark framework particularly great), so arguably this doesn't matter that much in practice.

~~Anyway, this also bumps the `rand` dev-dependency to 0.8, since it had fallen somewhat out of date.~~ Nevermind, too much of a headache.
2022-05-05 05:08:44 +00:00
..
ascii Make some usize-typed masks definition agnostic to the size of usize 2022-04-15 17:04:59 +02:00
char Add two more benchmarks for strictly ASCII and non ASCII cases 2021-02-26 11:42:59 -06:00
hash
num Avoid use of rand::thread_rng in stdlib benchmarks 2022-05-02 00:08:21 -07:00
str Respond to review feedback, and improve implementation somewhat 2022-02-05 11:15:18 -08:00
any.rs
ascii.rs Unify way to flip 6th bit. (Same assembly generated) 2021-02-08 12:21:36 +00:00
fmt.rs move core::hint::black_box under its own feature gate 2021-04-25 11:08:12 +02:00
iter.rs add benchmark 2022-05-02 20:54:46 +02:00
lib.rs Auto merge of #96626 - thomcc:rand-bump, r=m-ou-se 2022-05-05 05:08:44 +00:00
ops.rs
pattern.rs
slice.rs Stop manually SIMDing in swap_nonoverlapping 2022-02-21 00:54:02 -08:00
str.rs Optimize core::str::Chars::count 2022-02-05 11:15:17 -08:00