DRY benches in benchmark_infer