diff options
| author | mat <github@matdoes.dev> | 2022-05-01 22:53:24 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-01 22:53:24 -0500 |
| commit | 44db8948d681df4245f3d93173667b10e58e046b (patch) | |
| tree | a98622c5bc4c06409e2e58942aa20a8bb9d7d35a | |
| parent | 728f0399ff1a03f5ce8134b46e6150daf1e2076d (diff) | |
| download | azalea-drasl-44db8948d681df4245f3d93173667b10e58e046b.tar.xz | |
Re-enable NBT decoding benchmark
| -rwxr-xr-x | azalea-nbt/benches/my_benchmark.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/azalea-nbt/benches/my_benchmark.rs b/azalea-nbt/benches/my_benchmark.rs index a6e68486..ed963fb1 100755 --- a/azalea-nbt/benches/my_benchmark.rs +++ b/azalea-nbt/benches/my_benchmark.rs @@ -25,14 +25,13 @@ fn bench_serialize(filename: &str, c: &mut Criterion) { group.throughput(Throughput::Bytes(decoded_src.len() as u64)); - // group.bench_function("Decode", |b| { - // b.to_async(tokio::runtime::Runtime::new().unwrap()) - // .iter(|| async { - // let mut owned_decoded_src_stream = decoded_src_stream.clone(); - // owned_decoded_src_stream.seek(SeekFrom::Start(0)).unwrap(); - // Tag::read(&mut owned_decoded_src_stream).await.unwrap(); - // }) - // }); + group.bench_function("Decode", |b| { + b.iter(|| { + let mut owned_decoded_src_stream = decoded_src_stream.clone(); + owned_decoded_src_stream.seek(SeekFrom::Start(0)).unwrap(); + Tag::read(&mut owned_decoded_src_stream).unwrap(); + }) + }); group.bench_function("Encode", |b| { b.iter(|| { |
