macro_rules! add_benchmarks { ($benchmark_set:ident, [$b:expr], [$f:expr]) => { ... }; ($benchmark_set:ident, [$b:expr, $($bs:expr),+ $(,)?], [$($fs:expr),+ $(,)?]) => { ... }; ($benchmark_set:ident, [$b:expr], [$f:expr, $($fs:expr),+ $(,)?]) => { ... }; }
Expand description
Macro to add many benchmark and filesystem pairs to a BenchmarkSet
.
Expands:
add_benchmarks!(benchmark_set, [benchmark1, benchmark2], [filesystem1, filesystem2]);
Into:
benchmark_set.add_benchmark(benchmark1.clone(), filesystem1.clone());
benchmark_set.add_benchmark(benchmark1.clone(), filesystem2.clone());
benchmark_set.add_benchmark(benchmark2.clone(), filesystem1.clone());
benchmark_set.add_benchmark(benchmark2.clone(), filesystem2.clone());