Skip to content

Commit

Permalink
Merge pull request #5342 from benesch/bad-bench
Browse files Browse the repository at this point in the history
repr: remove accidental code in parse_float32 benchmark
  • Loading branch information
benesch authored Jan 16, 2021
2 parents ee94205 + 4563162 commit 073f8f9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/repr/benches/strconv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ fn bench_parse_float32(c: &mut Criterion) {
b.iter(|| strconv::parse_float32(s).unwrap())
});
}

let input = include_str!("testdata/twitter.json");
c.bench_function("parse_jsonb", |b| {
b.iter(|| black_box(strconv::parse_jsonb(input).unwrap()))
});
}

fn bench_parse_jsonb(c: &mut Criterion) {
Expand Down

0 comments on commit 073f8f9

Please sign in to comment.