Skip to content

Commit 52d3360

Browse files
author
Gunter Schmidt
committed
reorder functions in cmp
1 parent 5fa4ff7 commit 52d3360

2 files changed

Lines changed: 376 additions & 376 deletions

File tree

benches/bench-diffutils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mod diffutils_cmp {
3737
bencher
3838
// .with_inputs(|| prepare::cmp_params_identical_testfiles(lines))
3939
.with_inputs(|| params.clone())
40-
.bench_refs(|params| black_box(cmp::cmp(&params).unwrap()));
40+
.bench_refs(|params| black_box(cmp::cmp_compare(&params).unwrap()));
4141
}
4242

4343
// bench the actual compare; cmp exits on first difference
@@ -51,7 +51,7 @@ mod diffutils_cmp {
5151
bencher
5252
// .with_inputs(|| prepare::cmp_params_identical_testfiles(lines))
5353
.with_inputs(|| params.clone())
54-
.bench_refs(|params| black_box(cmp::cmp(&params).unwrap()));
54+
.bench_refs(|params| black_box(cmp::cmp_compare(&params).unwrap()));
5555
}
5656

5757
// bench original GNU cmp

0 commit comments

Comments
 (0)