From 350bbac2828ebd5b2a5abac5c54014d271e8603a Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 22 Mar 2023 20:59:33 -0500 Subject: [PATCH] rename benchmarks --- azalea-nbt/Cargo.toml | 2 +- .../benches/{comparison.rs => compare.rs} | 0 .../benches/{my_benchmark.rs => nbt.rs} | 22 +++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) rename azalea-nbt/benches/{comparison.rs => compare.rs} (100%) rename azalea-nbt/benches/{my_benchmark.rs => nbt.rs} (73%) diff --git a/azalea-nbt/Cargo.toml b/azalea-nbt/Cargo.toml index 4f01e254..e14c501f 100644 --- a/azalea-nbt/Cargo.toml +++ b/azalea-nbt/Cargo.toml @@ -38,4 +38,4 @@ debug = true [[bench]] harness = false -name = "my_benchmark" +name = "nbt" diff --git a/azalea-nbt/benches/comparison.rs b/azalea-nbt/benches/compare.rs similarity index 100% rename from azalea-nbt/benches/comparison.rs rename to azalea-nbt/benches/compare.rs diff --git a/azalea-nbt/benches/my_benchmark.rs b/azalea-nbt/benches/nbt.rs similarity index 73% rename from azalea-nbt/benches/my_benchmark.rs rename to azalea-nbt/benches/nbt.rs index 7ce11e1f..5eeb733f 100755 --- a/azalea-nbt/benches/my_benchmark.rs +++ b/azalea-nbt/benches/nbt.rs @@ -26,12 +26,12 @@ fn bench_file(filename: &str, c: &mut Criterion) { group.throughput(Throughput::Bytes(decoded_src.len() as u64)); - group.bench_function("Decode", |b| { - b.iter(|| { - black_box(Tag::read(&mut decoded_src_stream).unwrap()); - decoded_src_stream.set_position(0); - }) - }); + // group.bench_function("Decode", |b| { + // b.iter(|| { + // black_box(Tag::read(&mut decoded_src_stream).unwrap()); + // decoded_src_stream.set_position(0); + // }) + // }); group.bench_function("Encode", |b| { b.iter(|| { @@ -42,12 +42,12 @@ fn bench_file(filename: &str, c: &mut Criterion) { } fn bench(c: &mut Criterion) { - bench_file("tests/bigtest.nbt", c); - bench_file("tests/simple_player.dat", c); + // bench_file("tests/bigtest.nbt", c); + // bench_file("tests/simple_player.dat", c); bench_file("tests/complex_player.dat", c); - bench_file("tests/level.dat", c); - bench_file("tests/stringtest.nbt", c); - bench_file("tests/inttest.nbt", c); + // bench_file("tests/level.dat", c); + // bench_file("tests/stringtest.nbt", c); + // bench_file("tests/inttest.nbt", c); } criterion_group!(benches, bench);