change order

This commit is contained in:
sim1222 2024-02-11 12:50:48 +00:00
parent 185e517e96
commit f26d841688

View File

@ -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);