diff --git a/examples/json/bench.rs b/examples/json/bench.rs index 7f6dc86a..f0633997 100644 --- a/examples/json/bench.rs +++ b/examples/json/bench.rs @@ -17,6 +17,11 @@ fn json_bench(c: &mut criterion::Criterion) { b.iter(|| parser::json::(sample).unwrap()); }); + group.bench_with_input(criterion::BenchmarkId::new("unit", name), &len, |b, _| { + type Error<'i> = (); + + b.iter(|| parser::json::(sample).unwrap()); + }); group.bench_with_input( criterion::BenchmarkId::new("verbose", name), &len,