Macro glassbench::glassbench[][src]

macro_rules! glassbench {
    (
        $title: literal,
        $( $fun: path, )+
    ) => { ... };
}

Generates a benchmark with a consistent id (using the benchmark file title), calling the benchmarking functions given in argument.

glassbench!(
    "Sortings",
    bench_number_sorting,
    bench_alpha_sorting,
);

This generates the whole main function. If you want to set the bench name yourself (not recommanded), or change the way the launch arguments are used, you can write the main yourself and call create_bench and after_bench instead of using this macro.