]> git.lizzy.rs Git - rust.git/blob - library/alloc/benches/lib.rs
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / library / alloc / benches / lib.rs
1 // Disabling on android for the time being
2 // See https://github.com/rust-lang/rust/issues/73535#event-3477699747
3 #![cfg(not(target_os = "android"))]
4 #![feature(btree_drain_filter)]
5 #![feature(iter_next_chunk)]
6 #![feature(repr_simd)]
7 #![feature(slice_partition_dedup)]
8 #![feature(strict_provenance)]
9 #![feature(test)]
10 #![deny(fuzzy_provenance_casts)]
11
12 extern crate test;
13
14 mod binary_heap;
15 mod btree;
16 mod linked_list;
17 mod slice;
18 mod str;
19 mod string;
20 mod vec;
21 mod vec_deque;
22
23 /// Returns a `rand::Rng` seeded with a consistent seed.
24 ///
25 /// This is done to avoid introducing nondeterminism in benchmark results.
26 fn bench_rng() -> rand_xorshift::XorShiftRng {
27     const SEED: [u8; 16] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
28     rand::SeedableRng::from_seed(SEED)
29 }