2020-06-25 18:13:22 +00: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 10:52:14 +00:00
|
|
|
#![feature(btree_drain_filter)]
|
2019-10-20 18:06:20 +00:00
|
|
|
#![feature(map_first_last)]
|
2017-05-06 03:50:48 +00:00
|
|
|
#![feature(repr_simd)]
|
2021-03-16 13:41:26 +00:00
|
|
|
#![feature(slice_partition_dedup)]
|
2017-02-03 23:04:22 +00:00
|
|
|
#![feature(test)]
|
|
|
|
|
|
|
|
extern crate test;
|
|
|
|
|
2020-09-05 21:16:56 +00:00
|
|
|
mod binary_heap;
|
2017-02-06 10:38:47 +00:00
|
|
|
mod btree;
|
|
|
|
mod linked_list;
|
|
|
|
mod slice;
|
2019-12-22 22:42:04 +00:00
|
|
|
mod str;
|
2017-02-06 10:38:47 +00:00
|
|
|
mod string;
|
|
|
|
mod vec;
|
|
|
|
mod vec_deque;
|
2022-05-02 06:10:56 +00: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)
|
|
|
|
}
|