Skip to content

Commit

Permalink
Merge pull request #264 from mgeisler/remove-unnecessary-benchmarks
Browse files Browse the repository at this point in the history
Remove uninteresting fill_boxed and fill_usize benchmarks
  • Loading branch information
mgeisler authored Dec 29, 2020
2 parents cc5ec6d + a438210 commit f50c552
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions benches/linear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ pub fn benchmark(c: &mut Criterion) {
},
);

let options: textwrap::Options =
textwrap::Options::new(LINE_LENGTH).splitter(Box::new(textwrap::HyphenSplitter));
group.bench_with_input(BenchmarkId::new("fill_boxed", length), &text, |b, text| {
b.iter(|| textwrap::fill(text, &options));
});

group.bench_with_input(BenchmarkId::new("fill_usize", length), &text, |b, text| {
b.iter(|| textwrap::fill(text, LINE_LENGTH));
});

group.bench_function(BenchmarkId::new("fill_inplace", length), |b| {
b.iter_batched(
|| text.clone(),
Expand Down

0 comments on commit f50c552

Please sign in to comment.