diff --git a/benches/2.generator b/benches/2.generator new file mode 100644 index 00000000..9ae140c2 --- /dev/null +++ b/benches/2.generator @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/benches/serialize.rs b/benches/serialize.rs index 8d6db2e2..34763343 100644 --- a/benches/serialize.rs +++ b/benches/serialize.rs @@ -13,11 +13,12 @@ fn serialize_benchmark(c: &mut Criterion) { // then serialize again. let block0: &[u8] = include_bytes!("0.generator"); let block1: &[u8] = include_bytes!("1.generator"); + let block2: &[u8] = include_bytes!("2.generator"); let mut group = c.benchmark_group("serialize"); group.sample_size(10); - for (block, name) in [(&block0, "0"), (&block1, "1")] { + for (block, name) in [(&block0, "0"), (&block1, "1"), (&block2, "2")] { let mut a = Allocator::new(); let node = node_from_bytes_backrefs(&mut a, block).expect("node_from_bytes_backrefs"); let inflated = node_to_bytes(&a, node).expect("node_to_bytes");