2020-06-25 13:13:22 -05:00
|
|
|
// Disabling on android for the time being
|
|
|
|
// See https://github.com/rust-lang/rust/issues/73535#event-3477699747
|
|
|
|
#![cfg(not(target_os = "android"))]
|
2020-02-08 04:52:14 -06:00
|
|
|
#![feature(btree_drain_filter)]
|
2019-10-20 13:06:20 -05:00
|
|
|
#![feature(map_first_last)]
|
2017-05-05 22:50:48 -05:00
|
|
|
#![feature(repr_simd)]
|
2021-03-16 08:41:26 -05:00
|
|
|
#![feature(slice_partition_dedup)]
|
2017-02-03 17:04:22 -06:00
|
|
|
#![feature(test)]
|
|
|
|
|
|
|
|
extern crate test;
|
|
|
|
|
2020-09-05 16:16:56 -05:00
|
|
|
mod binary_heap;
|
2017-02-06 04:38:47 -06:00
|
|
|
mod btree;
|
|
|
|
mod linked_list;
|
|
|
|
mod slice;
|
2019-12-22 16:42:04 -06:00
|
|
|
mod str;
|
2017-02-06 04:38:47 -06:00
|
|
|
mod string;
|
|
|
|
mod vec;
|
|
|
|
mod vec_deque;
|
2022-05-02 01:10:56 -05:00
|
|
|
|
|
|
|
/// Returns a `rand::Rng` seeded with a consistent seed.
|
|
|
|
///
|
|
|
|
/// This is done to avoid introducing nondeterminism in benchmark results.
|
|
|
|
fn bench_rng() -> rand_xorshift::XorShiftRng {
|
|
|
|
const SEED: [u8; 16] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
|
|
|
|
rand::SeedableRng::from_seed(SEED)
|
|
|
|
}
|