diff options
| author | mat <github@matdoes.dev> | 2023-03-22 20:59:33 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-03-22 20:59:33 -0500 |
| commit | 350bbac2828ebd5b2a5abac5c54014d271e8603a (patch) | |
| tree | 92c7916b78b81879c94ac5bcf09f179402839d3b | |
| parent | 95e9ec51dc5deb2b9e217ec2f18505c3bf32250f (diff) | |
| download | azalea-drasl-350bbac2828ebd5b2a5abac5c54014d271e8603a.tar.xz | |
rename benchmarks
| -rw-r--r-- | azalea-nbt/Cargo.toml | 2 | ||||
| -rwxr-xr-x | azalea-nbt/benches/compare.rs (renamed from azalea-nbt/benches/comparison.rs) | 0 | ||||
| -rwxr-xr-x | azalea-nbt/benches/nbt.rs (renamed from azalea-nbt/benches/my_benchmark.rs) | 22 |
3 files changed, 12 insertions, 12 deletions
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 index 7aede267..7aede267 100755 --- a/azalea-nbt/benches/comparison.rs +++ b/azalea-nbt/benches/compare.rs diff --git a/azalea-nbt/benches/my_benchmark.rs b/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); |
