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