mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-20 07:02:31 +00:00
Re-enable NBT decoding benchmark
This commit is contained in:
parent
728f0399ff
commit
44db8948d6
1 changed files with 7 additions and 8 deletions
|
@ -25,14 +25,13 @@ fn bench_serialize(filename: &str, c: &mut Criterion) {
|
||||||
|
|
||||||
group.throughput(Throughput::Bytes(decoded_src.len() as u64));
|
group.throughput(Throughput::Bytes(decoded_src.len() as u64));
|
||||||
|
|
||||||
// group.bench_function("Decode", |b| {
|
group.bench_function("Decode", |b| {
|
||||||
// b.to_async(tokio::runtime::Runtime::new().unwrap())
|
b.iter(|| {
|
||||||
// .iter(|| async {
|
let mut owned_decoded_src_stream = decoded_src_stream.clone();
|
||||||
// let mut owned_decoded_src_stream = decoded_src_stream.clone();
|
owned_decoded_src_stream.seek(SeekFrom::Start(0)).unwrap();
|
||||||
// owned_decoded_src_stream.seek(SeekFrom::Start(0)).unwrap();
|
Tag::read(&mut owned_decoded_src_stream).unwrap();
|
||||||
// Tag::read(&mut owned_decoded_src_stream).await.unwrap();
|
})
|
||||||
// })
|
});
|
||||||
// });
|
|
||||||
|
|
||||||
group.bench_function("Encode", |b| {
|
group.bench_function("Encode", |b| {
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
|
|
Loading…
Reference in a new issue