change order
This commit is contained in:
parent
185e517e96
commit
f26d841688
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user