]> git.lizzy.rs Git - rust.git/blob - library/alloc/benches/lib.rs
Auto merge of #93873 - Stovent:big-ints, r=m-ou-se
[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(map_first_last)]
7 #![feature(repr_simd)]
8 #![feature(slice_partition_dedup)]
9 #![feature(test)]
10
11 extern crate test;
12
13 mod binary_heap;
14 mod btree;
15 mod linked_list;
16 mod slice;
17 mod str;
18 mod string;
19 mod vec;
20 mod vec_deque;
21
22 /// Returns a `rand::Rng` seeded with a consistent seed.
23 ///
24 /// This is done to avoid introducing nondeterminism in benchmark results.
25 fn bench_rng() -> rand_xorshift::XorShiftRng {
26     const SEED: [u8; 16] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
27     rand::SeedableRng::from_seed(SEED)
28 }