diff --git a/benches/my_benchmark.rs b/benches/my_benchmark.rs index 4148891..a1b0d8e 100644 --- a/benches/my_benchmark.rs +++ b/benches/my_benchmark.rs @@ -6,12 +6,12 @@ const A: &str = "post"; const B: &str = "/fasjhiofasihofas"; pub fn criterion_benchmark(c: &mut Criterion) { - c.bench_function("concat with plus", |b| { - b.iter(|| concat_with_plus(black_box(A), black_box(B))); - }); c.bench_function("concat with format", |b| { b.iter(|| concat_with_format(black_box(A), black_box(B))); }); + c.bench_function("concat with plus", |b| { + b.iter(|| concat_with_plus(black_box(A), black_box(B))); + }); } criterion_group!(benches, criterion_benchmark);