MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / bench_data

Function bench_data

src/histogram.rs:64–69  ·  view source on GitHub ↗
(n: usize)

Source from the content-addressed store, hash-verified

62 use test::{black_box, Bencher};
63
64 fn bench_data(n: usize) -> Vec<u8> {
65 let mut rng = ChaCha20Rng::from_seed(Default::default());
66 std::iter::repeat_with(|| rng.gen_range(0..2))
67 .take(crate::limit_bench_miri(n))
68 .collect()
69 }
70
71 fn bench_histogram_parallel(b: &mut Bencher, n: usize) {
72 let data = bench_data(n);

Callers 2

bench_histogram_parallelFunction · 0.70
bench_histogram_simpleFunction · 0.70

Calls 2

limit_bench_miriFunction · 0.85
collectMethod · 0.45

Tested by

no test coverage detected