2024-04-05 20:45:06 +02:00
|
|
|
// Disabling in Miri as these would take too long.
|
|
|
|
#![cfg(not(miri))]
|
2023-04-09 00:37:21 +02:00
|
|
|
#![feature(btree_extract_if)]
|
2022-06-26 22:53:25 +02:00
|
|
|
#![feature(iter_next_chunk)]
|
2017-05-05 20:50:48 -07:00
|
|
|
#![feature(repr_simd)]
|
2021-03-16 14:41:26 +01:00
|
|
|
#![feature(slice_partition_dedup)]
|
2024-09-14 13:44:02 +02:00
|
|
|
#![cfg_attr(bootstrap, feature(strict_provenance))]
|
|
|
|
#![cfg_attr(not(bootstrap), feature(strict_provenance_lints))]
|
2017-02-04 10:04:22 +11:00
|
|
|
#![feature(test)]
|
2022-11-20 19:07:50 +01:00
|
|
|
#![deny(fuzzy_provenance_casts)]
|
2017-02-04 10:04:22 +11:00
|
|
|
|
|
|
|
extern crate test;
|
|
|
|
|
2020-09-05 23:16:56 +02:00
|
|
|
mod binary_heap;
|
2017-02-06 21:38:47 +11:00
|
|
|
mod btree;
|
|
|
|
mod linked_list;
|
|
|
|
mod slice;
|
2019-12-22 17:42:04 -05:00
|
|
|
mod str;
|
|
|
|
mod string;
|
2017-02-06 21:38:47 +11:00
|
|
|
mod vec;
|
|
|
|
mod vec_deque;
|
2022-05-01 23:10:56 -07: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)
|
|
|
|
}
|