diff options
Diffstat (limited to 'azalea-nbt')
| -rwxr-xr-x | azalea-nbt/benches/compare.rs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/azalea-nbt/benches/compare.rs b/azalea-nbt/benches/compare.rs index 139a8b65..1634b45b 100755 --- a/azalea-nbt/benches/compare.rs +++ b/azalea-nbt/benches/compare.rs @@ -22,21 +22,21 @@ pub fn bench_read_file(filename: &str, c: &mut Criterion) { let mut group = c.benchmark_group(filename); group.throughput(Throughput::Bytes(input.len() as u64)); - // group.bench_function("azalea_parse", |b| { - // b.iter(|| { - // let input = black_box(input); - // let nbt = azalea_nbt::Nbt::read(&mut Cursor::new(&input)).unwrap(); - // black_box(nbt); - // }) - // }); + group.bench_function("azalea_parse", |b| { + b.iter(|| { + let input = black_box(input); + let nbt = azalea_nbt::Nbt::read(&mut Cursor::new(&input)).unwrap(); + black_box(nbt); + }) + }); - // group.bench_function("graphite_parse", |b| { - // b.iter(|| { - // let input = black_box(input); - // let nbt = graphite_binary::nbt::decode::read(&mut - // &input[..]).unwrap(); black_box(nbt); - // }) - // }); + group.bench_function("graphite_parse", |b| { + b.iter(|| { + let input = black_box(input); + let nbt = graphite_binary::nbt::decode::read(&mut &input[..]).unwrap(); + black_box(nbt); + }) + }); // group.bench_function("valence_parse", |b| { // b.iter(|| { |
