The criterion_main macro generates the main function that starts registered Criterion benchmark groups. It supplies the entry point when the built-in benchmarking harness is disabled. section 6.5
Connect the benchmark group
A basic benchmark declares the group and passes its name to criterion_main!: criterion_main!(python_vs_rust); criterion_group!(python_vs_rust, bench_fn);. The group collects benchmark functions that share configuration. section 6.5
Figure 6.2 Anatomy of our benchmark program
Use the benchmark-program anatomy figure to locate the generated entry point alongside the group and benchmark function. section 6.5
