From f26d841688149142a09f9a8758173e164dc87289 Mon Sep 17 00:00:00 2001 From: sim1222 Date: Sun, 11 Feb 2024 12:50:48 +0000 Subject: [PATCH] change order --- benches/my_benchmark.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);