1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use rand::{rngs::StdRng, SeedableRng};
fn main() {
let ns = [
64, 128, 256, 512, 1024, 2048, 3072, 4096, 5120, 6144, 7168, 8192, 16384, 24576, 32768,
40960, 49152, 57344, 65536,
];
let mut rng = StdRng::seed_from_u64(42);
candelabra_benchmarker::benchmark_container::<std::collections::LinkedList<usize>, _>(
&mut rng, &ns,
);
candelabra_benchmarker::benchmark_indexable::<std::collections::LinkedList<usize>, _>(
&mut rng, &ns,
);
candelabra_benchmarker::benchmark_stack::<std::collections::LinkedList<usize>, _>(
&mut rng, &ns,
);
}
|