From 84fe979955420aa5d9418136f630959b5acfe2b7 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 14:32:37 +0200 Subject: [PATCH 01/26] fix build --- src/btreemap.rs | 14 ++- src/storable.rs | 123 +++++++++++++++++-- src/storable/tests.rs | 20 +++ src/storable/tuples.rs | 273 ++++++++++++++++++++++------------------- src/vec/tests.rs | 8 ++ 5 files changed, 299 insertions(+), 139 deletions(-) diff --git a/src/btreemap.rs b/src/btreemap.rs index b0a86620..1b196334 100644 --- a/src/btreemap.rs +++ b/src/btreemap.rs @@ -2980,6 +2980,10 @@ mod test { Cow::Borrowed(&[1, 2, 3, 4]) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(_: Cow<[u8]>) -> Self { unimplemented!(); } @@ -3116,7 +3120,11 @@ mod test { struct T; impl Storable for T { fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(vec![1, 2, 3]) + Cow::Borrowed(&[1, 2, 3]) + } + + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() } fn from_bytes(bytes: Cow<[u8]>) -> Self { @@ -3138,6 +3146,10 @@ mod test { Cow::Owned(vec![1, 2, 3]) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(bytes: Cow<[u8]>) -> Self { assert_eq!(bytes.to_vec(), vec![1, 2, 3]); T2 diff --git a/src/storable.rs b/src/storable.rs index 044ffa9a..9380b0bc 100644 --- a/src/storable.rs +++ b/src/storable.rs @@ -16,6 +16,9 @@ pub trait Storable { /// NOTE: `Cow` is used here to avoid unnecessary cloning. fn to_bytes(&self) -> Cow<[u8]>; + ///! TODO: add documentation. + fn into_bytes(self) -> Vec; + /// Converts bytes into an element. fn from_bytes(bytes: Cow<[u8]>) -> Self; @@ -175,10 +178,16 @@ impl fmt::Debug for Blob { } impl Storable for Blob { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { Cow::Borrowed(self.as_slice()) } + #[inline] + fn into_bytes(self) -> Vec { + self.as_slice().to_vec() + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { Self::try_from(bytes.borrow()).unwrap() @@ -220,10 +229,16 @@ impl Default for FixedVec { } impl Storable for FixedVec { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { Cow::Owned(self.0.clone()) } + #[inline] + fn into_bytes(self) -> Vec { + self.0 + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { FixedVec(bytes.into_owned()) @@ -245,10 +260,16 @@ impl Storable for FixedVec { // in case of a detected error is preferable and safer. impl Storable for () { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { Cow::Borrowed(&[]) } + #[inline] + fn into_bytes(self) -> Vec { + Vec::new() + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { assert!(bytes.is_empty()); @@ -263,10 +284,16 @@ impl Storable for () { } impl Storable for Vec { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { Cow::Borrowed(self) } + #[inline] + fn into_bytes(self) -> Vec { + self + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { bytes.into_owned() @@ -276,10 +303,16 @@ impl Storable for Vec { } impl Storable for String { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { Cow::Borrowed(self.as_bytes()) } + #[inline] + fn into_bytes(self) -> Vec { + self.into_bytes() + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { String::from_utf8(bytes.into_owned()).unwrap() @@ -289,8 +322,14 @@ impl Storable for String { } impl Storable for u128 { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(self.to_be_bytes().to_vec()) + Cow::Owned(self.into_bytes()) + } + + #[inline] + fn into_bytes(self) -> Vec { + self.to_be_bytes().to_vec() } #[inline] @@ -305,8 +344,14 @@ impl Storable for u128 { } impl Storable for u64 { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(self.to_be_bytes().to_vec()) + Cow::Owned(self.into_bytes()) + } + + #[inline] + fn into_bytes(self) -> Vec { + self.to_be_bytes().to_vec() } #[inline] @@ -321,8 +366,14 @@ impl Storable for u64 { } impl Storable for f64 { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(self.to_be_bytes().to_vec()) + Cow::Owned(self.into_bytes()) + } + + #[inline] + fn into_bytes(self) -> Vec { + self.to_be_bytes().to_vec() } #[inline] @@ -337,8 +388,14 @@ impl Storable for f64 { } impl Storable for u32 { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(self.to_be_bytes().to_vec()) + Cow::Owned(self.into_bytes()) + } + + #[inline] + fn into_bytes(self) -> Vec { + self.to_be_bytes().to_vec() } #[inline] @@ -353,8 +410,14 @@ impl Storable for u32 { } impl Storable for f32 { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(self.to_be_bytes().to_vec()) + Cow::Owned(self.into_bytes()) + } + + #[inline] + fn into_bytes(self) -> Vec { + self.to_be_bytes().to_vec() } #[inline] @@ -369,8 +432,14 @@ impl Storable for f32 { } impl Storable for u16 { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(self.to_be_bytes().to_vec()) + Cow::Owned(self.into_bytes()) + } + + #[inline] + fn into_bytes(self) -> Vec { + self.to_be_bytes().to_vec() } #[inline] @@ -385,8 +454,14 @@ impl Storable for u16 { } impl Storable for u8 { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { - Cow::Owned(self.to_be_bytes().to_vec()) + Cow::Owned(self.into_bytes()) + } + + #[inline] + fn into_bytes(self) -> Vec { + self.to_be_bytes().to_vec() } #[inline] @@ -402,8 +477,11 @@ impl Storable for u8 { impl Storable for bool { fn to_bytes(&self) -> Cow<[u8]> { - let num: u8 = if *self { 1 } else { 0 }; - Cow::Owned(num.to_be_bytes().to_vec()) + Cow::Owned(if *self { 1_u8 } else { 0_u8 }.to_be_bytes().to_vec()) + } + + fn into_bytes(self) -> Vec { + if self { 1_u8 } else { 0_u8 }.to_be_bytes().to_vec() } #[inline] @@ -423,10 +501,16 @@ impl Storable for bool { } impl Storable for [u8; N] { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { Cow::Borrowed(&self[..]) } + #[inline] + fn into_bytes(self) -> Vec { + self.to_vec() + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { assert_eq!(bytes.len(), N); @@ -442,10 +526,16 @@ impl Storable for [u8; N] { } impl Storable for Reverse { + #[inline] fn to_bytes(&self) -> Cow<[u8]> { self.0.to_bytes() } + #[inline] + fn into_bytes(self) -> Vec { + self.0.into_bytes() + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { Self(T::from_bytes(bytes)) @@ -466,6 +556,17 @@ impl Storable for Option { } } + fn into_bytes(self) -> Vec { + match self { + Some(t) => { + let mut bytes = t.into_bytes(); + bytes.push(1); + bytes + } + None => vec![0], + } + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { match bytes.split_last() { @@ -500,6 +601,10 @@ impl Storable for Principal { Cow::Borrowed(self.as_slice()) } + fn into_bytes(self) -> Vec { + self.as_slice().to_vec() + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { Self::from_slice(&bytes) diff --git a/src/storable/tests.rs b/src/storable/tests.rs index a735defa..827133a3 100644 --- a/src/storable/tests.rs +++ b/src/storable/tests.rs @@ -139,6 +139,10 @@ fn to_bytes_checked_element_too_long_panics() { Cow::Borrowed(&[1, 2, 3, 4]) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(_: Cow<[u8]>) -> Self { unimplemented!(); } @@ -160,6 +164,10 @@ fn to_bytes_checked_unbounded_element_no_panic() { Cow::Borrowed(&[1, 2, 3, 4]) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(_: Cow<[u8]>) -> Self { unimplemented!(); } @@ -178,6 +186,10 @@ fn to_bytes_checked_element_correct_size_no_panic() { Cow::Borrowed(&[1, 2, 3, 4]) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(_: Cow<[u8]>) -> Self { unimplemented!(); } @@ -200,6 +212,10 @@ fn to_bytes_checked_fixed_element_wrong_size_panics() { Cow::Borrowed(&[1, 2, 3, 4]) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(_: Cow<[u8]>) -> Self { unimplemented!(); } @@ -221,6 +237,10 @@ fn to_bytes_checked_fixed_element_correct_size_no_panic() { Cow::Borrowed(&[1, 2, 3, 4, 5]) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(_: Cow<[u8]>) -> Self { unimplemented!(); } diff --git a/src/storable/tuples.rs b/src/storable/tuples.rs index 180d5c88..fd468e02 100644 --- a/src/storable/tuples.rs +++ b/src/storable/tuples.rs @@ -1,7 +1,7 @@ use crate::storable::{ bounds, bytes_to_store_size, bytes_to_store_size_bounded, Bound, Bounds, Storable, }; -use std::borrow::{Borrow, Cow}; +use std::borrow::Cow; impl Storable for (A, B) where @@ -9,60 +9,29 @@ where B: Storable, { fn to_bytes(&self) -> Cow<[u8]> { - match Self::BOUND { - Bound::Bounded { max_size, .. } => { - let mut bytes = vec![0; max_size as usize]; - let a_bytes = self.0.to_bytes(); - let b_bytes = self.1.to_bytes(); - - let a_bounds = bounds::(); - let b_bounds = bounds::(); - - let a_max_size = a_bounds.max_size as usize; - let b_max_size = b_bounds.max_size as usize; - - debug_assert!(a_bytes.len() <= a_max_size); - debug_assert!(b_bytes.len() <= b_max_size); - - bytes[0..a_bytes.len()].copy_from_slice(a_bytes.borrow()); - bytes[a_max_size..a_max_size + b_bytes.len()].copy_from_slice(b_bytes.borrow()); - - let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; - let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; - - let sizes_offset: usize = a_max_size + b_max_size; - - encode_size_of_bound( - &mut bytes[sizes_offset..sizes_offset + a_size_len], - a_bytes.len(), - &a_bounds, - ); - encode_size_of_bound( - &mut bytes[sizes_offset + a_size_len..sizes_offset + a_size_len + b_size_len], - b_bytes.len(), - &b_bounds, - ); + Cow::Owned(into_bytes_inner(Self::BOUND, &self.0, &self.1)) + } - Cow::Owned(bytes) - } - _ => todo!("Serializing tuples with unbounded types is not yet supported."), - } + fn into_bytes(self) -> Vec { + into_bytes_inner(Self::BOUND, &self.0, &self.1) } - #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { match Self::BOUND { Bound::Bounded { max_size, .. } => { + let bytes = bytes.as_ref(); assert_eq!(bytes.len(), max_size as usize); let a_bounds = bounds::(); let b_bounds = bounds::(); - let a_max_size = a_bounds.max_size as usize; - let b_max_size = b_bounds.max_size as usize; - let sizes_offset = a_max_size + b_max_size; + let a_max = a_bounds.max_size as usize; + let b_max = b_bounds.max_size as usize; let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; + + let sizes_offset = a_max + b_max; + let a_len = decode_size_of_bound( &bytes[sizes_offset..sizes_offset + a_size_len], &a_bounds, @@ -73,7 +42,7 @@ where ); let a = A::from_bytes(Cow::Borrowed(&bytes[0..a_len])); - let b = B::from_bytes(Cow::Borrowed(&bytes[a_max_size..a_max_size + b_len])); + let b = B::from_bytes(Cow::Borrowed(&bytes[a_max..a_max + b_len])); (a, b) } @@ -81,29 +50,78 @@ where } } - const BOUND: Bound = { - match (A::BOUND, B::BOUND) { - (Bound::Bounded { .. }, Bound::Bounded { .. }) => { - let a_bounds = bounds::(); - let b_bounds = bounds::(); + const BOUND: Bound = match (A::BOUND, B::BOUND) { + (Bound::Bounded { .. }, Bound::Bounded { .. }) => { + let a_bounds = bounds::(); + let b_bounds = bounds::(); - let max_size = a_bounds.max_size - + b_bounds.max_size - + bytes_to_store_size_bounded(&a_bounds) - + bytes_to_store_size_bounded(&b_bounds); + let max_size = a_bounds.max_size + + b_bounds.max_size + + bytes_to_store_size_bounded(&a_bounds) + + bytes_to_store_size_bounded(&b_bounds); - let is_fixed_size = a_bounds.is_fixed_size && b_bounds.is_fixed_size; + let is_fixed_size = a_bounds.is_fixed_size && b_bounds.is_fixed_size; - Bound::Bounded { - max_size, - is_fixed_size, - } + Bound::Bounded { + max_size, + is_fixed_size, } - _ => Bound::Unbounded, } + _ => Bound::Unbounded, }; } +#[inline] +fn into_bytes_inner(bound: Bound, a: &A, b: &B) -> Vec +where + A: Storable, + B: Storable, +{ + match bound { + Bound::Bounded { max_size, .. } => { + let mut buf = vec![0u8; max_size as usize]; + + let a_bytes = a.to_bytes(); + let b_bytes = b.to_bytes(); + + let a_bounds = bounds::(); + let b_bounds = bounds::(); + + let a_max = a_bounds.max_size as usize; + let b_max = b_bounds.max_size as usize; + let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; + let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; + + let sizes_offset = a_max + b_max; + + // Copy A + debug_assert!(a_bytes.len() <= a_max); + buf[..a_bytes.len()].copy_from_slice(&a_bytes); + + // Copy B + debug_assert!(b_bytes.len() <= b_max); + buf[a_max..a_max + b_bytes.len()].copy_from_slice(&b_bytes); + + // Encode sizes + encode_size_of_bound( + &mut buf[sizes_offset..sizes_offset + a_size_len], + a_bytes.len(), + &a_bounds, + ); + encode_size_of_bound( + &mut buf[sizes_offset + a_size_len..sizes_offset + a_size_len + b_size_len], + b_bytes.len(), + &b_bounds, + ); + + buf + } + Bound::Unbounded => { + todo!("Serializing tuples with unbounded types is not yet supported.") + } + } +} + fn decode_size_of_bound(src: &[u8], bounds: &Bounds) -> usize { if bounds.is_fixed_size { bounds.max_size as usize @@ -255,104 +273,101 @@ where B: Storable, C: Storable, { - // Tuple (A, B, C) will be serialized in the following form: - // If A and B have fixed size - // - // Otherwise - // + /// Serializes the tuple (A, B, C) into bytes. + /// + /// Format: + /// - If A and B are fixed-size: `` + /// - Otherwise: `` fn to_bytes(&self) -> Cow<[u8]> { - let a_bytes = self.0.to_bytes(); - let a_size = a_bytes.len(); - - let b_bytes = self.1.to_bytes(); - let b_size = b_bytes.len(); - - let c_bytes = self.2.to_bytes(); - let c_size = c_bytes.len(); - - let sizes_overhead = sizes_overhead::(a_size, b_size); - - let output_size = a_size + b_size + c_size + sizes_overhead; - - let mut bytes_written = 0; - - let mut bytes = vec![0; output_size]; - - if sizes_overhead != 0 { - bytes[bytes_written] = encode_size_lengths(vec![a_size, b_size]); - bytes_written += 1; - } - - bytes_written += - encode_tuple_element::(&mut bytes[bytes_written..], a_bytes.borrow(), false); - bytes_written += - encode_tuple_element::(&mut bytes[bytes_written..], b_bytes.borrow(), false); - bytes_written += - encode_tuple_element::(&mut bytes[bytes_written..], c_bytes.borrow(), true); - - assert_eq!(bytes_written, output_size); + encode_triple::(&self.0, &self.1, &self.2).into() + } - Cow::Owned(bytes) + /// Serializes and consumes the tuple (A, B, C) into an owned `Vec`. + /// + /// More efficient than `to_bytes()` when ownership is available. + fn into_bytes(self) -> Vec { + encode_triple::(&self.0, &self.1, &self.2) } #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { - let mut bytes_read_total = 0; + let bytes = bytes.as_ref(); + let mut offset = 0; let mut size_lengths = [None, None]; if !(A::BOUND.is_fixed_size() && B::BOUND.is_fixed_size()) { - let lengths = decode_size_lengths(bytes[bytes_read_total], 2); - bytes_read_total += 1; + let lengths = decode_size_lengths(bytes[offset], 2); + offset += 1; if !A::BOUND.is_fixed_size() { size_lengths[0] = Some(lengths[0]); } - if !B::BOUND.is_fixed_size() { size_lengths[1] = Some(lengths[1]); } } - let (a, bytes_read) = - decode_tuple_element::(&bytes[bytes_read_total..], size_lengths[0], false); - bytes_read_total += bytes_read; + let (a, read) = decode_tuple_element::(&bytes[offset..], size_lengths[0], false); + offset += read; - let (b, bytes_read) = - decode_tuple_element::(&bytes[bytes_read_total..], size_lengths[1], false); - bytes_read_total += bytes_read; + let (b, read) = decode_tuple_element::(&bytes[offset..], size_lengths[1], false); + offset += read; - let (c, bytes_read) = decode_tuple_element::(&bytes[bytes_read_total..], None, true); + let (c, read) = decode_tuple_element::(&bytes[offset..], None, true); + offset += read; - bytes_read_total += bytes_read; - - assert_eq!(bytes_read_total, bytes.len()); + assert_eq!(offset, bytes.len()); (a, b, c) } - const BOUND: Bound = { - match (A::BOUND, B::BOUND, C::BOUND) { - (Bound::Bounded { .. }, Bound::Bounded { .. }, Bound::Bounded { .. }) => { - let a_bounds = bounds::(); - let b_bounds = bounds::(); - let c_bounds = bounds::(); - - let sizes_overhead = - sizes_overhead::(a_bounds.max_size as usize, b_bounds.max_size as usize) - as u32; - - Bound::Bounded { - max_size: a_bounds.max_size - + b_bounds.max_size - + c_bounds.max_size - + sizes_overhead, - is_fixed_size: a_bounds.is_fixed_size - && b_bounds.is_fixed_size - && c_bounds.is_fixed_size, - } + const BOUND: Bound = match (A::BOUND, B::BOUND, C::BOUND) { + (Bound::Bounded { .. }, Bound::Bounded { .. }, Bound::Bounded { .. }) => { + let a = bounds::(); + let b = bounds::(); + let c = bounds::(); + let overhead = sizes_overhead::(a.max_size as usize, b.max_size as usize) as u32; + + Bound::Bounded { + max_size: a.max_size + b.max_size + c.max_size + overhead, + is_fixed_size: a.is_fixed_size && b.is_fixed_size && c.is_fixed_size, } - _ => Bound::Unbounded, } + _ => Bound::Unbounded, }; } + +#[inline] +fn encode_triple(a: &A, b: &B, c: &C) -> Vec +where + A: Storable, + B: Storable, + C: Storable, +{ + let a_bytes = a.to_bytes(); + let b_bytes = b.to_bytes(); + let c_bytes = c.to_bytes(); + + let a_len = a_bytes.len(); + let b_len = b_bytes.len(); + let c_len = c_bytes.len(); + + let sizes_overhead = sizes_overhead::(a_len, b_len); + let total_size = a_len + b_len + c_len + sizes_overhead; + + let mut buf = vec![0u8; total_size]; + let mut offset = 0; + + if sizes_overhead > 0 { + buf[0] = encode_size_lengths(vec![a_len, b_len]); + offset += 1; + } + + offset += encode_tuple_element::(&mut buf[offset..], a_bytes.as_ref(), false); + offset += encode_tuple_element::(&mut buf[offset..], b_bytes.as_ref(), false); + offset += encode_tuple_element::(&mut buf[offset..], c_bytes.as_ref(), true); + + debug_assert_eq!(offset, total_size); + buf +} diff --git a/src/vec/tests.rs b/src/vec/tests.rs index 7895c94d..b4c1bd2d 100644 --- a/src/vec/tests.rs +++ b/src/vec/tests.rs @@ -15,6 +15,10 @@ impl Storable for UnfixedU64 { self.0.to_bytes() } + fn into_bytes(self) -> Vec { + self.0.into_bytes() + } + fn from_bytes(bytes: Cow<[u8]>) -> Self { assert!(bytes.len() == 8); Self(u64::from_bytes(bytes)) @@ -259,6 +263,10 @@ impl crate::Storable for BuggyStruct { Cow::Borrowed(&self.0) } + fn into_bytes(self) -> Vec { + self.to_bytes().into_owned() + } + fn from_bytes(_: Cow<[u8]>) -> Self { unimplemented!(); } From 1cdce5a4e8b6ae6b46e107ad2be6b5f37db0f729 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 14:37:36 +0200 Subject: [PATCH 02/26] . --- benchmarks/vec/canbench_results.yml | 2 +- src/btreemap.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/vec/canbench_results.yml b/benchmarks/vec/canbench_results.yml index 1ae95596..4237d17f 100644 --- a/benchmarks/vec/canbench_results.yml +++ b/benchmarks/vec/canbench_results.yml @@ -107,7 +107,7 @@ benches: vec_insert_u64: total: calls: 1 - instructions: 5869519 + instructions: 5359519 heap_increase: 0 stable_memory_increase: 1 scopes: {} diff --git a/src/btreemap.rs b/src/btreemap.rs index 1b196334..a86ce158 100644 --- a/src/btreemap.rs +++ b/src/btreemap.rs @@ -492,7 +492,7 @@ where /// key.to_bytes().len() <= max_size(Key) /// value.to_bytes().len() <= max_size(Value) pub fn insert(&mut self, key: K, value: V) -> Option { - let value = value.to_bytes_checked().into_owned(); + let value = value.into_bytes(); let root = if self.root_addr == NULL { // No root present. Allocate one. @@ -1428,7 +1428,7 @@ mod test { /// Encodes an object into a byte vector. fn encode(object: T) -> Vec { - object.to_bytes_checked().into_owned() + object.into_bytes() } /// A helper method to succinctly create a blob. From 856e5fbba55029fe884c62620f85e653532a5873 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 14:42:52 +0200 Subject: [PATCH 03/26] --persist --- benchmarks/btreemap/canbench_results.yml | 390 +++++++++++------------ 1 file changed, 195 insertions(+), 195 deletions(-) diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 6abd993b..61e10c40 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -226,7 +226,7 @@ benches: btreemap_v2_contains_vec_32_4: total: calls: 1 - instructions: 366267458 + instructions: 366267473 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -562,280 +562,280 @@ benches: btreemap_v2_insert_10mib_values: total: calls: 1 - instructions: 5251792410 - heap_increase: 322 + instructions: 4414278369 + heap_increase: 161 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: calls: 1 - instructions: 451032102 + instructions: 450486119 heap_increase: 0 stable_memory_increase: 4 scopes: {} btreemap_v2_insert_blob_1024_128: total: calls: 1 - instructions: 5525788624 + instructions: 5525952614 heap_increase: 0 stable_memory_increase: 196 scopes: {} btreemap_v2_insert_blob_128_128: total: calls: 1 - instructions: 1208821724 + instructions: 1208985738 heap_increase: 0 stable_memory_increase: 46 scopes: {} btreemap_v2_insert_blob_16_128: total: calls: 1 - instructions: 500591510 + instructions: 500755110 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_blob_256_128: total: calls: 1 - instructions: 1817436957 + instructions: 1817600962 heap_increase: 0 stable_memory_increase: 67 scopes: {} btreemap_v2_insert_blob_32_1024: total: calls: 1 - instructions: 724849516 + instructions: 725013344 heap_increase: 0 stable_memory_increase: 173 scopes: {} btreemap_v2_insert_blob_32_128: total: calls: 1 - instructions: 563513821 + instructions: 563677601 heap_increase: 0 stable_memory_increase: 28 scopes: {} btreemap_v2_insert_blob_32_16: total: calls: 1 - instructions: 539411394 + instructions: 539415306 heap_increase: 0 stable_memory_increase: 11 scopes: {} btreemap_v2_insert_blob_32_256: total: calls: 1 - instructions: 592917952 + instructions: 593081810 heap_increase: 0 stable_memory_increase: 49 scopes: {} btreemap_v2_insert_blob_32_32: total: calls: 1 - instructions: 550204854 + instructions: 550208733 heap_increase: 0 stable_memory_increase: 13 scopes: {} btreemap_v2_insert_blob_32_4: total: calls: 1 - instructions: 530054248 + instructions: 530058175 heap_increase: 0 stable_memory_increase: 8 scopes: {} btreemap_v2_insert_blob_32_512: total: calls: 1 - instructions: 631334646 + instructions: 631498507 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_blob_32_64: total: calls: 1 - instructions: 556446417 + instructions: 556450257 heap_increase: 0 stable_memory_increase: 18 scopes: {} btreemap_v2_insert_blob_32_8: total: calls: 1 - instructions: 538691053 + instructions: 538694836 heap_increase: 0 stable_memory_increase: 9 scopes: {} btreemap_v2_insert_blob_4_128: total: calls: 1 - instructions: 421160972 + instructions: 421163657 heap_increase: 0 stable_memory_increase: 13 scopes: {} btreemap_v2_insert_blob_512_128: total: calls: 1 - instructions: 3070369278 + instructions: 3070533301 heap_increase: 0 stable_memory_increase: 111 scopes: {} btreemap_v2_insert_blob_64_128: total: calls: 1 - instructions: 687224486 + instructions: 687388407 heap_increase: 0 stable_memory_increase: 34 scopes: {} btreemap_v2_insert_blob_8_128: total: calls: 1 - instructions: 473325576 + instructions: 473328786 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_u64_blob8: total: calls: 1 - instructions: 424856496 + instructions: 419771652 heap_increase: 0 stable_memory_increase: 5 scopes: {} btreemap_v2_insert_u64_u64: total: calls: 1 - instructions: 433078328 + instructions: 427435615 heap_increase: 0 stable_memory_increase: 6 scopes: {} btreemap_v2_insert_u64_vec8: total: calls: 1 - instructions: 433606280 + instructions: 424107324 heap_increase: 0 stable_memory_increase: 21 scopes: {} btreemap_v2_insert_vec8_u64: total: calls: 1 - instructions: 596675651 + instructions: 596128819 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_1024_128: total: calls: 1 - instructions: 2791324761 + instructions: 2781397226 heap_increase: 0 stable_memory_increase: 193 scopes: {} btreemap_v2_insert_vec_128_128: total: calls: 1 - instructions: 1043141925 + instructions: 1033757424 heap_increase: 0 stable_memory_increase: 51 scopes: {} btreemap_v2_insert_vec_16_128: total: calls: 1 - instructions: 719668309 + instructions: 708838755 heap_increase: 0 stable_memory_increase: 31 scopes: {} btreemap_v2_insert_vec_256_128: total: calls: 1 - instructions: 1425303710 + instructions: 1415336985 heap_increase: 0 stable_memory_increase: 71 scopes: {} btreemap_v2_insert_vec_32_1024: total: calls: 1 - instructions: 1245182314 + instructions: 1196455815 heap_increase: 0 stable_memory_increase: 171 scopes: {} btreemap_v2_insert_vec_32_128: total: calls: 1 - instructions: 783650019 + instructions: 773752895 heap_increase: 0 stable_memory_increase: 33 scopes: {} btreemap_v2_insert_vec_32_16: total: calls: 1 - instructions: 688714475 + instructions: 683594681 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_256: total: calls: 1 - instructions: 908090400 + instructions: 891422073 heap_increase: 0 stable_memory_increase: 54 scopes: {} btreemap_v2_insert_vec_32_32: total: calls: 1 - instructions: 684433848 + instructions: 678921697 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_4: total: calls: 1 - instructions: 683382635 + instructions: 677321867 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_512: total: calls: 1 - instructions: 1026429798 + instructions: 998062172 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_vec_32_64: total: calls: 1 - instructions: 717127989 + instructions: 710327753 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_vec_32_8: total: calls: 1 - instructions: 682695838 + instructions: 676785871 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_4_128: total: calls: 1 - instructions: 621403101 + instructions: 610134994 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_512_128: total: calls: 1 - instructions: 1902984657 + instructions: 1892478973 heap_increase: 0 stable_memory_increase: 112 scopes: {} btreemap_v2_insert_vec_64_128: total: calls: 1 - instructions: 874468583 + instructions: 864889567 heap_increase: 0 stable_memory_increase: 41 scopes: {} btreemap_v2_insert_vec_8_128: total: calls: 1 - instructions: 680539918 + instructions: 670097668 heap_increase: 0 stable_memory_increase: 23 scopes: {} @@ -912,35 +912,35 @@ benches: btreemap_v2_mem_manager_insert_blob512_u64: total: calls: 1 - instructions: 3189283499 + instructions: 3188753499 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_blob512: total: calls: 1 - instructions: 647090916 + instructions: 641983044 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_u64: total: calls: 1 - instructions: 560416018 + instructions: 554768226 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_vec512: total: calls: 1 - instructions: 900560613 + instructions: 869119491 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_vec512_u64: total: calls: 1 - instructions: 2032213941 + instructions: 2031663941 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -954,21 +954,21 @@ benches: btreemap_v2_mem_manager_remove_u64_blob512: total: calls: 1 - instructions: 950509465 + instructions: 941387257 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_u64: total: calls: 1 - instructions: 808272557 + instructions: 799210541 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_vec512: total: calls: 1 - instructions: 1289646675 + instructions: 1280524467 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -982,1015 +982,1015 @@ benches: btreemap_v2_pop_first_blob8_u64: total: calls: 1 - instructions: 622200615 + instructions: 622204734 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_1024_128: total: calls: 1 - instructions: 8431485310 + instructions: 8431489312 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_128_128: total: calls: 1 - instructions: 1868788897 + instructions: 1868792923 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_16_128: total: calls: 1 - instructions: 765976333 + instructions: 765979957 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_256_128: total: calls: 1 - instructions: 2807125761 + instructions: 2807129778 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_1024: total: calls: 1 - instructions: 1151786004 + instructions: 1151789844 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_128: total: calls: 1 - instructions: 895271314 + instructions: 895275106 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_16: total: calls: 1 - instructions: 830179005 + instructions: 830182917 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_256: total: calls: 1 - instructions: 924008113 + instructions: 924011983 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_32: total: calls: 1 - instructions: 844939941 + instructions: 844943820 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_4: total: calls: 1 - instructions: 813445762 + instructions: 813449743 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_512: total: calls: 1 - instructions: 988660808 + instructions: 988664675 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_64: total: calls: 1 - instructions: 853670232 + instructions: 853674072 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_8: total: calls: 1 - instructions: 831827208 + instructions: 831831033 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_4_128: total: calls: 1 - instructions: 382997168 + instructions: 382999265 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_512_128: total: calls: 1 - instructions: 4656589101 + instructions: 4656593142 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_64_128: total: calls: 1 - instructions: 1070297882 + instructions: 1070301815 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_8_128: total: calls: 1 - instructions: 626229708 + instructions: 626232852 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_blob8: total: calls: 1 - instructions: 704655932 + instructions: 697101320 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_u64: total: calls: 1 - instructions: 716277147 + instructions: 708716946 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_vec8: total: calls: 1 - instructions: 707209318 + instructions: 699653893 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec8_u64: total: calls: 1 - instructions: 798415678 + instructions: 798418804 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_1024_128: total: calls: 1 - instructions: 4088132406 + instructions: 4088244642 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_128_128: total: calls: 1 - instructions: 1540235593 + instructions: 1540253392 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_16_128: total: calls: 1 - instructions: 1038779442 + instructions: 1038792534 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_256_128: total: calls: 1 - instructions: 2058259562 + instructions: 2058316631 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_1024: total: calls: 1 - instructions: 1720412114 + instructions: 1720509338 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_128: total: calls: 1 - instructions: 1121742438 + instructions: 1121758260 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_16: total: calls: 1 - instructions: 965011199 + instructions: 965015096 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_256: total: calls: 1 - instructions: 1248136179 + instructions: 1248161922 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_32: total: calls: 1 - instructions: 961152870 + instructions: 961156749 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_4: total: calls: 1 - instructions: 954455325 + instructions: 954459165 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_512: total: calls: 1 - instructions: 1404132606 + instructions: 1404192531 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_64: total: calls: 1 - instructions: 1005109166 + instructions: 1005121403 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_8: total: calls: 1 - instructions: 965763854 + instructions: 965767637 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_4_128: total: calls: 1 - instructions: 546598473 + instructions: 546605679 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_512_128: total: calls: 1 - instructions: 2756486259 + instructions: 2756539701 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_64_128: total: calls: 1 - instructions: 1266073864 + instructions: 1266113581 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_8_128: total: calls: 1 - instructions: 859841368 + instructions: 859852036 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob8_u64: total: calls: 1 - instructions: 602347043 + instructions: 602351174 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_1024_128: total: calls: 1 - instructions: 8114668993 + instructions: 8114672995 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_128_128: total: calls: 1 - instructions: 1802553212 + instructions: 1802557238 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_16_128: total: calls: 1 - instructions: 742006771 + instructions: 742010389 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_256_128: total: calls: 1 - instructions: 2718413554 + instructions: 2718417571 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_1024: total: calls: 1 - instructions: 1117676359 + instructions: 1117680205 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_128: total: calls: 1 - instructions: 862736782 + instructions: 862740574 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_16: total: calls: 1 - instructions: 805611949 + instructions: 805615861 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_256: total: calls: 1 - instructions: 895496993 + instructions: 895500863 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_32: total: calls: 1 - instructions: 815542518 + instructions: 815546397 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_4: total: calls: 1 - instructions: 793647234 + instructions: 793651203 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_512: total: calls: 1 - instructions: 965231966 + instructions: 965235827 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_64: total: calls: 1 - instructions: 829954997 + instructions: 829958837 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_8: total: calls: 1 - instructions: 807341792 + instructions: 807345599 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_4_128: total: calls: 1 - instructions: 371628597 + instructions: 371630694 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_512_128: total: calls: 1 - instructions: 4497163453 + instructions: 4497167500 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_64_128: total: calls: 1 - instructions: 1041943727 + instructions: 1041947660 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_8_128: total: calls: 1 - instructions: 622232886 + instructions: 622236018 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_blob8: total: calls: 1 - instructions: 685762802 + instructions: 678204674 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_u64: total: calls: 1 - instructions: 697134664 + instructions: 689565343 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_vec8: total: calls: 1 - instructions: 688048693 + instructions: 680489716 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec8_u64: total: calls: 1 - instructions: 775814595 + instructions: 775817721 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_1024_128: total: calls: 1 - instructions: 4314793483 + instructions: 4314905725 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_128_128: total: calls: 1 - instructions: 1554207923 + instructions: 1554225722 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_16_128: total: calls: 1 - instructions: 1026108707 + instructions: 1026121784 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_256_128: total: calls: 1 - instructions: 2131957975 + instructions: 2132015032 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_1024: total: calls: 1 - instructions: 1703124978 + instructions: 1703222226 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_128: total: calls: 1 - instructions: 1102777839 + instructions: 1102793670 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_16: total: calls: 1 - instructions: 944211580 + instructions: 944215477 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_256: total: calls: 1 - instructions: 1231083615 + instructions: 1231109358 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_32: total: calls: 1 - instructions: 943092699 + instructions: 943096578 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_4: total: calls: 1 - instructions: 940356614 + instructions: 940360469 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_512: total: calls: 1 - instructions: 1394468405 + instructions: 1394528342 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_64: total: calls: 1 - instructions: 986545822 + instructions: 986558059 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_8: total: calls: 1 - instructions: 943858686 + instructions: 943862469 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_4_128: total: calls: 1 - instructions: 536437378 + instructions: 536444569 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_512_128: total: calls: 1 - instructions: 2876049568 + instructions: 2876103010 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_64_128: total: calls: 1 - instructions: 1258690704 + instructions: 1258730445 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_8_128: total: calls: 1 - instructions: 865694095 + instructions: 865704778 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_0b: total: calls: 1 - instructions: 16745 + instructions: 16667 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_10kib: total: calls: 1 - instructions: 2599671 + instructions: 2539479 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_20_10mib: total: calls: 1 - instructions: 20576285 + instructions: 20575441 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_0b: total: calls: 1 - instructions: 17104 + instructions: 17026 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_10kib: total: calls: 1 - instructions: 57215658 + instructions: 57155466 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_20_10mib: total: calls: 1 - instructions: 1105826200 + instructions: 1105825356 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_0b: total: calls: 1 - instructions: 17118 + instructions: 17040 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_10kib: total: calls: 1 - instructions: 57227654 + instructions: 57167462 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_20_10mib: total: calls: 1 - instructions: 1105826436 + instructions: 1105825592 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_10mib_values: total: calls: 1 - instructions: 4737371950 + instructions: 4738916137 heap_increase: 0 stable_memory_increase: 657 scopes: {} btreemap_v2_remove_blob8_u64: total: calls: 1 - instructions: 606056710 + instructions: 606060883 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_1024_128: total: calls: 1 - instructions: 7421888863 + instructions: 7421892865 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_128_128: total: calls: 1 - instructions: 1635342144 + instructions: 1635346170 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_16_128: total: calls: 1 - instructions: 690775087 + instructions: 690778699 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_256_128: total: calls: 1 - instructions: 2469317746 + instructions: 2469321763 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_1024: total: calls: 1 - instructions: 1018120605 + instructions: 1018124451 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_128: total: calls: 1 - instructions: 782398055 + instructions: 782401853 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_16: total: calls: 1 - instructions: 735719719 + instructions: 735723619 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_256: total: calls: 1 - instructions: 818891031 + instructions: 818894907 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_32: total: calls: 1 - instructions: 747183764 + instructions: 747187643 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_4: total: calls: 1 - instructions: 732221311 + instructions: 732225250 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_512: total: calls: 1 - instructions: 891432150 + instructions: 891436017 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_64: total: calls: 1 - instructions: 774120262 + instructions: 774124102 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_8: total: calls: 1 - instructions: 732105855 + instructions: 732109674 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_4_128: total: calls: 1 - instructions: 468000926 + instructions: 468003047 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_512_128: total: calls: 1 - instructions: 4122884697 + instructions: 4122888732 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_64_128: total: calls: 1 - instructions: 950218276 + instructions: 950222209 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_8_128: total: calls: 1 - instructions: 623528283 + instructions: 623531403 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_blob8: total: calls: 1 - instructions: 601729363 + instructions: 592789771 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_u64: total: calls: 1 - instructions: 623942722 + instructions: 614885785 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_vec8: total: calls: 1 - instructions: 607719707 + instructions: 598779275 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec8_u64: total: calls: 1 - instructions: 767231405 + instructions: 767234531 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_1024_128: total: calls: 1 - instructions: 4558259611 + instructions: 4558379137 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_128_128: total: calls: 1 - instructions: 1461626995 + instructions: 1461644794 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_16_128: total: calls: 1 - instructions: 929190130 + instructions: 929203207 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_256_128: total: calls: 1 - instructions: 2290487523 + instructions: 2290550760 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_1024: total: calls: 1 - instructions: 1731690539 + instructions: 1731794141 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_128: total: calls: 1 - instructions: 1068571017 + instructions: 1068597444 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_16: total: calls: 1 - instructions: 891426401 + instructions: 891430298 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_256: total: calls: 1 - instructions: 1279117440 + instructions: 1279143183 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_32: total: calls: 1 - instructions: 898887522 + instructions: 898891401 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_4: total: calls: 1 - instructions: 897962086 + instructions: 897965956 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_512: total: calls: 1 - instructions: 1443964173 + instructions: 1444031754 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_64: total: calls: 1 - instructions: 979405970 + instructions: 979418207 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_8: total: calls: 1 - instructions: 892013373 + instructions: 892017156 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_4_128: total: calls: 1 - instructions: 669117034 + instructions: 669124240 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_512_128: total: calls: 1 - instructions: 3127395739 + instructions: 3127449181 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_64_128: total: calls: 1 - instructions: 1188794438 + instructions: 1188831359 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_8_128: total: calls: 1 - instructions: 837942733 + instructions: 837953416 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_0b: total: calls: 1 - instructions: 1539248 + instructions: 1478450 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_10kib: total: calls: 1 - instructions: 57053250 + instructions: 56992484 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_20_10mib: total: calls: 1 - instructions: 1103719338 + instructions: 1103718289 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_0b: total: calls: 1 - instructions: 1540243 + instructions: 1480165 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_10kib: total: calls: 1 - instructions: 57034269 + instructions: 56974555 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_20_10mib: total: calls: 1 - instructions: 1103718903 + instructions: 1103717868 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_0b: total: calls: 1 - instructions: 1179996 + instructions: 1090848 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_10kib: total: calls: 1 - instructions: 2586983 + instructions: 2498199 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_20_10mib: total: calls: 1 - instructions: 18469912 + instructions: 18468332 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_0b: total: calls: 1 - instructions: 1179911 + instructions: 1092555 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_10kib: total: calls: 1 - instructions: 2568038 + instructions: 2481046 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_20_10mib: total: calls: 1 - instructions: 18469898 + instructions: 18468348 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_0b: total: calls: 1 - instructions: 1515586 + instructions: 1454788 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_10kib: total: calls: 1 - instructions: 57029588 + instructions: 56968822 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_20_10mib: total: calls: 1 - instructions: 1103718868 + instructions: 1103717819 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_0b: total: calls: 1 - instructions: 1517245 + instructions: 1457167 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_10kib: total: calls: 1 - instructions: 57011271 + instructions: 56951557 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_20_10mib: total: calls: 1 - instructions: 1103718445 + instructions: 1103717410 heap_increase: 0 stable_memory_increase: 0 scopes: {} From 1ef691c4cf3269a6a74a7182cd7bc3ac5c435505 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 14:51:35 +0200 Subject: [PATCH 04/26] . --- src/storable/tuples.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/storable/tuples.rs b/src/storable/tuples.rs index fd468e02..0d98cb93 100644 --- a/src/storable/tuples.rs +++ b/src/storable/tuples.rs @@ -25,12 +25,12 @@ where let a_bounds = bounds::(); let b_bounds = bounds::(); - let a_max = a_bounds.max_size as usize; - let b_max = b_bounds.max_size as usize; + let a_max_size = a_bounds.max_size as usize; + let b_max_size = b_bounds.max_size as usize; let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; - let sizes_offset = a_max + b_max; + let sizes_offset = a_max_size + b_max_size; let a_len = decode_size_of_bound( &bytes[sizes_offset..sizes_offset + a_size_len], @@ -42,7 +42,7 @@ where ); let a = A::from_bytes(Cow::Borrowed(&bytes[0..a_len])); - let b = B::from_bytes(Cow::Borrowed(&bytes[a_max..a_max + b_len])); + let b = B::from_bytes(Cow::Borrowed(&bytes[a_max_size..a_max_size + b_len])); (a, b) } From c447cbd38aa646b0fd99b100a72d189d19c69a6b Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 14:53:11 +0200 Subject: [PATCH 05/26] . --- src/storable/tuples.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/storable/tuples.rs b/src/storable/tuples.rs index 0d98cb93..035a2ca7 100644 --- a/src/storable/tuples.rs +++ b/src/storable/tuples.rs @@ -19,19 +19,15 @@ where fn from_bytes(bytes: Cow<[u8]>) -> Self { match Self::BOUND { Bound::Bounded { max_size, .. } => { - let bytes = bytes.as_ref(); assert_eq!(bytes.len(), max_size as usize); let a_bounds = bounds::(); let b_bounds = bounds::(); - let a_max_size = a_bounds.max_size as usize; let b_max_size = b_bounds.max_size as usize; + let sizes_offset = a_max_size + b_max_size; let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; - - let sizes_offset = a_max_size + b_max_size; - let a_len = decode_size_of_bound( &bytes[sizes_offset..sizes_offset + a_size_len], &a_bounds, From 1a589d5684fd48db43e82a29c683f6c8ae2eecd4 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 14:57:21 +0200 Subject: [PATCH 06/26] . --- src/storable/tuples.rs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/storable/tuples.rs b/src/storable/tuples.rs index 035a2ca7..6c11fc28 100644 --- a/src/storable/tuples.rs +++ b/src/storable/tuples.rs @@ -26,6 +26,7 @@ where let a_max_size = a_bounds.max_size as usize; let b_max_size = b_bounds.max_size as usize; let sizes_offset = a_max_size + b_max_size; + let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; let a_len = decode_size_of_bound( @@ -75,7 +76,7 @@ where { match bound { Bound::Bounded { max_size, .. } => { - let mut buf = vec![0u8; max_size as usize]; + let mut bytes = vec![0u8; max_size as usize]; let a_bytes = a.to_bytes(); let b_bytes = b.to_bytes(); @@ -83,34 +84,33 @@ where let a_bounds = bounds::(); let b_bounds = bounds::(); - let a_max = a_bounds.max_size as usize; - let b_max = b_bounds.max_size as usize; - let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; - let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; + let a_max_size = a_bounds.max_size as usize; + let b_max_size = b_bounds.max_size as usize; - let sizes_offset = a_max + b_max; + debug_assert!(a_bytes.len() <= a_max_size); + debug_assert!(b_bytes.len() <= b_max_size); - // Copy A - debug_assert!(a_bytes.len() <= a_max); - buf[..a_bytes.len()].copy_from_slice(&a_bytes); + bytes[..a_bytes.len()].copy_from_slice(&a_bytes); + bytes[a_max_size..a_max_size + b_bytes.len()].copy_from_slice(&b_bytes); + + let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; + let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; - // Copy B - debug_assert!(b_bytes.len() <= b_max); - buf[a_max..a_max + b_bytes.len()].copy_from_slice(&b_bytes); + let sizes_offset = a_max_size + b_max_size; // Encode sizes encode_size_of_bound( - &mut buf[sizes_offset..sizes_offset + a_size_len], + &mut bytes[sizes_offset..sizes_offset + a_size_len], a_bytes.len(), &a_bounds, ); encode_size_of_bound( - &mut buf[sizes_offset + a_size_len..sizes_offset + a_size_len + b_size_len], + &mut bytes[sizes_offset + a_size_len..sizes_offset + a_size_len + b_size_len], b_bytes.len(), &b_bounds, ); - buf + bytes } Bound::Unbounded => { todo!("Serializing tuples with unbounded types is not yet supported.") From 3e5105f297dd750908daa60aef37b889bc9dfcab Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:00:45 +0200 Subject: [PATCH 07/26] . --- src/storable/tuples.rs | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/storable/tuples.rs b/src/storable/tuples.rs index 6c11fc28..0ddba783 100644 --- a/src/storable/tuples.rs +++ b/src/storable/tuples.rs @@ -272,8 +272,10 @@ where /// Serializes the tuple (A, B, C) into bytes. /// /// Format: - /// - If A and B are fixed-size: `` - /// - Otherwise: `` + /// - If A and B are fixed-size: + /// ` ` + /// - Otherwise: + /// ` ` fn to_bytes(&self) -> Cow<[u8]> { encode_triple::(&self.0, &self.1, &self.2).into() } @@ -345,25 +347,25 @@ where let b_bytes = b.to_bytes(); let c_bytes = c.to_bytes(); - let a_len = a_bytes.len(); - let b_len = b_bytes.len(); - let c_len = c_bytes.len(); + let a_size = a_bytes.len(); + let b_size = b_bytes.len(); + let c_size = c_bytes.len(); - let sizes_overhead = sizes_overhead::(a_len, b_len); - let total_size = a_len + b_len + c_len + sizes_overhead; + let sizes_overhead = sizes_overhead::(a_size, b_size); + let total_size = a_size + b_size + c_size + sizes_overhead; - let mut buf = vec![0u8; total_size]; + let mut bytes = vec![0u8; total_size]; let mut offset = 0; if sizes_overhead > 0 { - buf[0] = encode_size_lengths(vec![a_len, b_len]); + bytes[0] = encode_size_lengths(vec![a_size, b_size]); offset += 1; } - offset += encode_tuple_element::(&mut buf[offset..], a_bytes.as_ref(), false); - offset += encode_tuple_element::(&mut buf[offset..], b_bytes.as_ref(), false); - offset += encode_tuple_element::(&mut buf[offset..], c_bytes.as_ref(), true); + offset += encode_tuple_element::(&mut bytes[offset..], a_bytes.as_ref(), false); + offset += encode_tuple_element::(&mut bytes[offset..], b_bytes.as_ref(), false); + offset += encode_tuple_element::(&mut bytes[offset..], c_bytes.as_ref(), true); debug_assert_eq!(offset, total_size); - buf + bytes } From 8cba39b758a666598f12c72694650648f679f486 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:03:37 +0200 Subject: [PATCH 08/26] . --- src/storable/tuples.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/storable/tuples.rs b/src/storable/tuples.rs index 0ddba783..fb732e04 100644 --- a/src/storable/tuples.rs +++ b/src/storable/tuples.rs @@ -289,7 +289,6 @@ where #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { - let bytes = bytes.as_ref(); let mut offset = 0; let mut size_lengths = [None, None]; From fada070de0c1a355c6bede0bba9cd56e0d7e1b9f Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:05:30 +0200 Subject: [PATCH 09/26] clippy --- src/storable.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storable.rs b/src/storable.rs index 9380b0bc..b375c08c 100644 --- a/src/storable.rs +++ b/src/storable.rs @@ -16,7 +16,9 @@ pub trait Storable { /// NOTE: `Cow` is used here to avoid unnecessary cloning. fn to_bytes(&self) -> Cow<[u8]>; - ///! TODO: add documentation. + /// Converts the element into an owned byte vector. + /// + /// This method consumes `self` and avoids cloning when possible. fn into_bytes(self) -> Vec; /// Converts bytes into an element. From 6d44b383f4f7bd7be05d7aea1441774bb598a0b3 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:09:12 +0200 Subject: [PATCH 10/26] clippy --- examples/src/custom_types_example/src/lib.rs | 8 +++++--- examples/src/vecs_and_strings/src/lib.rs | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/examples/src/custom_types_example/src/lib.rs b/examples/src/custom_types_example/src/lib.rs index aa43ca55..c9a541f7 100644 --- a/examples/src/custom_types_example/src/lib.rs +++ b/examples/src/custom_types_example/src/lib.rs @@ -1,8 +1,6 @@ use candid::{CandidType, Decode, Deserialize, Encode}; use ic_stable_structures::memory_manager::{MemoryId, MemoryManager, VirtualMemory}; -use ic_stable_structures::{ - storable::Bound, DefaultMemoryImpl, StableBTreeMap, Storable, -}; +use ic_stable_structures::{storable::Bound, DefaultMemoryImpl, StableBTreeMap, Storable}; use std::{borrow::Cow, cell::RefCell}; type Memory = VirtualMemory; @@ -30,6 +28,10 @@ impl Storable for UserProfile { Cow::Owned(Encode!(self).unwrap()) } + fn into_bytes(self) -> Vec { + Encode!(self).unwrap() + } + fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { Decode!(bytes.as_ref(), Self).unwrap() } diff --git a/examples/src/vecs_and_strings/src/lib.rs b/examples/src/vecs_and_strings/src/lib.rs index 237c741f..1cb85cb5 100644 --- a/examples/src/vecs_and_strings/src/lib.rs +++ b/examples/src/vecs_and_strings/src/lib.rs @@ -22,6 +22,10 @@ impl Storable for UserName { self.0.to_bytes() } + fn into_bytes(self) -> Vec { + self.0.into_bytes() + } + fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { Self(String::from_bytes(bytes)) } @@ -40,6 +44,10 @@ impl Storable for UserData { self.0.to_bytes() } + fn into_bytes(self) -> Vec { + self.0.into_bytes() + } + fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { Self(>::from_bytes(bytes)) } From e8b77d647889512ff6c935a5a5c3f95b2a67a2f2 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:13:53 +0200 Subject: [PATCH 11/26] fix build --- examples/src/custom_types_example/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/custom_types_example/src/lib.rs b/examples/src/custom_types_example/src/lib.rs index c9a541f7..214be5fe 100644 --- a/examples/src/custom_types_example/src/lib.rs +++ b/examples/src/custom_types_example/src/lib.rs @@ -29,7 +29,7 @@ impl Storable for UserProfile { } fn into_bytes(self) -> Vec { - Encode!(self).unwrap() + self.to_bytes().into_owned() } fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { From 04328a171ab29deb3063a3d8fd71b576cc37b96a Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:14:10 +0200 Subject: [PATCH 12/26] . --- examples/src/custom_types_example/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/custom_types_example/src/lib.rs b/examples/src/custom_types_example/src/lib.rs index 214be5fe..e6e7a70b 100644 --- a/examples/src/custom_types_example/src/lib.rs +++ b/examples/src/custom_types_example/src/lib.rs @@ -29,7 +29,7 @@ impl Storable for UserProfile { } fn into_bytes(self) -> Vec { - self.to_bytes().into_owned() + Encode!(&self).unwrap() } fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { From 06f1ae8d04ccad4a71c25123156bc1506eae76d2 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:31:31 +0200 Subject: [PATCH 13/26] cleanup --- src/btreemap.rs | 4 ++-- src/storable.rs | 38 ++++++++++++++++++++++++++------------ 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/src/btreemap.rs b/src/btreemap.rs index a86ce158..38b36325 100644 --- a/src/btreemap.rs +++ b/src/btreemap.rs @@ -492,7 +492,7 @@ where /// key.to_bytes().len() <= max_size(Key) /// value.to_bytes().len() <= max_size(Value) pub fn insert(&mut self, key: K, value: V) -> Option { - let value = value.into_bytes(); + let value = value.into_bytes_checked(); let root = if self.root_addr == NULL { // No root present. Allocate one. @@ -1428,7 +1428,7 @@ mod test { /// Encodes an object into a byte vector. fn encode(object: T) -> Vec { - object.into_bytes() + object.into_bytes_checked() } /// A helper method to succinctly create a blob. diff --git a/src/storable.rs b/src/storable.rs index b375c08c..610d1ce7 100644 --- a/src/storable.rs +++ b/src/storable.rs @@ -11,7 +11,7 @@ mod tests; /// A trait with convenience methods for storing an element into a stable structure. pub trait Storable { - /// Converts an element into bytes. + /// Converts the element into a possibly borrowed byte slice. /// /// NOTE: `Cow` is used here to avoid unnecessary cloning. fn to_bytes(&self) -> Cow<[u8]>; @@ -27,33 +27,47 @@ pub trait Storable { /// The size bounds of the type. const BOUND: Bound; - /// Like `to_bytes`, but includes additional checks to ensure the element's serialized bytes - /// are within the element's bounds. + /// Like `to_bytes`, but checks that bytes conform to declared bounds. fn to_bytes_checked(&self) -> Cow<[u8]> { let bytes = self.to_bytes(); + Self::check_bounds(&bytes); + bytes + } + + /// Like `to_bytes_checked`, but checks that bytes conform to declared bounds. + fn into_bytes_checked(self) -> Vec + where + Self: Sized, + { + let bytes = self.into_bytes(); + Self::check_bounds(&bytes); + bytes + } + + /// Validates that a byte slice fits within this type's declared bounds. + #[inline] + fn check_bounds(bytes: &[u8]) { if let Bound::Bounded { max_size, is_fixed_size, } = Self::BOUND { + let actual = bytes.len(); if is_fixed_size { assert_eq!( - bytes.len(), - max_size as usize, - "expected a fixed-size element with length {} bytes, but found {} bytes", - max_size, - bytes.len() + actual, max_size as usize, + "expected fixed-size element of {} bytes, found {} bytes", + max_size, actual ); } else { assert!( - bytes.len() <= max_size as usize, - "expected an element with length <= {} bytes, but found {} bytes", + actual <= max_size as usize, + "expected element of <= {} bytes, found {} bytes", max_size, - bytes.len() + actual ); } } - bytes } } From 93a86e565f064b0608c0fe6ac8adf768abcb3e03 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:37:08 +0200 Subject: [PATCH 14/26] fix doc tests --- src/btreemap.rs | 6 ++++++ src/btreeset.rs | 4 ++++ src/storable.rs | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/btreemap.rs b/src/btreemap.rs index 38b36325..54d06c66 100644 --- a/src/btreemap.rs +++ b/src/btreemap.rs @@ -178,6 +178,12 @@ const PAGE_SIZE_VALUE_MARKER: u32 = u32::MAX; /// Cow::Owned(bytes) /// } /// +/// fn into_bytes(self) -> Vec { +/// let mut bytes = Vec::new(); +/// // TODO: Convert your struct to bytes... +/// bytes +/// } +/// /// fn from_bytes(bytes: Cow<[u8]>) -> Self { /// // TODO: Convert bytes back to your struct /// let (id, name) = (0, "".to_string()); diff --git a/src/btreeset.rs b/src/btreeset.rs index ebce52a3..8be5ba99 100644 --- a/src/btreeset.rs +++ b/src/btreeset.rs @@ -112,6 +112,10 @@ where /// Cow::Owned(self.id.to_le_bytes().to_vec()) /// } /// +/// fn into_bytes(self) -> Vec { +/// self.id.to_le_bytes().to_vec() +/// } +/// /// fn from_bytes(bytes: Cow<[u8]>) -> Self { /// let id = u64::from_le_bytes(bytes.as_ref().try_into().unwrap()); /// CustomType { id } diff --git a/src/storable.rs b/src/storable.rs index 610d1ce7..da537a9e 100644 --- a/src/storable.rs +++ b/src/storable.rs @@ -56,13 +56,13 @@ pub trait Storable { if is_fixed_size { assert_eq!( actual, max_size as usize, - "expected fixed-size element of {} bytes, found {} bytes", + "expected a fixed-size element with length {} bytes, but found {} bytes", max_size, actual ); } else { assert!( actual <= max_size as usize, - "expected element of <= {} bytes, found {} bytes", + "expected an element with length <= {} bytes, but found {} bytes", max_size, actual ); From 3c35ba367117c1fa511757d37053e7003c1dfcbd Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Mon, 26 May 2025 15:44:08 +0200 Subject: [PATCH 15/26] fix build --- docs/src/schema-upgrades.md | 5 +++++ fuzz/fuzz_targets/data.rs | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/src/schema-upgrades.md b/docs/src/schema-upgrades.md index 12758e50..326a57f0 100644 --- a/docs/src/schema-upgrades.md +++ b/docs/src/schema-upgrades.md @@ -19,6 +19,11 @@ impl Storable for Asset { Cow::Owned(bytes) } + fn into_bytes(self) -> Vec { + let mut bytes = vec![]; + ciborium::ser::into_writer(&self, &mut bytes).unwrap() + } + fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { ciborium::de::from_reader(&*bytes).expect("deserialization must succeed.") } diff --git a/fuzz/fuzz_targets/data.rs b/fuzz/fuzz_targets/data.rs index aa9e5ded..7eac81fe 100644 --- a/fuzz/fuzz_targets/data.rs +++ b/fuzz/fuzz_targets/data.rs @@ -24,6 +24,10 @@ impl Storable for BoundedFuzzStruct { Cow::Owned(serde_cbor::ser::to_vec(self).unwrap()) } + fn into_bytes(self) -> Vec { + serde_cbor::ser::to_vec(&self).unwrap() + } + fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { let value: Self = serde_cbor::de::from_slice(bytes.as_ref()).unwrap(); value @@ -41,6 +45,10 @@ impl Storable for UnboundedFuzzStruct { Cow::Owned(serde_cbor::ser::to_vec(self).unwrap()) } + fn into_bytes(self) -> Vec { + serde_cbor::ser::to_vec(&self).unwrap() + } + fn from_bytes(bytes: std::borrow::Cow<[u8]>) -> Self { let value: Self = serde_cbor::de::from_slice(bytes.as_ref()).unwrap(); value From 819d53d049dda88ed46c81c1561c285425b3e14e Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Tue, 27 May 2025 21:34:38 +0200 Subject: [PATCH 16/26] --persist --- benchmarks/compare/canbench_results.yml | 40 ++++++++++++------------- src/storable.rs | 5 ++++ 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index add6fc9e..3434a76a 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 1219162597 - heap_increase: 3233 + instructions: 799994323 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 5414908676 - heap_increase: 1604 + instructions: 4994242382 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 133588820086 + instructions: 132097242135 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -44,42 +44,42 @@ benches: read_chunks_vec_1: total: calls: 1 - instructions: 1363286727 + instructions: 1363286558 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: calls: 1 - instructions: 1378054827 - heap_increase: 1602 + instructions: 1378504974 + heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: calls: 1 - instructions: 4584728190 - heap_increase: 1892 + instructions: 4751969057 + heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: calls: 1 - instructions: 1069803049 - heap_increase: 3233 + instructions: 650634758 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4914919689 - heap_increase: 1604 + instructions: 4494253378 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 89822427791 + instructions: 88330849823 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -107,22 +107,22 @@ benches: write_chunks_vec_1: total: calls: 1 - instructions: 1257791168 + instructions: 1257790999 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: calls: 1 - instructions: 1271592530 - heap_increase: 1602 + instructions: 1272042677 + heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: calls: 1 - instructions: 3575186447 - heap_increase: 1892 + instructions: 3742427314 + heap_increase: 3784 stable_memory_increase: 1665 scopes: {} version: 0.1.15 diff --git a/src/storable.rs b/src/storable.rs index 14cceae0..5c89875e 100644 --- a/src/storable.rs +++ b/src/storable.rs @@ -296,6 +296,11 @@ impl Storable for BoundedVecN { Cow::Owned(self.0.clone()) } + #[inline] + fn into_bytes(self) -> Vec { + self.0 + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { Self(bytes.into_owned()) From 11f4e5927302da97d3b8c8e56bc13883d9563609 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Wed, 28 May 2025 08:06:39 +0200 Subject: [PATCH 17/26] fix build --- src/storable/tuples.rs | 137 ++++++++++++++++++++++++----------------- 1 file changed, 82 insertions(+), 55 deletions(-) diff --git a/src/storable/tuples.rs b/src/storable/tuples.rs index e4d8fc8b..7d429da5 100644 --- a/src/storable/tuples.rs +++ b/src/storable/tuples.rs @@ -9,40 +9,11 @@ where B: Storable, { fn to_bytes(&self) -> Cow<[u8]> { - match Self::BOUND { - Bound::Bounded { max_size, .. } => { - let a_bytes = self.0.to_bytes(); - let b_bytes = self.1.to_bytes(); - let a_bounds = bounds::(); - let b_bounds = bounds::(); - let a_max_size = a_bounds.max_size as usize; - let b_max_size = b_bounds.max_size as usize; - let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; - let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; - let sizes_offset = a_max_size + b_max_size; - - debug_assert!(a_bytes.len() <= a_max_size); - debug_assert!(b_bytes.len() <= b_max_size); - - let mut bytes = vec![0; max_size as usize]; - bytes[..a_bytes.len()].copy_from_slice(a_bytes.as_ref()); - bytes[a_max_size..a_max_size + b_bytes.len()].copy_from_slice(b_bytes.as_ref()); - - encode_size_of_bound( - &mut bytes[sizes_offset..sizes_offset + a_size_len], - a_bytes.len(), - &a_bounds, - ); - encode_size_of_bound( - &mut bytes[sizes_offset + a_size_len..sizes_offset + a_size_len + b_size_len], - b_bytes.len(), - &b_bounds, - ); + Cow::Owned(into_bytes_inner_2(Self::BOUND, &self.0, &self.1)) + } - Cow::Owned(bytes) - } - _ => todo!("Serializing tuples with unbounded types is not yet supported."), - } + fn into_bytes(self) -> Vec { + into_bytes_inner_2(Self::BOUND, &self.0, &self.1) } #[inline] @@ -91,6 +62,48 @@ where }; } +#[inline] +fn into_bytes_inner_2(bound: Bound, a: &A, b: &B) -> Vec +where + A: Storable, + B: Storable, +{ + match bound { + Bound::Bounded { max_size, .. } => { + let a_bytes = a.to_bytes(); + let b_bytes = b.to_bytes(); + let a_bounds = bounds::(); + let b_bounds = bounds::(); + let a_max_size = a_bounds.max_size as usize; + let b_max_size = b_bounds.max_size as usize; + let a_size_len = bytes_to_store_size_bounded(&a_bounds) as usize; + let b_size_len = bytes_to_store_size_bounded(&b_bounds) as usize; + let sizes_offset = a_max_size + b_max_size; + + debug_assert!(a_bytes.len() <= a_max_size); + debug_assert!(b_bytes.len() <= b_max_size); + + let mut bytes = vec![0; max_size as usize]; + bytes[..a_bytes.len()].copy_from_slice(a_bytes.as_ref()); + bytes[a_max_size..a_max_size + b_bytes.len()].copy_from_slice(b_bytes.as_ref()); + + encode_size_of_bound( + &mut bytes[sizes_offset..sizes_offset + a_size_len], + a_bytes.len(), + &a_bounds, + ); + encode_size_of_bound( + &mut bytes[sizes_offset + a_size_len..sizes_offset + a_size_len + b_size_len], + b_bytes.len(), + &b_bounds, + ); + + bytes + } + _ => todo!("Serializing tuples with unbounded types is not yet supported."), + } +} + fn decode_size_of_bound(src: &[u8], bounds: &Bounds) -> usize { if bounds.is_fixed_size { bounds.max_size as usize @@ -243,29 +256,11 @@ where // Otherwise: // fn to_bytes(&self) -> Cow<[u8]> { - let a_bytes = self.0.to_bytes(); - let b_bytes = self.1.to_bytes(); - let c_bytes = self.2.to_bytes(); - let a_size = a_bytes.len(); - let b_size = b_bytes.len(); - let c_size = c_bytes.len(); - - let sizes_overhead = sizes_overhead::(a_size, b_size); - let output_size = a_size + b_size + c_size + sizes_overhead; - let mut bytes = vec![0; output_size]; - let mut offset = 0; - - if sizes_overhead != 0 { - bytes[offset] = encode_size_lengths(&[a_size, b_size]); - offset += 1; - } - - offset += encode_tuple_element::(&mut bytes[offset..], a_bytes.as_ref(), false); - offset += encode_tuple_element::(&mut bytes[offset..], b_bytes.as_ref(), false); - offset += encode_tuple_element::(&mut bytes[offset..], c_bytes.as_ref(), true); + Cow::Owned(into_bytes_inner_3(&self.0, &self.1, &self.2)) + } - debug_assert_eq!(offset, output_size); - Cow::Owned(bytes) + fn into_bytes(self) -> Vec { + into_bytes_inner_3(&self.0, &self.1, &self.2) } #[inline] @@ -316,3 +311,35 @@ where _ => Bound::Unbounded, }; } + +#[inline] +fn into_bytes_inner_3(a: &A, b: &B, c: &C) -> Vec +where + A: Storable, + B: Storable, + C: Storable, +{ + let a_bytes = a.to_bytes(); + let b_bytes = b.to_bytes(); + let c_bytes = c.to_bytes(); + let a_size = a_bytes.len(); + let b_size = b_bytes.len(); + let c_size = c_bytes.len(); + + let sizes_overhead = sizes_overhead::(a_size, b_size); + let output_size = a_size + b_size + c_size + sizes_overhead; + let mut bytes = vec![0; output_size]; + let mut offset = 0; + + if sizes_overhead != 0 { + bytes[offset] = encode_size_lengths(&[a_size, b_size]); + offset += 1; + } + + offset += encode_tuple_element::(&mut bytes[offset..], a_bytes.as_ref(), false); + offset += encode_tuple_element::(&mut bytes[offset..], b_bytes.as_ref(), false); + offset += encode_tuple_element::(&mut bytes[offset..], c_bytes.as_ref(), true); + + debug_assert_eq!(offset, output_size); + bytes +} From 5eceaed11b50f61711acd78eb70b163b3f096f72 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Wed, 28 May 2025 08:15:07 +0200 Subject: [PATCH 18/26] --persist --- benchmarks/compare/canbench_results.yml | 32 ++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index bdf415a3..3434a76a 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 1219162653 - heap_increase: 3233 + instructions: 799994323 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 5414908732 - heap_increase: 1604 + instructions: 4994242382 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 133588820142 + instructions: 132097242135 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -44,42 +44,42 @@ benches: read_chunks_vec_1: total: calls: 1 - instructions: 1363286555 + instructions: 1363286558 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: calls: 1 - instructions: 1378501974 + instructions: 1378504974 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: calls: 1 - instructions: 4748969057 + instructions: 4751969057 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: calls: 1 - instructions: 1069803070 - heap_increase: 3233 + instructions: 650634758 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4914919710 - heap_increase: 1604 + instructions: 4494253378 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 89822427812 + instructions: 88330849823 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -107,21 +107,21 @@ benches: write_chunks_vec_1: total: calls: 1 - instructions: 1257790996 + instructions: 1257790999 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: calls: 1 - instructions: 1272039677 + instructions: 1272042677 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: calls: 1 - instructions: 3739427314 + instructions: 3742427314 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} From 1617adc4b7e756b8d152cb4f78b5a071dd88b4f5 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Wed, 28 May 2025 20:05:23 +0200 Subject: [PATCH 19/26] --persist --- benchmarks/compare/canbench_results.yml | 32 ++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index f1c6ba48..e335d10c 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 1219162597 - heap_increase: 3233 + instructions: 799994300 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 5414908676 - heap_increase: 1604 + instructions: 4994242359 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 133588820086 + instructions: 132097242112 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -44,42 +44,42 @@ benches: read_chunks_vec_1: total: calls: 1 - instructions: 1363286620 + instructions: 1363286623 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: calls: 1 - instructions: 1378475066 + instructions: 1378478066 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: calls: 1 - instructions: 4721969149 + instructions: 4724969149 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: calls: 1 - instructions: 1069803049 - heap_increase: 3233 + instructions: 650634752 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4914919689 - heap_increase: 1604 + instructions: 4494253372 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 89822427791 + instructions: 88330849817 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -107,21 +107,21 @@ benches: write_chunks_vec_1: total: calls: 1 - instructions: 1257791061 + instructions: 1257791064 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: calls: 1 - instructions: 1272012769 + instructions: 1272015769 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: calls: 1 - instructions: 3712427406 + instructions: 3715427406 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} From 70a0b6679ddf7020fbf3922da9eb8c536008807a Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Thu, 5 Jun 2025 10:43:28 +0200 Subject: [PATCH 20/26] --persist --- benchmarks/btreemap/canbench_results.yml | 96 ++++++++++++------------ benchmarks/compare/canbench_results.yml | 12 +-- 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 61e10c40..2f5698e7 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -156,7 +156,7 @@ benches: btreemap_v2_contains_vec8_u64: total: calls: 1 - instructions: 373974679 + instructions: 373974694 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -436,7 +436,7 @@ benches: btreemap_v2_get_vec8_u64: total: calls: 1 - instructions: 383633031 + instructions: 383633046 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -520,21 +520,21 @@ benches: btreemap_v2_get_vec_32_64: total: calls: 1 - instructions: 415510238 + instructions: 415510253 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_8: total: calls: 1 - instructions: 374044541 + instructions: 374044526 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_4_128: total: calls: 1 - instructions: 407171466 + instructions: 407171451 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -555,140 +555,140 @@ benches: btreemap_v2_get_vec_8_128: total: calls: 1 - instructions: 407684851 + instructions: 407684836 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_insert_10mib_values: total: calls: 1 - instructions: 4414278369 + instructions: 4414278527 heap_increase: 161 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: calls: 1 - instructions: 450486119 + instructions: 450755676 heap_increase: 0 stable_memory_increase: 4 scopes: {} btreemap_v2_insert_blob_1024_128: total: calls: 1 - instructions: 5525952614 + instructions: 5525871838 heap_increase: 0 stable_memory_increase: 196 scopes: {} btreemap_v2_insert_blob_128_128: total: calls: 1 - instructions: 1208985738 + instructions: 1208776074 heap_increase: 0 stable_memory_increase: 46 scopes: {} btreemap_v2_insert_blob_16_128: total: calls: 1 - instructions: 500755110 + instructions: 500634225 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_blob_256_128: total: calls: 1 - instructions: 1817600962 + instructions: 1817437136 heap_increase: 0 stable_memory_increase: 67 scopes: {} btreemap_v2_insert_blob_32_1024: total: calls: 1 - instructions: 725013344 + instructions: 724946350 heap_increase: 0 stable_memory_increase: 173 scopes: {} btreemap_v2_insert_blob_32_128: total: calls: 1 - instructions: 563677601 + instructions: 563610143 heap_increase: 0 stable_memory_increase: 28 scopes: {} btreemap_v2_insert_blob_32_16: total: calls: 1 - instructions: 539415306 + instructions: 539355240 heap_increase: 0 stable_memory_increase: 11 scopes: {} btreemap_v2_insert_blob_32_256: total: calls: 1 - instructions: 593081810 + instructions: 593024514 heap_increase: 0 stable_memory_increase: 49 scopes: {} btreemap_v2_insert_blob_32_32: total: calls: 1 - instructions: 550208733 + instructions: 550137101 heap_increase: 0 stable_memory_increase: 13 scopes: {} btreemap_v2_insert_blob_32_4: total: calls: 1 - instructions: 530058175 + instructions: 529991507 heap_increase: 0 stable_memory_increase: 8 scopes: {} btreemap_v2_insert_blob_32_512: total: calls: 1 - instructions: 631498507 + instructions: 631434879 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_blob_32_64: total: calls: 1 - instructions: 556450257 + instructions: 556371865 heap_increase: 0 stable_memory_increase: 18 scopes: {} btreemap_v2_insert_blob_32_8: total: calls: 1 - instructions: 538694836 + instructions: 538627876 heap_increase: 0 stable_memory_increase: 9 scopes: {} btreemap_v2_insert_blob_4_128: total: calls: 1 - instructions: 421163657 + instructions: 421118728 heap_increase: 0 stable_memory_increase: 13 scopes: {} btreemap_v2_insert_blob_512_128: total: calls: 1 - instructions: 3070533301 + instructions: 3070384525 heap_increase: 0 stable_memory_increase: 111 scopes: {} btreemap_v2_insert_blob_64_128: total: calls: 1 - instructions: 687388407 + instructions: 687121795 heap_increase: 0 stable_memory_increase: 34 scopes: {} btreemap_v2_insert_blob_8_128: total: calls: 1 - instructions: 473328786 + instructions: 473587833 heap_increase: 0 stable_memory_increase: 20 scopes: {} @@ -716,126 +716,126 @@ benches: btreemap_v2_insert_vec8_u64: total: calls: 1 - instructions: 596128819 + instructions: 596040193 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_1024_128: total: calls: 1 - instructions: 2781397226 + instructions: 2781459487 heap_increase: 0 stable_memory_increase: 193 scopes: {} btreemap_v2_insert_vec_128_128: total: calls: 1 - instructions: 1033757424 + instructions: 1033826698 heap_increase: 0 stable_memory_increase: 51 scopes: {} btreemap_v2_insert_vec_16_128: total: calls: 1 - instructions: 708838755 + instructions: 708799340 heap_increase: 0 stable_memory_increase: 31 scopes: {} btreemap_v2_insert_vec_256_128: total: calls: 1 - instructions: 1415336985 + instructions: 1415401968 heap_increase: 0 stable_memory_increase: 71 scopes: {} btreemap_v2_insert_vec_32_1024: total: calls: 1 - instructions: 1196455815 + instructions: 1196540256 heap_increase: 0 stable_memory_increase: 171 scopes: {} btreemap_v2_insert_vec_32_128: total: calls: 1 - instructions: 773752895 + instructions: 773817095 heap_increase: 0 stable_memory_increase: 33 scopes: {} btreemap_v2_insert_vec_32_16: total: calls: 1 - instructions: 683594681 + instructions: 683676074 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_256: total: calls: 1 - instructions: 891422073 + instructions: 891495671 heap_increase: 0 stable_memory_increase: 54 scopes: {} btreemap_v2_insert_vec_32_32: total: calls: 1 - instructions: 678921697 + instructions: 679014135 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_4: total: calls: 1 - instructions: 677321867 + instructions: 677410557 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_512: total: calls: 1 - instructions: 998062172 + instructions: 998139799 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_vec_32_64: total: calls: 1 - instructions: 710327753 + instructions: 710417622 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_vec_32_8: total: calls: 1 - instructions: 676785871 + instructions: 676881778 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_4_128: total: calls: 1 - instructions: 610134994 + instructions: 609132528 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_512_128: total: calls: 1 - instructions: 1892478973 + instructions: 1892539708 heap_increase: 0 stable_memory_increase: 112 scopes: {} btreemap_v2_insert_vec_64_128: total: calls: 1 - instructions: 864889567 + instructions: 864964956 heap_increase: 0 stable_memory_increase: 41 scopes: {} btreemap_v2_insert_vec_8_128: total: calls: 1 - instructions: 670097668 + instructions: 669600950 heap_increase: 0 stable_memory_increase: 23 scopes: {} @@ -912,7 +912,7 @@ benches: btreemap_v2_mem_manager_insert_blob512_u64: total: calls: 1 - instructions: 3188753499 + instructions: 3188562351 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -940,7 +940,7 @@ benches: btreemap_v2_mem_manager_insert_vec512_u64: total: calls: 1 - instructions: 2031663941 + instructions: 2031729618 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1199,7 +1199,7 @@ benches: btreemap_v2_pop_first_vec_32_4: total: calls: 1 - instructions: 954459165 + instructions: 954459180 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1836,14 +1836,14 @@ benches: btreemap_v2_remove_vec_32_8: total: calls: 1 - instructions: 892017156 + instructions: 892017141 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_4_128: total: calls: 1 - instructions: 669124240 + instructions: 669124225 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index e335d10c..91adc181 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 799994300 + instructions: 799994426 heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 4994242359 + instructions: 4994335966 heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 132097242112 + instructions: 132252292459 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -65,21 +65,21 @@ benches: write_chunks_btreemap_1: total: calls: 1 - instructions: 650634752 + instructions: 650634878 heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4494253372 + instructions: 4494346979 heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 88330849817 + instructions: 88485900164 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} From 495700c333d11fbd73d04aaf414661c601121778 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Thu, 5 Jun 2025 14:22:54 +0200 Subject: [PATCH 21/26] --persist --- benchmarks/btreemap/canbench_results.yml | 845 +++++++++++++++-------- benchmarks/compare/canbench_results.yml | 56 +- benchmarks/vec/canbench_results.yml | 50 +- 3 files changed, 635 insertions(+), 316 deletions(-) diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 2f5698e7..a3da533a 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -1,1553 +1,1775 @@ benches: btreemap_v2_contains_10mib_values: total: + start_instructions: 13641779315 calls: 1 - instructions: 142209883 + instructions: 142209886 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob8_u64: total: + start_instructions: 459084221 calls: 1 - instructions: 283243186 + instructions: 283243189 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_1024_128: total: + start_instructions: 6131899376 calls: 1 - instructions: 4294894392 + instructions: 4294894395 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_128_128: total: + start_instructions: 1362343681 calls: 1 - instructions: 840909876 + instructions: 840909879 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_16_128: total: + start_instructions: 587878749 calls: 1 - instructions: 300105736 + instructions: 300105739 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_256_128: total: + start_instructions: 2036715448 calls: 1 - instructions: 1326771401 + instructions: 1326771404 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_1024: total: + start_instructions: 1238249413 calls: 1 - instructions: 337445350 + instructions: 337445353 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_128: total: + start_instructions: 659343164 calls: 1 - instructions: 337242957 + instructions: 337242960 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_16: total: + start_instructions: 572202074 calls: 1 - instructions: 329500229 + instructions: 329500232 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_256: total: + start_instructions: 749400670 calls: 1 - instructions: 335682009 + instructions: 335682012 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_32: total: + start_instructions: 594149976 calls: 1 - instructions: 342487367 + instructions: 342487370 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_4: total: + start_instructions: 556173326 calls: 1 - instructions: 333741840 + instructions: 333741843 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_512: total: + start_instructions: 910877757 calls: 1 - instructions: 333192029 + instructions: 333192032 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_64: total: + start_instructions: 618884854 calls: 1 - instructions: 337617773 + instructions: 337617776 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_32_8: total: + start_instructions: 566707959 calls: 1 - instructions: 335387695 + instructions: 335387698 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_4_128: total: + start_instructions: 500933332 calls: 1 - instructions: 250355530 + instructions: 250355533 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_512_128: total: + start_instructions: 3423436833 calls: 1 - instructions: 2298434691 + instructions: 2298434694 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_64_128: total: + start_instructions: 804816646 calls: 1 - instructions: 419606574 + instructions: 419606577 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_blob_8_128: total: + start_instructions: 555386727 calls: 1 - instructions: 273336147 + instructions: 273336150 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_u64_blob8: total: + start_instructions: 428005982 calls: 1 - instructions: 225499211 + instructions: 225499214 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_u64_u64: total: + start_instructions: 429050546 calls: 1 - instructions: 230729851 + instructions: 230729854 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_u64_vec8: total: + start_instructions: 433755130 calls: 1 - instructions: 225499211 + instructions: 225499214 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec8_u64: total: + start_instructions: 605757063 calls: 1 - instructions: 373974694 + instructions: 373974697 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_1024_128: total: + start_instructions: 3176589939 calls: 1 - instructions: 1847543843 + instructions: 1847543846 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_128_128: total: + start_instructions: 1141456502 calls: 1 - instructions: 562946697 + instructions: 562946700 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_16_128: total: + start_instructions: 777913751 calls: 1 - instructions: 432781519 + instructions: 432781522 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_256_128: total: + start_instructions: 1558135223 calls: 1 - instructions: 916951505 + instructions: 916951508 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_1024: total: + start_instructions: 1576108523 calls: 1 - instructions: 516345708 + instructions: 516345711 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_128: total: + start_instructions: 847274885 calls: 1 - instructions: 437597039 + instructions: 437597042 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_16: total: + start_instructions: 717616847 calls: 1 - instructions: 367092396 + instructions: 367092399 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_256: total: + start_instructions: 990681353 calls: 1 - instructions: 445726845 + instructions: 445726848 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_32: total: + start_instructions: 719501527 calls: 1 - instructions: 367166163 + instructions: 367166166 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_4: total: + start_instructions: 705169121 calls: 1 - instructions: 366267473 + instructions: 366267476 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_512: total: + start_instructions: 1194655206 calls: 1 - instructions: 480959847 + instructions: 480959850 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_64: total: + start_instructions: 762005673 calls: 1 - instructions: 407119037 + instructions: 407119040 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_8: total: + start_instructions: 705397346 calls: 1 - instructions: 366285313 + instructions: 366285316 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_4_128: total: + start_instructions: 673444539 calls: 1 - instructions: 398219523 + instructions: 398219526 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_512_128: total: + start_instructions: 2121309943 calls: 1 - instructions: 1276595171 + instructions: 1276595174 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_64_128: total: + start_instructions: 951151319 calls: 1 - instructions: 512370490 + instructions: 512370493 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_8_128: total: + start_instructions: 736327627 calls: 1 - instructions: 398244279 + instructions: 398244282 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_10mib_values: total: + start_instructions: 13641779315 calls: 1 - instructions: 388595742 + instructions: 388595745 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob8_u64: total: + start_instructions: 459084221 calls: 1 - instructions: 294497964 + instructions: 294497967 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_1024_128: total: + start_instructions: 6131899376 calls: 1 - instructions: 4434041253 + instructions: 4434041256 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_128_128: total: + start_instructions: 1362343681 calls: 1 - instructions: 874096444 + instructions: 874096447 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_16_128: total: + start_instructions: 587878749 calls: 1 - instructions: 313526179 + instructions: 313526182 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_256_128: total: + start_instructions: 2036715448 calls: 1 - instructions: 1373148630 + instructions: 1373148633 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_1024: total: + start_instructions: 1238249413 calls: 1 - instructions: 357155881 + instructions: 357155884 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_128: total: + start_instructions: 659343164 calls: 1 - instructions: 351535572 + instructions: 351535575 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_16: total: + start_instructions: 572202074 calls: 1 - instructions: 340461038 + instructions: 340461041 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_256: total: + start_instructions: 749400670 calls: 1 - instructions: 351061577 + instructions: 351061580 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_32: total: + start_instructions: 594149976 calls: 1 - instructions: 353942159 + instructions: 353942162 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_4: total: + start_instructions: 556173326 calls: 1 - instructions: 343418312 + instructions: 343418315 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_512: total: + start_instructions: 910877757 calls: 1 - instructions: 350194697 + instructions: 350194700 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_64: total: + start_instructions: 618884854 calls: 1 - instructions: 350423636 + instructions: 350423639 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_32_8: total: + start_instructions: 566707959 calls: 1 - instructions: 345686334 + instructions: 345686337 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_4_128: total: + start_instructions: 500933332 calls: 1 - instructions: 262413920 + instructions: 262413923 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_512_128: total: + start_instructions: 3423436833 calls: 1 - instructions: 2375697187 + instructions: 2375697190 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_64_128: total: + start_instructions: 804816646 calls: 1 - instructions: 443018386 + instructions: 443018389 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_blob_8_128: total: + start_instructions: 555386727 calls: 1 - instructions: 286466150 + instructions: 286466153 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_u64_blob8: total: + start_instructions: 428005982 calls: 1 - instructions: 235941207 + instructions: 235941210 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_u64_u64: total: + start_instructions: 429050546 calls: 1 - instructions: 242257567 + instructions: 242257570 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_u64_vec8: total: + start_instructions: 433755130 calls: 1 - instructions: 236688731 + instructions: 236688734 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec8_u64: total: + start_instructions: 605757063 calls: 1 - instructions: 383633046 + instructions: 383633049 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_1024_128: total: + start_instructions: 3176589939 calls: 1 - instructions: 1895892021 + instructions: 1895892024 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_128_128: total: + start_instructions: 1141456502 calls: 1 - instructions: 575182491 + instructions: 575182494 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_16_128: total: + start_instructions: 777913751 calls: 1 - instructions: 442328780 + instructions: 442328783 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_256_128: total: + start_instructions: 1558135223 calls: 1 - instructions: 929706179 + instructions: 929706182 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_1024: total: + start_instructions: 1576108523 calls: 1 - instructions: 558668778 + instructions: 558668781 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_128: total: + start_instructions: 847274885 calls: 1 - instructions: 447698379 + instructions: 447698382 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_16: total: + start_instructions: 717616847 calls: 1 - instructions: 374638992 + instructions: 374638995 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_256: total: + start_instructions: 990681353 calls: 1 - instructions: 463244749 + instructions: 463244752 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_32: total: + start_instructions: 719501527 calls: 1 - instructions: 374845455 + instructions: 374845458 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_4: total: + start_instructions: 705169121 calls: 1 - instructions: 374022129 + instructions: 374022132 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_512: total: + start_instructions: 1194655206 calls: 1 - instructions: 502894640 + instructions: 502894643 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_64: total: + start_instructions: 762005673 calls: 1 - instructions: 415510253 + instructions: 415510256 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_32_8: total: + start_instructions: 705397346 calls: 1 - instructions: 374044526 + instructions: 374044529 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_4_128: total: + start_instructions: 673444539 calls: 1 - instructions: 407171451 + instructions: 407171454 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_512_128: total: + start_instructions: 2121309943 calls: 1 - instructions: 1289217055 + instructions: 1289217058 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_64_128: total: + start_instructions: 951151319 calls: 1 - instructions: 523089683 + instructions: 523089686 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_get_vec_8_128: total: + start_instructions: 736327627 calls: 1 - instructions: 407684836 + instructions: 407684839 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_insert_10mib_values: total: + start_instructions: 9227500937 calls: 1 - instructions: 4414278527 + instructions: 4414278530 heap_increase: 161 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: + start_instructions: 7169159 calls: 1 - instructions: 450755676 + instructions: 450755679 heap_increase: 0 stable_memory_increase: 4 scopes: {} btreemap_v2_insert_blob_1024_128: total: + start_instructions: 517497068 calls: 1 - instructions: 5525871838 + instructions: 5525871841 heap_increase: 0 stable_memory_increase: 196 scopes: {} btreemap_v2_insert_blob_128_128: total: + start_instructions: 136717351 calls: 1 - instructions: 1208776074 + instructions: 1208776077 heap_increase: 0 stable_memory_increase: 46 scopes: {} btreemap_v2_insert_blob_16_128: total: + start_instructions: 80779261 calls: 1 - instructions: 500634225 + instructions: 500634228 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_blob_256_128: total: + start_instructions: 192187842 calls: 1 - instructions: 1817437136 + instructions: 1817437139 heap_increase: 0 stable_memory_increase: 67 scopes: {} btreemap_v2_insert_blob_32_1024: total: + start_instructions: 470117615 calls: 1 - instructions: 724946350 + instructions: 724946353 heap_increase: 0 stable_memory_increase: 173 scopes: {} btreemap_v2_insert_blob_32_128: total: + start_instructions: 88387573 calls: 1 - instructions: 563610143 + instructions: 563610146 heap_increase: 0 stable_memory_increase: 28 scopes: {} btreemap_v2_insert_blob_32_16: total: + start_instructions: 30061384 calls: 1 - instructions: 539355240 + instructions: 539355243 heap_increase: 0 stable_memory_increase: 11 scopes: {} btreemap_v2_insert_blob_32_256: total: + start_instructions: 143910784 calls: 1 - instructions: 593024514 + instructions: 593024517 heap_increase: 0 stable_memory_increase: 49 scopes: {} btreemap_v2_insert_blob_32_32: total: + start_instructions: 40587637 calls: 1 - instructions: 550137101 + instructions: 550137104 heap_increase: 0 stable_memory_increase: 13 scopes: {} btreemap_v2_insert_blob_32_4: total: + start_instructions: 23796449 calls: 1 - instructions: 529991507 + instructions: 529991510 heap_increase: 0 stable_memory_increase: 8 scopes: {} btreemap_v2_insert_blob_32_512: total: + start_instructions: 256737430 calls: 1 - instructions: 631434879 + instructions: 631434882 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_blob_32_64: total: + start_instructions: 57727541 calls: 1 - instructions: 556371865 + instructions: 556371868 heap_increase: 0 stable_memory_increase: 18 scopes: {} btreemap_v2_insert_blob_32_8: total: + start_instructions: 25614633 calls: 1 - instructions: 538627876 + instructions: 538627879 heap_increase: 0 stable_memory_increase: 9 scopes: {} btreemap_v2_insert_blob_4_128: total: + start_instructions: 74069348 calls: 1 - instructions: 421118728 + instructions: 421118731 heap_increase: 0 stable_memory_increase: 13 scopes: {} btreemap_v2_insert_blob_512_128: total: + start_instructions: 305481838 calls: 1 - instructions: 3070384525 + instructions: 3070384528 heap_increase: 0 stable_memory_increase: 111 scopes: {} btreemap_v2_insert_blob_64_128: total: + start_instructions: 105964329 calls: 1 - instructions: 687121795 + instructions: 687121798 heap_increase: 0 stable_memory_increase: 34 scopes: {} btreemap_v2_insert_blob_8_128: total: + start_instructions: 75793656 calls: 1 - instructions: 473587833 + instructions: 473587836 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_u64_blob8: total: + start_instructions: 7129092 calls: 1 - instructions: 419771652 + instructions: 419771655 heap_increase: 0 stable_memory_increase: 5 scopes: {} btreemap_v2_insert_u64_u64: total: + start_instructions: 829636 calls: 1 - instructions: 427435615 + instructions: 427435618 heap_increase: 0 stable_memory_increase: 6 scopes: {} btreemap_v2_insert_u64_vec8: total: + start_instructions: 9484204 calls: 1 - instructions: 424107324 + instructions: 424107327 heap_increase: 0 stable_memory_increase: 21 scopes: {} btreemap_v2_insert_vec8_u64: total: + start_instructions: 9524260 calls: 1 - instructions: 596040193 + instructions: 596040196 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_1024_128: total: + start_instructions: 373748833 calls: 1 - instructions: 2781459487 + instructions: 2781459490 heap_increase: 0 stable_memory_increase: 193 scopes: {} btreemap_v2_insert_vec_128_128: total: + start_instructions: 94004487 calls: 1 - instructions: 1033826698 + instructions: 1033826701 heap_increase: 0 stable_memory_increase: 51 scopes: {} btreemap_v2_insert_vec_16_128: total: + start_instructions: 59400208 calls: 1 - instructions: 708799340 + instructions: 708799343 heap_increase: 0 stable_memory_increase: 31 scopes: {} btreemap_v2_insert_vec_256_128: total: + start_instructions: 134313000 calls: 1 - instructions: 1415401968 + instructions: 1415401971 heap_increase: 0 stable_memory_increase: 71 scopes: {} btreemap_v2_insert_vec_32_1024: total: + start_instructions: 344976335 calls: 1 - instructions: 1196540256 + instructions: 1196540259 heap_increase: 0 stable_memory_increase: 171 scopes: {} btreemap_v2_insert_vec_32_128: total: + start_instructions: 64225968 calls: 1 - instructions: 773817095 + instructions: 773817098 heap_increase: 0 stable_memory_increase: 33 scopes: {} btreemap_v2_insert_vec_32_16: total: + start_instructions: 29278663 calls: 1 - instructions: 683676074 + instructions: 683676077 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_256: total: + start_instructions: 104242388 calls: 1 - instructions: 891495671 + instructions: 891495674 heap_increase: 0 stable_memory_increase: 54 scopes: {} btreemap_v2_insert_vec_32_32: total: + start_instructions: 34498916 calls: 1 - instructions: 679014135 + instructions: 679014138 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_4: total: + start_instructions: 24227100 calls: 1 - instructions: 677410557 + instructions: 677410560 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_512: total: + start_instructions: 185090170 calls: 1 - instructions: 998139799 + instructions: 998139802 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_vec_32_64: total: + start_instructions: 44656017 calls: 1 - instructions: 710417622 + instructions: 710417625 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_vec_32_8: total: + start_instructions: 26361873 calls: 1 - instructions: 676881778 + instructions: 676881781 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_4_128: total: + start_instructions: 54372856 calls: 1 - instructions: 609132528 + instructions: 609132531 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_512_128: total: + start_instructions: 214802895 calls: 1 - instructions: 1892539708 + instructions: 1892539711 heap_increase: 0 stable_memory_increase: 112 scopes: {} btreemap_v2_insert_vec_64_128: total: + start_instructions: 74730696 calls: 1 - instructions: 864964956 + instructions: 864964959 heap_increase: 0 stable_memory_increase: 41 scopes: {} btreemap_v2_insert_vec_8_128: total: + start_instructions: 56148177 calls: 1 - instructions: 669600950 + instructions: 669600953 heap_increase: 0 stable_memory_increase: 23 scopes: {} btreemap_v2_mem_manager_contains_blob512_u64: total: + start_instructions: 3469193460 calls: 1 - instructions: 2393561731 + instructions: 2393561734 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_contains_u64_blob512: total: + start_instructions: 901106298 calls: 1 - instructions: 301490930 + instructions: 301490933 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_contains_u64_u64: total: + start_instructions: 556497929 calls: 1 - instructions: 306627816 + instructions: 306627819 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_contains_u64_vec512: total: + start_instructions: 1098469943 calls: 1 - instructions: 389757738 + instructions: 389757741 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_contains_vec512_u64: total: + start_instructions: 2265902858 calls: 1 - instructions: 1263289436 + instructions: 1263289439 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_get_blob512_u64: total: + start_instructions: 3469193460 calls: 1 - instructions: 2480010677 + instructions: 2480010680 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_get_u64_blob512: total: + start_instructions: 901106298 calls: 1 - instructions: 318984422 + instructions: 318984425 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_get_u64_u64: total: + start_instructions: 556497929 calls: 1 - instructions: 319753693 + instructions: 319753696 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_get_u64_vec512: total: + start_instructions: 1098469943 calls: 1 - instructions: 416829257 + instructions: 416829260 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_get_vec512_u64: total: + start_instructions: 2265902858 calls: 1 - instructions: 1307093929 + instructions: 1307093932 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_blob512_u64: total: + start_instructions: 237916518 calls: 1 - instructions: 3188562351 + instructions: 3188562354 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_blob512: total: + start_instructions: 237807821 calls: 1 - instructions: 641983044 + instructions: 641983047 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_u64: total: + start_instructions: 924274 calls: 1 - instructions: 554768226 + instructions: 554768229 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_vec512: total: + start_instructions: 170023944 calls: 1 - instructions: 869119491 + instructions: 869119494 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_vec512_u64: total: + start_instructions: 169934276 calls: 1 - instructions: 2031729618 + instructions: 2031729621 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_blob512_u64: total: + start_instructions: 3469193460 calls: 1 - instructions: 4412188235 + instructions: 4412188238 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_blob512: total: + start_instructions: 901106298 calls: 1 - instructions: 941387257 + instructions: 941387260 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_u64: total: + start_instructions: 556497929 calls: 1 - instructions: 799210541 + instructions: 799210544 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_vec512: total: + start_instructions: 1098469943 calls: 1 - instructions: 1280524467 + instructions: 1280524470 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_vec512_u64: total: + start_instructions: 2265902858 calls: 1 - instructions: 3183910603 + instructions: 3183910606 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob8_u64: total: + start_instructions: 457924574 calls: 1 - instructions: 622204734 + instructions: 622204737 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_1024_128: total: + start_instructions: 6043418647 calls: 1 - instructions: 8431489312 + instructions: 8431489315 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_128_128: total: + start_instructions: 1345543164 calls: 1 - instructions: 1868792923 + instructions: 1868792926 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_16_128: total: + start_instructions: 581473225 calls: 1 - instructions: 765979957 + instructions: 765979960 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_256_128: total: + start_instructions: 2009674719 calls: 1 - instructions: 2807129778 + instructions: 2807129781 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_1024: total: + start_instructions: 1195163704 calls: 1 - instructions: 1151789844 + instructions: 1151789847 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_128: total: + start_instructions: 652097455 calls: 1 - instructions: 895275106 + instructions: 895275109 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_16: total: + start_instructions: 569416363 calls: 1 - instructions: 830182917 + instructions: 830182920 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_256: total: + start_instructions: 737035037 calls: 1 - instructions: 924011983 + instructions: 924011986 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_32: total: + start_instructions: 590724477 calls: 1 - instructions: 844943820 + instructions: 844943823 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_4: total: + start_instructions: 553887697 calls: 1 - instructions: 813449743 + instructions: 813449746 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_512: total: + start_instructions: 888272048 calls: 1 - instructions: 988664675 + instructions: 988664678 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_64: total: + start_instructions: 614199145 calls: 1 - instructions: 853674072 + instructions: 853674075 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_32_8: total: + start_instructions: 564242248 calls: 1 - instructions: 831831033 + instructions: 831831036 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_4_128: total: + start_instructions: 495187815 calls: 1 - instructions: 382999265 + instructions: 382999268 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_512_128: total: + start_instructions: 3375916104 calls: 1 - instructions: 4656593142 + instructions: 4656593145 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_64_128: total: + start_instructions: 793135863 calls: 1 - instructions: 1070301815 + instructions: 1070301818 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_8_128: total: + start_instructions: 549381228 calls: 1 - instructions: 626232852 + instructions: 626232855 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_blob8: total: + start_instructions: 426900483 calls: 1 - instructions: 697101320 + instructions: 697101323 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_u64: total: + start_instructions: 428284992 calls: 1 - instructions: 708716946 + instructions: 708716949 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_vec8: total: + start_instructions: 433611269 calls: 1 - instructions: 699653893 + instructions: 699653896 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec8_u64: total: + start_instructions: 605584194 calls: 1 - instructions: 798418804 + instructions: 798418807 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_1024_128: total: + start_instructions: 3155228061 calls: 1 - instructions: 4088244642 + instructions: 4088244645 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_128_128: total: + start_instructions: 1127850926 calls: 1 - instructions: 1540253392 + instructions: 1540253395 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_16_128: total: + start_instructions: 768219289 calls: 1 - instructions: 1038792534 + instructions: 1038792537 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_256_128: total: + start_instructions: 1549734709 calls: 1 - instructions: 2058316631 + instructions: 2058316634 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_1024: total: + start_instructions: 1541536332 calls: 1 - instructions: 1720509338 + instructions: 1720509341 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_128: total: + start_instructions: 838062804 calls: 1 - instructions: 1121758260 + instructions: 1121758263 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_16: total: + start_instructions: 712974478 calls: 1 - instructions: 965015096 + instructions: 965015099 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_256: total: + start_instructions: 995757800 calls: 1 - instructions: 1248161922 + instructions: 1248161925 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_32: total: + start_instructions: 713532792 calls: 1 - instructions: 961156749 + instructions: 961156752 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_4: total: + start_instructions: 701657398 calls: 1 - instructions: 954459180 + instructions: 954459183 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_512: total: + start_instructions: 1183249710 calls: 1 - instructions: 1404192531 + instructions: 1404192534 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_64: total: + start_instructions: 755093380 calls: 1 - instructions: 1005121403 + instructions: 1005121406 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_8: total: + start_instructions: 703263392 calls: 1 - instructions: 965767637 + instructions: 965767640 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_4_128: total: + start_instructions: 663525125 calls: 1 - instructions: 546605679 + instructions: 546605682 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_512_128: total: + start_instructions: 2107362344 calls: 1 - instructions: 2756539701 + instructions: 2756539704 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_64_128: total: + start_instructions: 939715393 calls: 1 - instructions: 1266113581 + instructions: 1266113584 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_8_128: total: + start_instructions: 725768868 calls: 1 - instructions: 859852036 + instructions: 859852039 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob8_u64: total: + start_instructions: 457924574 calls: 1 - instructions: 602351174 + instructions: 602351177 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_1024_128: total: + start_instructions: 6043418647 calls: 1 - instructions: 8114672995 + instructions: 8114672998 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_128_128: total: + start_instructions: 1345543164 calls: 1 - instructions: 1802557238 + instructions: 1802557241 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_16_128: total: + start_instructions: 581473225 calls: 1 - instructions: 742010389 + instructions: 742010392 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_256_128: total: + start_instructions: 2009674719 calls: 1 - instructions: 2718417571 + instructions: 2718417574 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_1024: total: + start_instructions: 1195163704 calls: 1 - instructions: 1117680205 + instructions: 1117680208 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_128: total: + start_instructions: 652097455 calls: 1 - instructions: 862740574 + instructions: 862740577 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_16: total: + start_instructions: 569416363 calls: 1 - instructions: 805615861 + instructions: 805615864 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_256: total: + start_instructions: 737035037 calls: 1 - instructions: 895500863 + instructions: 895500866 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_32: total: + start_instructions: 590724477 calls: 1 - instructions: 815546397 + instructions: 815546400 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_4: total: + start_instructions: 553887697 calls: 1 - instructions: 793651203 + instructions: 793651206 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_512: total: + start_instructions: 888272048 calls: 1 - instructions: 965235827 + instructions: 965235830 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_64: total: + start_instructions: 614199145 calls: 1 - instructions: 829958837 + instructions: 829958840 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_32_8: total: + start_instructions: 564242248 calls: 1 - instructions: 807345599 + instructions: 807345602 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_4_128: total: + start_instructions: 495187815 calls: 1 - instructions: 371630694 + instructions: 371630697 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_512_128: total: + start_instructions: 3375916104 calls: 1 - instructions: 4497167500 + instructions: 4497167503 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_64_128: total: + start_instructions: 793135863 calls: 1 - instructions: 1041947660 + instructions: 1041947663 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_8_128: total: + start_instructions: 549381228 calls: 1 - instructions: 622236018 + instructions: 622236021 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_blob8: total: + start_instructions: 426900483 calls: 1 - instructions: 678204674 + instructions: 678204677 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_u64: total: + start_instructions: 428284992 calls: 1 - instructions: 689565343 + instructions: 689565346 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_vec8: total: + start_instructions: 433611269 calls: 1 - instructions: 680489716 + instructions: 680489719 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec8_u64: total: + start_instructions: 605584194 calls: 1 - instructions: 775817721 + instructions: 775817724 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_1024_128: total: + start_instructions: 3155228061 calls: 1 - instructions: 4314905725 + instructions: 4314905728 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_128_128: total: + start_instructions: 1127850926 calls: 1 - instructions: 1554225722 + instructions: 1554225725 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_16_128: total: + start_instructions: 768219289 calls: 1 - instructions: 1026121784 + instructions: 1026121787 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_256_128: total: + start_instructions: 1549734709 calls: 1 - instructions: 2132015032 + instructions: 2132015035 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_1024: total: + start_instructions: 1541536332 calls: 1 - instructions: 1703222226 + instructions: 1703222229 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_128: total: + start_instructions: 838062804 calls: 1 - instructions: 1102793670 + instructions: 1102793673 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_16: total: + start_instructions: 712974478 calls: 1 - instructions: 944215477 + instructions: 944215480 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_256: total: + start_instructions: 995757800 calls: 1 - instructions: 1231109358 + instructions: 1231109361 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_32: total: + start_instructions: 713532792 calls: 1 - instructions: 943096578 + instructions: 943096581 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_4: total: + start_instructions: 701657398 calls: 1 - instructions: 940360469 + instructions: 940360472 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_512: total: + start_instructions: 1183249710 calls: 1 - instructions: 1394528342 + instructions: 1394528345 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_64: total: + start_instructions: 755093380 calls: 1 - instructions: 986558059 + instructions: 986558062 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_8: total: + start_instructions: 703263392 calls: 1 - instructions: 943862469 + instructions: 943862472 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_4_128: total: + start_instructions: 663525125 calls: 1 - instructions: 536444569 + instructions: 536444572 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_512_128: total: + start_instructions: 2107362344 calls: 1 - instructions: 2876103010 + instructions: 2876103013 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_64_128: total: + start_instructions: 939715393 calls: 1 - instructions: 1258730445 + instructions: 1258730448 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_8_128: total: + start_instructions: 725768868 calls: 1 - instructions: 865704778 + instructions: 865704781 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_0b: total: + start_instructions: 35279536 calls: 1 - instructions: 16667 + instructions: 16670 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_10kib: total: + start_instructions: 849286018 calls: 1 - instructions: 2539479 + instructions: 2539482 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_20_10mib: total: + start_instructions: 13641779689 calls: 1 - instructions: 20575441 + instructions: 20575444 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_0b: total: + start_instructions: 35279633 calls: 1 instructions: 17026 heap_increase: 0 @@ -1555,6 +1777,7 @@ benches: scopes: {} btreemap_v2_range_key_sum_1k_10kib: total: + start_instructions: 849286115 calls: 1 instructions: 57155466 heap_increase: 0 @@ -1562,6 +1785,7 @@ benches: scopes: {} btreemap_v2_range_key_sum_20_10mib: total: + start_instructions: 13641779786 calls: 1 instructions: 1105825356 heap_increase: 0 @@ -1569,6 +1793,7 @@ benches: scopes: {} btreemap_v2_range_value_sum_1k_0b: total: + start_instructions: 35279633 calls: 1 instructions: 17040 heap_increase: 0 @@ -1576,6 +1801,7 @@ benches: scopes: {} btreemap_v2_range_value_sum_1k_10kib: total: + start_instructions: 849286115 calls: 1 instructions: 57167462 heap_increase: 0 @@ -1583,6 +1809,7 @@ benches: scopes: {} btreemap_v2_range_value_sum_20_10mib: total: + start_instructions: 13641779786 calls: 1 instructions: 1105825592 heap_increase: 0 @@ -1590,408 +1817,466 @@ benches: scopes: {} btreemap_v2_remove_10mib_values: total: + start_instructions: 13641779315 calls: 1 - instructions: 4738916137 + instructions: 4738916140 heap_increase: 0 stable_memory_increase: 657 scopes: {} btreemap_v2_remove_blob8_u64: total: + start_instructions: 459084221 calls: 1 - instructions: 606060883 + instructions: 606060886 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_1024_128: total: + start_instructions: 6131899376 calls: 1 - instructions: 7421892865 + instructions: 7421892868 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_128_128: total: + start_instructions: 1362343681 calls: 1 - instructions: 1635346170 + instructions: 1635346173 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_16_128: total: + start_instructions: 587878749 calls: 1 - instructions: 690778699 + instructions: 690778702 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_256_128: total: + start_instructions: 2036715448 calls: 1 - instructions: 2469321763 + instructions: 2469321766 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_1024: total: + start_instructions: 1238249413 calls: 1 - instructions: 1018124451 + instructions: 1018124454 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_128: total: + start_instructions: 659343164 calls: 1 - instructions: 782401853 + instructions: 782401856 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_16: total: + start_instructions: 572202074 calls: 1 - instructions: 735723619 + instructions: 735723622 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_256: total: + start_instructions: 749400670 calls: 1 - instructions: 818894907 + instructions: 818894910 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_32: total: + start_instructions: 594149976 calls: 1 - instructions: 747187643 + instructions: 747187646 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_4: total: + start_instructions: 556173326 calls: 1 - instructions: 732225250 + instructions: 732225253 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_512: total: + start_instructions: 910877757 calls: 1 - instructions: 891436017 + instructions: 891436020 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_64: total: + start_instructions: 618884854 calls: 1 - instructions: 774124102 + instructions: 774124105 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_32_8: total: + start_instructions: 566707959 calls: 1 - instructions: 732109674 + instructions: 732109677 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_4_128: total: + start_instructions: 500933332 calls: 1 - instructions: 468003047 + instructions: 468003050 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_512_128: total: + start_instructions: 3423436833 calls: 1 - instructions: 4122888732 + instructions: 4122888735 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_64_128: total: + start_instructions: 804816646 calls: 1 - instructions: 950222209 + instructions: 950222212 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_8_128: total: + start_instructions: 555386727 calls: 1 - instructions: 623531403 + instructions: 623531406 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_blob8: total: + start_instructions: 428005982 calls: 1 - instructions: 592789771 + instructions: 592789774 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_u64: total: + start_instructions: 429050546 calls: 1 - instructions: 614885785 + instructions: 614885788 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_vec8: total: + start_instructions: 433755130 calls: 1 - instructions: 598779275 + instructions: 598779278 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec8_u64: total: + start_instructions: 605757063 calls: 1 - instructions: 767234531 + instructions: 767234534 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_1024_128: total: + start_instructions: 3176589939 calls: 1 - instructions: 4558379137 + instructions: 4558379140 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_128_128: total: + start_instructions: 1141456502 calls: 1 - instructions: 1461644794 + instructions: 1461644797 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_16_128: total: + start_instructions: 777913751 calls: 1 - instructions: 929203207 + instructions: 929203210 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_256_128: total: + start_instructions: 1558135223 calls: 1 - instructions: 2290550760 + instructions: 2290550763 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_1024: total: + start_instructions: 1576108523 calls: 1 - instructions: 1731794141 + instructions: 1731794144 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_128: total: + start_instructions: 847274885 calls: 1 - instructions: 1068597444 + instructions: 1068597447 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_16: total: + start_instructions: 717616847 calls: 1 - instructions: 891430298 + instructions: 891430301 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_256: total: + start_instructions: 990681353 calls: 1 - instructions: 1279143183 + instructions: 1279143186 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_32: total: + start_instructions: 719501527 calls: 1 - instructions: 898891401 + instructions: 898891404 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_4: total: + start_instructions: 705169121 calls: 1 - instructions: 897965956 + instructions: 897965959 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_512: total: + start_instructions: 1194655206 calls: 1 - instructions: 1444031754 + instructions: 1444031757 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_64: total: + start_instructions: 762005673 calls: 1 - instructions: 979418207 + instructions: 979418210 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_8: total: + start_instructions: 705397346 calls: 1 - instructions: 892017141 + instructions: 892017144 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_4_128: total: + start_instructions: 673444539 calls: 1 - instructions: 669124225 + instructions: 669124228 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_512_128: total: + start_instructions: 2121309943 calls: 1 - instructions: 3127449181 + instructions: 3127449184 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_64_128: total: + start_instructions: 951151319 calls: 1 - instructions: 1188831359 + instructions: 1188831362 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_8_128: total: + start_instructions: 736327627 calls: 1 - instructions: 837953416 + instructions: 837953419 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_0b: total: + start_instructions: 35174231 calls: 1 - instructions: 1478450 + instructions: 1478453 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_10kib: total: + start_instructions: 426952859 calls: 1 - instructions: 56992484 + instructions: 56992487 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_20_10mib: total: + start_instructions: 4996153605 calls: 1 - instructions: 1103718289 + instructions: 1103718292 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_0b: total: + start_instructions: 35174231 calls: 1 - instructions: 1480165 + instructions: 1480168 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_10kib: total: + start_instructions: 426952859 calls: 1 - instructions: 56974555 + instructions: 56974558 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_20_10mib: total: + start_instructions: 4996153605 calls: 1 - instructions: 1103717868 + instructions: 1103717871 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_0b: total: + start_instructions: 35174218 calls: 1 - instructions: 1090848 + instructions: 1090851 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_10kib: total: + start_instructions: 426952846 calls: 1 - instructions: 2498199 + instructions: 2498202 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_20_10mib: total: + start_instructions: 4996153592 calls: 1 - instructions: 18468332 + instructions: 18468335 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_0b: total: + start_instructions: 35174218 calls: 1 - instructions: 1092555 + instructions: 1092558 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_10kib: total: + start_instructions: 426952846 calls: 1 - instructions: 2481046 + instructions: 2481049 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_20_10mib: total: + start_instructions: 4996153592 calls: 1 - instructions: 18468348 + instructions: 18468351 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_0b: total: + start_instructions: 35174233 calls: 1 - instructions: 1454788 + instructions: 1454791 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_10kib: total: + start_instructions: 426952861 calls: 1 - instructions: 56968822 + instructions: 56968825 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_20_10mib: total: + start_instructions: 4996153607 calls: 1 - instructions: 1103717819 + instructions: 1103717822 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_0b: total: + start_instructions: 35174231 calls: 1 - instructions: 1457167 + instructions: 1457170 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_10kib: total: + start_instructions: 426952859 calls: 1 - instructions: 56951557 + instructions: 56951560 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_20_10mib: total: + start_instructions: 4996153605 calls: 1 - instructions: 1103717410 + instructions: 1103717413 heap_increase: 0 stable_memory_increase: 0 scopes: {} -version: 0.1.15 +version: 0.1.16 diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index 91adc181..803e9e9d 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -1,128 +1,146 @@ benches: read_chunks_btreemap_1: total: + start_instructions: 17235 calls: 1 - instructions: 799994426 + instructions: 799994282 heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: + start_instructions: 17235 calls: 1 - instructions: 4994335966 + instructions: 4994335822 heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: + start_instructions: 17235 calls: 1 - instructions: 132252292459 + instructions: 132252292315 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} read_chunks_stable_1: total: + start_instructions: 17235 calls: 1 - instructions: 812767514 + instructions: 812767320 heap_increase: 1601 stable_memory_increase: 1665 scopes: {} read_chunks_stable_1k: total: + start_instructions: 17235 calls: 1 - instructions: 525926853 + instructions: 525926659 heap_increase: 1600 stable_memory_increase: 1665 scopes: {} read_chunks_stable_1m: total: + start_instructions: 17235 calls: 1 - instructions: 1307625987 + instructions: 1307625793 heap_increase: 1892 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1: total: + start_instructions: 17233 calls: 1 - instructions: 1363286623 + instructions: 1363286425 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: + start_instructions: 17233 calls: 1 - instructions: 1378478066 + instructions: 1378477868 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: + start_instructions: 17233 calls: 1 - instructions: 4724969149 + instructions: 4724968951 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: + start_instructions: 17235 calls: 1 - instructions: 650634878 + instructions: 650634797 heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: + start_instructions: 17235 calls: 1 - instructions: 4494346979 + instructions: 4494346898 heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: + start_instructions: 17235 calls: 1 - instructions: 88485900164 + instructions: 88485900083 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} write_chunks_stable_1: total: + start_instructions: 17235 calls: 1 - instructions: 418914609 + instructions: 418914513 heap_increase: 1601 stable_memory_increase: 1665 scopes: {} write_chunks_stable_1k: total: + start_instructions: 17235 calls: 1 - instructions: 420017351 + instructions: 420017255 heap_increase: 1600 stable_memory_increase: 1665 scopes: {} write_chunks_stable_1m: total: + start_instructions: 17235 calls: 1 - instructions: 1076987632 + instructions: 1076987536 heap_increase: 1892 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1: total: + start_instructions: 17234 calls: 1 - instructions: 1257791064 + instructions: 1257790964 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: + start_instructions: 17234 calls: 1 - instructions: 1272015769 + instructions: 1272015669 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: + start_instructions: 17234 calls: 1 - instructions: 3715427406 + instructions: 3715427306 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} -version: 0.1.15 +version: 0.1.16 diff --git a/benchmarks/vec/canbench_results.yml b/benchmarks/vec/canbench_results.yml index 4237d17f..75d537c4 100644 --- a/benchmarks/vec/canbench_results.yml +++ b/benchmarks/vec/canbench_results.yml @@ -1,114 +1,130 @@ benches: vec_get_blob_128: total: + start_instructions: 66837503 calls: 1 - instructions: 19246661 + instructions: 19246664 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_blob_16: total: + start_instructions: 14184259 calls: 1 - instructions: 6405945 + instructions: 6405948 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_blob_32: total: + start_instructions: 21861904 calls: 1 - instructions: 7123504 + instructions: 7123507 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_blob_4: total: + start_instructions: 7868563 calls: 1 - instructions: 4824326 + instructions: 4824329 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_blob_4_mem_manager: total: + start_instructions: 12132991 calls: 1 - instructions: 7191676 + instructions: 7191679 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_blob_64: total: + start_instructions: 38017744 calls: 1 - instructions: 11310943 + instructions: 11310946 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_blob_64_mem_manager: total: + start_instructions: 42376312 calls: 1 - instructions: 13651091 + instructions: 13651094 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_blob_8: total: + start_instructions: 9802299 calls: 1 - instructions: 5723200 + instructions: 5723203 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_get_u64: total: + start_instructions: 5627778 calls: 1 - instructions: 4790305 + instructions: 4790308 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_insert_blob_128: total: + start_instructions: 68947043 calls: 1 - instructions: 4151424 + instructions: 4151427 heap_increase: 0 stable_memory_increase: 19 scopes: {} vec_insert_blob_16: total: + start_instructions: 11338996 calls: 1 - instructions: 3316227 + instructions: 3316230 heap_increase: 0 stable_memory_increase: 2 scopes: {} vec_insert_blob_32: total: + start_instructions: 19117401 calls: 1 - instructions: 3435467 + instructions: 3435470 heap_increase: 0 stable_memory_increase: 5 scopes: {} vec_insert_blob_4: total: + start_instructions: 4922059 calls: 1 - instructions: 3227468 + instructions: 3227471 heap_increase: 0 stable_memory_increase: 0 scopes: {} vec_insert_blob_64: total: + start_instructions: 38042904 calls: 1 - instructions: 3675804 + instructions: 3675807 heap_increase: 0 stable_memory_increase: 9 scopes: {} vec_insert_blob_8: total: + start_instructions: 6936374 calls: 1 - instructions: 3256889 + instructions: 3256892 heap_increase: 0 stable_memory_increase: 1 scopes: {} vec_insert_u64: total: + start_instructions: 509221 calls: 1 - instructions: 5359519 + instructions: 5359522 heap_increase: 0 stable_memory_increase: 1 scopes: {} -version: 0.1.15 +version: 0.1.16 From 1df5f118ee24fdc87c75c2c7fee359f0a210e8dc Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Fri, 6 Jun 2025 15:36:31 +0200 Subject: [PATCH 22/26] --persist --- benchmarks/btreemap/canbench_results.yml | 622 +++++++++++------------ benchmarks/compare/canbench_results.yml | 68 +-- benchmarks/src/vec.rs | 10 + 3 files changed, 355 insertions(+), 345 deletions(-) diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 0a5f24fa..b6dbdbfe 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -1,7 +1,7 @@ benches: btreemap_v2_contains_10mib_values: total: - start_instructions: 14485967088 + start_instructions: 13641744408 calls: 1 instructions: 142211176 heap_increase: 0 @@ -9,7 +9,7 @@ benches: scopes: {} btreemap_v2_contains_blob8_u64: total: - start_instructions: 453873913 + start_instructions: 453315718 calls: 1 instructions: 284729279 heap_increase: 0 @@ -33,7 +33,7 @@ benches: scopes: {} btreemap_v2_contains_blob_16_128: total: - start_instructions: 582936916 + start_instructions: 582936961 calls: 1 instructions: 301679315 heap_increase: 0 @@ -65,7 +65,7 @@ benches: scopes: {} btreemap_v2_contains_blob_32_16: total: - start_instructions: 559722634 + start_instructions: 559722626 calls: 1 instructions: 328808636 heap_increase: 0 @@ -89,7 +89,7 @@ benches: scopes: {} btreemap_v2_contains_blob_32_4: total: - start_instructions: 543466976 + start_instructions: 543466804 calls: 1 instructions: 332340491 heap_increase: 0 @@ -121,7 +121,7 @@ benches: scopes: {} btreemap_v2_contains_blob_4_128: total: - start_instructions: 496586041 + start_instructions: 496586671 calls: 1 instructions: 253347393 heap_increase: 0 @@ -145,7 +145,7 @@ benches: scopes: {} btreemap_v2_contains_blob_8_128: total: - start_instructions: 549947436 + start_instructions: 549947526 calls: 1 instructions: 275816925 heap_increase: 0 @@ -153,7 +153,7 @@ benches: scopes: {} btreemap_v2_contains_u64_blob8: total: - start_instructions: 427844055 + start_instructions: 422753403 calls: 1 instructions: 227932675 heap_increase: 0 @@ -161,7 +161,7 @@ benches: scopes: {} btreemap_v2_contains_u64_u64: total: - start_instructions: 429391869 + start_instructions: 423735157 calls: 1 instructions: 233050996 heap_increase: 0 @@ -169,7 +169,7 @@ benches: scopes: {} btreemap_v2_contains_u64_vec8: total: - start_instructions: 437943978 + start_instructions: 428945977 calls: 1 instructions: 227932675 heap_increase: 0 @@ -177,7 +177,7 @@ benches: scopes: {} btreemap_v2_contains_vec8_u64: total: - start_instructions: 609571867 + start_instructions: 609021912 calls: 1 instructions: 380704257 heap_increase: 0 @@ -185,7 +185,7 @@ benches: scopes: {} btreemap_v2_contains_vec_1024_128: total: - start_instructions: 3139139615 + start_instructions: 3127397572 calls: 1 instructions: 1824658601 heap_increase: 0 @@ -193,7 +193,7 @@ benches: scopes: {} btreemap_v2_contains_vec_128_128: total: - start_instructions: 1122931818 + start_instructions: 1112636101 calls: 1 instructions: 574277486 heap_increase: 0 @@ -201,7 +201,7 @@ benches: scopes: {} btreemap_v2_contains_vec_16_128: total: - start_instructions: 789675873 + start_instructions: 780002115 calls: 1 instructions: 448376104 heap_increase: 0 @@ -209,7 +209,7 @@ benches: scopes: {} btreemap_v2_contains_vec_256_128: total: - start_instructions: 1532479798 + start_instructions: 1520782734 calls: 1 instructions: 902317937 heap_increase: 0 @@ -217,7 +217,7 @@ benches: scopes: {} btreemap_v2_contains_vec_32_1024: total: - start_instructions: 1602777496 + start_instructions: 1554735607 calls: 1 instructions: 514204305 heap_increase: 0 @@ -225,15 +225,15 @@ benches: scopes: {} btreemap_v2_contains_vec_32_128: total: - start_instructions: 841581401 + start_instructions: 831820045 calls: 1 - instructions: 428712870 + instructions: 428712855 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_contains_vec_32_16: total: - start_instructions: 711050685 + start_instructions: 706018292 calls: 1 instructions: 375067409 heap_increase: 0 @@ -241,7 +241,7 @@ benches: scopes: {} btreemap_v2_contains_vec_32_256: total: - start_instructions: 987481510 + start_instructions: 970996625 calls: 1 instructions: 441718231 heap_increase: 0 @@ -249,7 +249,7 @@ benches: scopes: {} btreemap_v2_contains_vec_32_32: total: - start_instructions: 713894096 + start_instructions: 708303501 calls: 1 instructions: 363350872 heap_increase: 0 @@ -257,7 +257,7 @@ benches: scopes: {} btreemap_v2_contains_vec_32_4: total: - start_instructions: 700624986 + start_instructions: 694010022 calls: 1 instructions: 368447209 heap_increase: 0 @@ -265,7 +265,7 @@ benches: scopes: {} btreemap_v2_contains_vec_32_512: total: - start_instructions: 1199394096 + start_instructions: 1170398850 calls: 1 instructions: 460605848 heap_increase: 0 @@ -273,7 +273,7 @@ benches: scopes: {} btreemap_v2_contains_vec_32_64: total: - start_instructions: 757545427 + start_instructions: 750564294 calls: 1 instructions: 407446583 heap_increase: 0 @@ -281,7 +281,7 @@ benches: scopes: {} btreemap_v2_contains_vec_32_8: total: - start_instructions: 700422898 + start_instructions: 694428535 calls: 1 instructions: 360599988 heap_increase: 0 @@ -289,7 +289,7 @@ benches: scopes: {} btreemap_v2_contains_vec_4_128: total: - start_instructions: 683425633 + start_instructions: 673854990 calls: 1 instructions: 412997574 heap_increase: 0 @@ -297,7 +297,7 @@ benches: scopes: {} btreemap_v2_contains_vec_512_128: total: - start_instructions: 2081367474 + start_instructions: 2070153263 calls: 1 instructions: 1252406684 heap_increase: 0 @@ -305,7 +305,7 @@ benches: scopes: {} btreemap_v2_contains_vec_64_128: total: - start_instructions: 942322408 + start_instructions: 932307195 calls: 1 instructions: 506200298 heap_increase: 0 @@ -313,7 +313,7 @@ benches: scopes: {} btreemap_v2_contains_vec_8_128: total: - start_instructions: 746800143 + start_instructions: 737166786 calls: 1 instructions: 402314967 heap_increase: 0 @@ -321,7 +321,7 @@ benches: scopes: {} btreemap_v2_get_10mib_values: total: - start_instructions: 14485967088 + start_instructions: 13641744408 calls: 1 instructions: 388591799 heap_increase: 0 @@ -329,7 +329,7 @@ benches: scopes: {} btreemap_v2_get_blob8_u64: total: - start_instructions: 453873913 + start_instructions: 453315718 calls: 1 instructions: 305721005 heap_increase: 0 @@ -353,7 +353,7 @@ benches: scopes: {} btreemap_v2_get_blob_16_128: total: - start_instructions: 582936916 + start_instructions: 582936961 calls: 1 instructions: 314408612 heap_increase: 0 @@ -385,7 +385,7 @@ benches: scopes: {} btreemap_v2_get_blob_32_16: total: - start_instructions: 559722634 + start_instructions: 559722626 calls: 1 instructions: 338382934 heap_increase: 0 @@ -409,7 +409,7 @@ benches: scopes: {} btreemap_v2_get_blob_32_4: total: - start_instructions: 543466976 + start_instructions: 543466804 calls: 1 instructions: 340412929 heap_increase: 0 @@ -441,7 +441,7 @@ benches: scopes: {} btreemap_v2_get_blob_4_128: total: - start_instructions: 496586041 + start_instructions: 496586671 calls: 1 instructions: 264255339 heap_increase: 0 @@ -465,7 +465,7 @@ benches: scopes: {} btreemap_v2_get_blob_8_128: total: - start_instructions: 549947436 + start_instructions: 549947526 calls: 1 instructions: 287796664 heap_increase: 0 @@ -473,7 +473,7 @@ benches: scopes: {} btreemap_v2_get_u64_blob8: total: - start_instructions: 427844055 + start_instructions: 422753403 calls: 1 instructions: 237235810 heap_increase: 0 @@ -481,7 +481,7 @@ benches: scopes: {} btreemap_v2_get_u64_u64: total: - start_instructions: 429391869 + start_instructions: 423735157 calls: 1 instructions: 243863622 heap_increase: 0 @@ -489,7 +489,7 @@ benches: scopes: {} btreemap_v2_get_u64_vec8: total: - start_instructions: 437943978 + start_instructions: 428945977 calls: 1 instructions: 237991855 heap_increase: 0 @@ -497,7 +497,7 @@ benches: scopes: {} btreemap_v2_get_vec8_u64: total: - start_instructions: 609571867 + start_instructions: 609021912 calls: 1 instructions: 388751749 heap_increase: 0 @@ -505,7 +505,7 @@ benches: scopes: {} btreemap_v2_get_vec_1024_128: total: - start_instructions: 3139139615 + start_instructions: 3127397572 calls: 1 instructions: 1841512517 heap_increase: 0 @@ -513,7 +513,7 @@ benches: scopes: {} btreemap_v2_get_vec_128_128: total: - start_instructions: 1122931818 + start_instructions: 1112636101 calls: 1 instructions: 583901097 heap_increase: 0 @@ -521,7 +521,7 @@ benches: scopes: {} btreemap_v2_get_vec_16_128: total: - start_instructions: 789675873 + start_instructions: 780002115 calls: 1 instructions: 456729380 heap_increase: 0 @@ -529,7 +529,7 @@ benches: scopes: {} btreemap_v2_get_vec_256_128: total: - start_instructions: 1532479798 + start_instructions: 1520782734 calls: 1 instructions: 912188250 heap_increase: 0 @@ -537,7 +537,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_1024: total: - start_instructions: 1602777496 + start_instructions: 1554735607 calls: 1 instructions: 552829333 heap_increase: 0 @@ -545,7 +545,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_128: total: - start_instructions: 841581401 + start_instructions: 831820045 calls: 1 instructions: 437331843 heap_increase: 0 @@ -553,7 +553,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_16: total: - start_instructions: 711050685 + start_instructions: 706018292 calls: 1 instructions: 381657978 heap_increase: 0 @@ -561,7 +561,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_256: total: - start_instructions: 987481510 + start_instructions: 970996625 calls: 1 instructions: 457027785 heap_increase: 0 @@ -569,7 +569,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_32: total: - start_instructions: 713894096 + start_instructions: 708303501 calls: 1 instructions: 370072286 heap_increase: 0 @@ -577,7 +577,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_4: total: - start_instructions: 700624986 + start_instructions: 694010022 calls: 1 instructions: 374915815 heap_increase: 0 @@ -585,7 +585,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_512: total: - start_instructions: 1199394096 + start_instructions: 1170398850 calls: 1 instructions: 480046390 heap_increase: 0 @@ -593,7 +593,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_64: total: - start_instructions: 757545427 + start_instructions: 750564294 calls: 1 instructions: 414392804 heap_increase: 0 @@ -601,7 +601,7 @@ benches: scopes: {} btreemap_v2_get_vec_32_8: total: - start_instructions: 700422898 + start_instructions: 694428535 calls: 1 instructions: 367113868 heap_increase: 0 @@ -609,7 +609,7 @@ benches: scopes: {} btreemap_v2_get_vec_4_128: total: - start_instructions: 683425633 + start_instructions: 673854990 calls: 1 instructions: 421113113 heap_increase: 0 @@ -617,7 +617,7 @@ benches: scopes: {} btreemap_v2_get_vec_512_128: total: - start_instructions: 2081367474 + start_instructions: 2070153263 calls: 1 instructions: 1262553245 heap_increase: 0 @@ -625,7 +625,7 @@ benches: scopes: {} btreemap_v2_get_vec_64_128: total: - start_instructions: 942322408 + start_instructions: 932307195 calls: 1 instructions: 514950924 heap_increase: 0 @@ -633,7 +633,7 @@ benches: scopes: {} btreemap_v2_get_vec_8_128: total: - start_instructions: 746800143 + start_instructions: 737166786 calls: 1 instructions: 410396744 heap_increase: 0 @@ -643,15 +643,15 @@ benches: total: start_instructions: 9227501071 calls: 1 - instructions: 5258466149 - heap_increase: 322 + instructions: 4414243469 + heap_increase: 161 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: start_instructions: 7169153 calls: 1 - instructions: 445545231 + instructions: 444987036 heap_increase: 0 stable_memory_increase: 4 scopes: {} @@ -675,7 +675,7 @@ benches: total: start_instructions: 80779255 calls: 1 - instructions: 495692271 + instructions: 495692316 heap_increase: 0 stable_memory_increase: 24 scopes: {} @@ -707,7 +707,7 @@ benches: total: start_instructions: 30061378 calls: 1 - instructions: 526875649 + instructions: 526875641 heap_increase: 0 stable_memory_increase: 11 scopes: {} @@ -731,7 +731,7 @@ benches: total: start_instructions: 23796443 calls: 1 - instructions: 517265000 + instructions: 517264828 heap_increase: 0 stable_memory_increase: 8 scopes: {} @@ -763,7 +763,7 @@ benches: total: start_instructions: 74069342 calls: 1 - instructions: 416771302 + instructions: 416771932 heap_increase: 0 stable_memory_increase: 13 scopes: {} @@ -787,7 +787,7 @@ benches: total: start_instructions: 75793650 calls: 1 - instructions: 468148407 + instructions: 468148497 heap_increase: 0 stable_memory_increase: 20 scopes: {} @@ -795,7 +795,7 @@ benches: total: start_instructions: 7129086 calls: 1 - instructions: 419629594 + instructions: 414538942 heap_increase: 0 stable_memory_increase: 5 scopes: {} @@ -803,7 +803,7 @@ benches: total: start_instructions: 829630 calls: 1 - instructions: 427776801 + instructions: 422120089 heap_increase: 0 stable_memory_increase: 6 scopes: {} @@ -811,7 +811,7 @@ benches: total: start_instructions: 9522903 calls: 1 - instructions: 426996021 + instructions: 417793979 heap_increase: 0 stable_memory_increase: 21 scopes: {} @@ -819,7 +819,7 @@ benches: total: start_instructions: 9562960 calls: 1 - instructions: 600791438 + instructions: 600241483 heap_increase: 0 stable_memory_increase: 16 scopes: {} @@ -827,7 +827,7 @@ benches: total: start_instructions: 379511531 calls: 1 - instructions: 2736605218 + instructions: 2724541318 heap_increase: 0 stable_memory_increase: 193 scopes: {} @@ -835,7 +835,7 @@ benches: total: start_instructions: 95272690 calls: 1 - instructions: 1014513313 + instructions: 1004230961 heap_increase: 0 stable_memory_increase: 51 scopes: {} @@ -843,7 +843,7 @@ benches: total: start_instructions: 60116355 calls: 1 - instructions: 723411193 + instructions: 712421970 heap_increase: 0 stable_memory_increase: 31 scopes: {} @@ -851,7 +851,7 @@ benches: total: start_instructions: 136230883 calls: 1 - instructions: 1398080888 + instructions: 1386961588 heap_increase: 0 stable_memory_increase: 71 scopes: {} @@ -859,7 +859,7 @@ benches: total: start_instructions: 350271000 calls: 1 - instructions: 1222003721 + instructions: 1172134601 heap_increase: 0 stable_memory_increase: 171 scopes: {} @@ -867,7 +867,7 @@ benches: total: start_instructions: 65011661 calls: 1 - instructions: 768255876 + instructions: 758019351 heap_increase: 0 stable_memory_increase: 33 scopes: {} @@ -875,7 +875,7 @@ benches: total: start_instructions: 29511116 calls: 1 - instructions: 677660006 + instructions: 672563154 heap_increase: 0 stable_memory_increase: 20 scopes: {} @@ -883,7 +883,7 @@ benches: total: start_instructions: 105678358 calls: 1 - instructions: 884422721 + instructions: 866698575 heap_increase: 0 stable_memory_increase: 54 scopes: {} @@ -891,7 +891,7 @@ benches: total: start_instructions: 34810528 calls: 1 - instructions: 673498279 + instructions: 667983187 heap_increase: 0 stable_memory_increase: 20 scopes: {} @@ -899,7 +899,7 @@ benches: total: start_instructions: 24405792 calls: 1 - instructions: 673498951 + instructions: 666709199 heap_increase: 0 stable_memory_increase: 20 scopes: {} @@ -907,7 +907,7 @@ benches: total: start_instructions: 187810090 calls: 1 - instructions: 998460442 + instructions: 969855597 heap_increase: 0 stable_memory_increase: 91 scopes: {} @@ -915,7 +915,7 @@ benches: total: start_instructions: 45127735 calls: 1 - instructions: 706175746 + instructions: 699344647 heap_increase: 0 stable_memory_increase: 24 scopes: {} @@ -923,7 +923,7 @@ benches: total: start_instructions: 26556750 calls: 1 - instructions: 672527457 + instructions: 666308286 heap_increase: 0 stable_memory_increase: 20 scopes: {} @@ -931,7 +931,7 @@ benches: total: start_instructions: 55036651 calls: 1 - instructions: 619760403 + instructions: 608538733 heap_increase: 0 stable_memory_increase: 16 scopes: {} @@ -939,7 +939,7 @@ benches: total: start_instructions: 218009775 calls: 1 - instructions: 1852718375 + instructions: 1840482056 heap_increase: 0 stable_memory_increase: 112 scopes: {} @@ -947,7 +947,7 @@ benches: total: start_instructions: 75683480 calls: 1 - instructions: 855970283 + instructions: 845897955 heap_increase: 0 stable_memory_increase: 41 scopes: {} @@ -955,13 +955,13 @@ benches: total: start_instructions: 56821886 calls: 1 - instructions: 680099401 + instructions: 669688392 heap_increase: 0 stable_memory_increase: 23 scopes: {} btreemap_v2_mem_manager_contains_blob512_u64: total: - start_instructions: 3425972505 + start_instructions: 3425422321 calls: 1 instructions: 2376508249 heap_increase: 0 @@ -969,7 +969,7 @@ benches: scopes: {} btreemap_v2_mem_manager_contains_u64_blob512: total: - start_instructions: 893434231 + start_instructions: 888326359 calls: 1 instructions: 304790874 heap_increase: 0 @@ -977,7 +977,7 @@ benches: scopes: {} btreemap_v2_mem_manager_contains_u64_u64: total: - start_instructions: 549286638 + start_instructions: 543629926 calls: 1 instructions: 309491912 heap_increase: 0 @@ -985,7 +985,7 @@ benches: scopes: {} btreemap_v2_mem_manager_contains_u64_vec512: total: - start_instructions: 1103884834 + start_instructions: 1070728591 calls: 1 instructions: 393000500 heap_increase: 0 @@ -993,7 +993,7 @@ benches: scopes: {} btreemap_v2_mem_manager_contains_vec512_u64: total: - start_instructions: 2193954962 + start_instructions: 2191773094 calls: 1 instructions: 1228107788 heap_increase: 0 @@ -1001,7 +1001,7 @@ benches: scopes: {} btreemap_v2_mem_manager_get_blob512_u64: total: - start_instructions: 3425972505 + start_instructions: 3425422321 calls: 1 instructions: 2461116385 heap_increase: 0 @@ -1009,7 +1009,7 @@ benches: scopes: {} btreemap_v2_mem_manager_get_u64_blob512: total: - start_instructions: 893434231 + start_instructions: 888326359 calls: 1 instructions: 320423970 heap_increase: 0 @@ -1017,7 +1017,7 @@ benches: scopes: {} btreemap_v2_mem_manager_get_u64_u64: total: - start_instructions: 549286638 + start_instructions: 543629926 calls: 1 instructions: 320421256 heap_increase: 0 @@ -1025,7 +1025,7 @@ benches: scopes: {} btreemap_v2_mem_manager_get_u64_vec512: total: - start_instructions: 1103884834 + start_instructions: 1070728591 calls: 1 instructions: 416742623 heap_increase: 0 @@ -1033,7 +1033,7 @@ benches: scopes: {} btreemap_v2_mem_manager_get_vec512_u64: total: - start_instructions: 2193954962 + start_instructions: 2191773094 calls: 1 instructions: 1268826318 heap_increase: 0 @@ -1043,7 +1043,7 @@ benches: total: start_instructions: 237916537 calls: 1 - instructions: 3145341380 + instructions: 3144791196 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1051,7 +1051,7 @@ benches: total: start_instructions: 237807840 calls: 1 - instructions: 634310961 + instructions: 629203089 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1059,7 +1059,7 @@ benches: total: start_instructions: 924293 calls: 1 - instructions: 547556919 + instructions: 541900207 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1067,7 +1067,7 @@ benches: total: start_instructions: 172593866 calls: 1 - instructions: 875570980 + instructions: 843362546 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1075,55 +1075,55 @@ benches: total: start_instructions: 172504199 calls: 1 - instructions: 1961516482 + instructions: 1959334614 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_blob512_u64: total: - start_instructions: 3425972505 + start_instructions: 3425422321 calls: 1 - instructions: 4345562795 + instructions: 4345562451 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_blob512: total: - start_instructions: 893434231 + start_instructions: 888326359 calls: 1 - instructions: 927125026 + instructions: 918002814 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_u64: total: - start_instructions: 549286638 + start_instructions: 543629926 calls: 1 - instructions: 783432094 + instructions: 774336358 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_vec512: total: - start_instructions: 1103884834 + start_instructions: 1070728591 calls: 1 - instructions: 1245826755 + instructions: 1235311371 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_vec512_u64: total: - start_instructions: 2193954962 + start_instructions: 2191773094 calls: 1 - instructions: 3075940124 + instructions: 3072998036 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob8_u64: total: - start_instructions: 452714120 + start_instructions: 452155925 calls: 1 - instructions: 617552323 + instructions: 617525739 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1145,9 +1145,9 @@ benches: scopes: {} btreemap_v2_pop_first_blob_16_128: total: - start_instructions: 576531262 + start_instructions: 576531307 calls: 1 - instructions: 759917153 + instructions: 759917149 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1177,9 +1177,9 @@ benches: scopes: {} btreemap_v2_pop_first_blob_32_16: total: - start_instructions: 556936763 + start_instructions: 556936755 calls: 1 - instructions: 816200950 + instructions: 816200946 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1201,9 +1201,9 @@ benches: scopes: {} btreemap_v2_pop_first_blob_32_4: total: - start_instructions: 541161181 + start_instructions: 541161009 calls: 1 - instructions: 799101496 + instructions: 799101120 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1227,13 +1227,13 @@ benches: total: start_instructions: 551206978 calls: 1 - instructions: 817715657 + instructions: 817715609 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob_4_128: total: - start_instructions: 490840380 + start_instructions: 490841010 calls: 1 instructions: 381495140 heap_increase: 0 @@ -1243,7 +1243,7 @@ benches: total: start_instructions: 3353422049 calls: 1 - instructions: 4633015950 + instructions: 4633015942 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1257,7 +1257,7 @@ benches: scopes: {} btreemap_v2_pop_first_blob_8_128: total: - start_instructions: 543941793 + start_instructions: 543941883 calls: 1 instructions: 621633420 heap_increase: 0 @@ -1265,31 +1265,31 @@ benches: scopes: {} btreemap_v2_pop_first_u64_blob8: total: - start_instructions: 426758416 + start_instructions: 421667764 calls: 1 - instructions: 699801824 + instructions: 692238500 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_u64: total: - start_instructions: 428626169 + start_instructions: 422969457 calls: 1 - instructions: 711281843 + instructions: 703685887 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_vec8: total: - start_instructions: 436538662 + start_instructions: 427336620 calls: 1 - instructions: 702348004 + instructions: 694788532 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec8_u64: total: - start_instructions: 610374136 + start_instructions: 609824181 calls: 1 instructions: 799659346 heap_increase: 0 @@ -1297,55 +1297,55 @@ benches: scopes: {} btreemap_v2_pop_first_vec_1024_128: total: - start_instructions: 3116136487 + start_instructions: 3104072587 calls: 1 - instructions: 4021467872 + instructions: 4018498916 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_128_128: total: - start_instructions: 1109805741 + start_instructions: 1099523389 calls: 1 - instructions: 1503839970 + instructions: 1502646434 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_16_128: total: - start_instructions: 783547286 + start_instructions: 772558063 calls: 1 - instructions: 1041501412 + instructions: 1041313744 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_256_128: total: - start_instructions: 1534331509 + start_instructions: 1523212209 calls: 1 - instructions: 2004716789 + instructions: 2002757545 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_1024: total: - start_instructions: 1572294459 + start_instructions: 1522425339 calls: 1 - instructions: 1686400511 + instructions: 1684807807 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_128: total: - start_instructions: 833287275 + start_instructions: 823050750 calls: 1 - instructions: 1103728682 + instructions: 1103431105 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_16: total: - start_instructions: 707190860 + start_instructions: 702094008 calls: 1 instructions: 952540614 heap_increase: 0 @@ -1353,15 +1353,15 @@ benches: scopes: {} btreemap_v2_pop_first_vec_32_256: total: - start_instructions: 990120817 + start_instructions: 972396671 calls: 1 - instructions: 1223270589 + instructions: 1222529889 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_32: total: - start_instructions: 708328545 + start_instructions: 702813453 calls: 1 instructions: 948692304 heap_increase: 0 @@ -1369,7 +1369,7 @@ benches: scopes: {} btreemap_v2_pop_first_vec_32_4: total: - start_instructions: 697924481 + start_instructions: 691134729 calls: 1 instructions: 940976424 heap_increase: 0 @@ -1377,23 +1377,23 @@ benches: scopes: {} btreemap_v2_pop_first_vec_32_512: total: - start_instructions: 1186290270 + start_instructions: 1157685425 calls: 1 - instructions: 1373219640 + instructions: 1372107096 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_64: total: - start_instructions: 751323219 + start_instructions: 744492120 calls: 1 - instructions: 989996561 + instructions: 989955241 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_8: total: - start_instructions: 699103945 + start_instructions: 692884774 calls: 1 instructions: 951913482 heap_increase: 0 @@ -1401,41 +1401,41 @@ benches: scopes: {} btreemap_v2_pop_first_vec_4_128: total: - start_instructions: 674816792 + start_instructions: 663595122 calls: 1 - instructions: 548663812 + instructions: 548589800 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_512_128: total: - start_instructions: 2070747888 + start_instructions: 2058511569 calls: 1 - instructions: 2693639900 + instructions: 2691148704 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_64_128: total: - start_instructions: 931673501 + start_instructions: 921601173 calls: 1 - instructions: 1242491831 + instructions: 1241957627 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_8_128: total: - start_instructions: 736941025 + start_instructions: 726530016 calls: 1 - instructions: 862886022 + instructions: 862745879 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob8_u64: total: - start_instructions: 452714120 + start_instructions: 452155925 calls: 1 - instructions: 595853650 + instructions: 595826030 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1457,7 +1457,7 @@ benches: scopes: {} btreemap_v2_pop_last_blob_16_128: total: - start_instructions: 576531262 + start_instructions: 576531307 calls: 1 instructions: 733631612 heap_increase: 0 @@ -1489,7 +1489,7 @@ benches: scopes: {} btreemap_v2_pop_last_blob_32_16: total: - start_instructions: 556936763 + start_instructions: 556936755 calls: 1 instructions: 789994077 heap_increase: 0 @@ -1513,9 +1513,9 @@ benches: scopes: {} btreemap_v2_pop_last_blob_32_4: total: - start_instructions: 541161181 + start_instructions: 541161009 calls: 1 - instructions: 776952625 + instructions: 776952129 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1539,13 +1539,13 @@ benches: total: start_instructions: 551206978 calls: 1 - instructions: 790946612 + instructions: 790946568 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob_4_128: total: - start_instructions: 490840380 + start_instructions: 490841010 calls: 1 instructions: 367470487 heap_increase: 0 @@ -1569,39 +1569,39 @@ benches: scopes: {} btreemap_v2_pop_last_blob_8_128: total: - start_instructions: 543941793 + start_instructions: 543941883 calls: 1 - instructions: 615779072 + instructions: 615779068 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_blob8: total: - start_instructions: 426758416 + start_instructions: 421667764 calls: 1 - instructions: 678338311 + instructions: 670770923 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_u64: total: - start_instructions: 428626169 + start_instructions: 422969457 calls: 1 - instructions: 689260406 + instructions: 681654382 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_vec8: total: - start_instructions: 436538662 + start_instructions: 427336620 calls: 1 - instructions: 680731670 + instructions: 673168646 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec8_u64: total: - start_instructions: 610374136 + start_instructions: 609824181 calls: 1 instructions: 774006744 heap_increase: 0 @@ -1609,55 +1609,55 @@ benches: scopes: {} btreemap_v2_pop_last_vec_1024_128: total: - start_instructions: 3116136487 + start_instructions: 3104072587 calls: 1 - instructions: 4239103678 + instructions: 4236129490 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_128_128: total: - start_instructions: 1109805741 + start_instructions: 1099523389 calls: 1 - instructions: 1509202441 + instructions: 1508005321 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_16_128: total: - start_instructions: 783547286 + start_instructions: 772558063 calls: 1 - instructions: 1022271784 + instructions: 1022083139 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_256_128: total: - start_instructions: 1534331509 + start_instructions: 1523212209 calls: 1 - instructions: 2065405266 + instructions: 2063446350 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_1024: total: - start_instructions: 1572294459 + start_instructions: 1522425339 calls: 1 - instructions: 1660630531 + instructions: 1659038731 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_128: total: - start_instructions: 833287275 + start_instructions: 823050750 calls: 1 - instructions: 1078545812 + instructions: 1078246327 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_16: total: - start_instructions: 707190860 + start_instructions: 702094008 calls: 1 instructions: 925174032 heap_increase: 0 @@ -1665,15 +1665,15 @@ benches: scopes: {} btreemap_v2_pop_last_vec_32_256: total: - start_instructions: 990120817 + start_instructions: 972396671 calls: 1 - instructions: 1199037864 + instructions: 1198297168 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_32: total: - start_instructions: 708328545 + start_instructions: 702813453 calls: 1 instructions: 925759644 heap_increase: 0 @@ -1681,7 +1681,7 @@ benches: scopes: {} btreemap_v2_pop_last_vec_32_4: total: - start_instructions: 697924481 + start_instructions: 691134729 calls: 1 instructions: 921398030 heap_increase: 0 @@ -1689,23 +1689,23 @@ benches: scopes: {} btreemap_v2_pop_last_vec_32_512: total: - start_instructions: 1186290270 + start_instructions: 1157685425 calls: 1 - instructions: 1357630038 + instructions: 1356519038 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_64: total: - start_instructions: 751323219 + start_instructions: 744492120 calls: 1 - instructions: 968549933 + instructions: 968507557 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_8: total: - start_instructions: 699103945 + start_instructions: 692884774 calls: 1 instructions: 925007422 heap_increase: 0 @@ -1713,121 +1713,121 @@ benches: scopes: {} btreemap_v2_pop_last_vec_4_128: total: - start_instructions: 674816792 + start_instructions: 663595122 calls: 1 - instructions: 534270275 + instructions: 534198259 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_512_128: total: - start_instructions: 2070747888 + start_instructions: 2058511569 calls: 1 - instructions: 2793078250 + instructions: 2790585870 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_64_128: total: - start_instructions: 931673501 + start_instructions: 921601173 calls: 1 - instructions: 1230553236 + instructions: 1230020880 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_8_128: total: - start_instructions: 736941025 + start_instructions: 726530016 calls: 1 - instructions: 862573318 + instructions: 862433231 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_0b: total: - start_instructions: 35147069 + start_instructions: 34508221 calls: 1 - instructions: 17325 + instructions: 17223 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_10kib: total: - start_instructions: 889241453 + start_instructions: 846646129 calls: 1 - instructions: 2651810 + instructions: 2576896 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_20_10mib: total: - start_instructions: 14485967462 + start_instructions: 13641744782 calls: 1 - instructions: 20577329 + instructions: 20576211 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_0b: total: - start_instructions: 35147166 + start_instructions: 34508318 calls: 1 - instructions: 17568 + instructions: 17466 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_10kib: total: - start_instructions: 889241550 + start_instructions: 846646226 calls: 1 - instructions: 57016599 + instructions: 56941685 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_20_10mib: total: - start_instructions: 14485967559 + start_instructions: 13641744879 calls: 1 - instructions: 1105821929 + instructions: 1105820811 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_0b: total: - start_instructions: 35147166 + start_instructions: 34508318 calls: 1 - instructions: 17582 + instructions: 17480 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_10kib: total: - start_instructions: 889241550 + start_instructions: 846646226 calls: 1 - instructions: 57028595 + instructions: 56953681 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_20_10mib: total: - start_instructions: 14485967559 + start_instructions: 13641744879 calls: 1 - instructions: 1105822165 + instructions: 1105821047 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_10mib_values: total: - start_instructions: 14485967088 + start_instructions: 13641744408 calls: 1 - instructions: 4745601915 + instructions: 4738884703 heap_increase: 0 stable_memory_increase: 657 scopes: {} btreemap_v2_remove_blob8_u64: total: - start_instructions: 453873913 + start_instructions: 453315718 calls: 1 - instructions: 596923489 + instructions: 596895445 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1849,7 +1849,7 @@ benches: scopes: {} btreemap_v2_remove_blob_16_128: total: - start_instructions: 582936916 + start_instructions: 582936961 calls: 1 instructions: 680207079 heap_increase: 0 @@ -1881,7 +1881,7 @@ benches: scopes: {} btreemap_v2_remove_blob_32_16: total: - start_instructions: 559722634 + start_instructions: 559722626 calls: 1 instructions: 716725409 heap_increase: 0 @@ -1891,7 +1891,7 @@ benches: total: start_instructions: 736916035 calls: 1 - instructions: 799332932 + instructions: 799332916 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1905,9 +1905,9 @@ benches: scopes: {} btreemap_v2_remove_blob_32_4: total: - start_instructions: 543466976 + start_instructions: 543466804 calls: 1 - instructions: 712636348 + instructions: 712636080 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1931,13 +1931,13 @@ benches: total: start_instructions: 553652829 calls: 1 - instructions: 712282515 + instructions: 712282463 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_blob_4_128: total: - start_instructions: 496586041 + start_instructions: 496586671 calls: 1 instructions: 464428206 heap_increase: 0 @@ -1961,7 +1961,7 @@ benches: scopes: {} btreemap_v2_remove_blob_8_128: total: - start_instructions: 549947436 + start_instructions: 549947526 calls: 1 instructions: 614717488 heap_increase: 0 @@ -1969,31 +1969,31 @@ benches: scopes: {} btreemap_v2_remove_u64_blob8: total: - start_instructions: 427844055 + start_instructions: 422753403 calls: 1 - instructions: 591289239 + instructions: 582340963 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_u64: total: - start_instructions: 429391869 + start_instructions: 423735157 calls: 1 - instructions: 612365815 + instructions: 603270079 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_vec8: total: - start_instructions: 437943978 + start_instructions: 428945977 calls: 1 - instructions: 596864262 + instructions: 587919798 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec8_u64: total: - start_instructions: 609571867 + start_instructions: 609021912 calls: 1 instructions: 768226682 heap_increase: 0 @@ -2001,55 +2001,55 @@ benches: scopes: {} btreemap_v2_remove_vec_1024_128: total: - start_instructions: 3139139615 + start_instructions: 3127397572 calls: 1 - instructions: 4442411301 + instructions: 4438860685 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_128_128: total: - start_instructions: 1122931818 + start_instructions: 1112636101 calls: 1 - instructions: 1419451891 + instructions: 1418057391 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_16_128: total: - start_instructions: 789675873 + start_instructions: 780002115 calls: 1 - instructions: 926959674 + instructions: 926755006 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_256_128: total: - start_instructions: 1532479798 + start_instructions: 1520782734 calls: 1 - instructions: 2218247229 + instructions: 2215939797 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_1024: total: - start_instructions: 1602777496 + start_instructions: 1554735607 calls: 1 - instructions: 1693369366 + instructions: 1691463670 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_128: total: - start_instructions: 841581401 + start_instructions: 831820045 calls: 1 - instructions: 1039023877 + instructions: 1038694885 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_16: total: - start_instructions: 711050685 + start_instructions: 706018292 calls: 1 instructions: 885753205 heap_increase: 0 @@ -2057,15 +2057,15 @@ benches: scopes: {} btreemap_v2_remove_vec_32_256: total: - start_instructions: 987481510 + start_instructions: 970996625 calls: 1 - instructions: 1244959919 + instructions: 1244067987 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_32: total: - start_instructions: 713894096 + start_instructions: 708303501 calls: 1 instructions: 879000017 heap_increase: 0 @@ -2073,7 +2073,7 @@ benches: scopes: {} btreemap_v2_remove_vec_32_4: total: - start_instructions: 700624986 + start_instructions: 694010022 calls: 1 instructions: 875841946 heap_increase: 0 @@ -2081,201 +2081,201 @@ benches: scopes: {} btreemap_v2_remove_vec_32_512: total: - start_instructions: 1199394096 + start_instructions: 1170398850 calls: 1 - instructions: 1402127540 + instructions: 1400789108 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_64: total: - start_instructions: 757545427 + start_instructions: 750564294 calls: 1 - instructions: 981819352 + instructions: 981774896 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_8: total: - start_instructions: 700422898 + start_instructions: 694428535 calls: 1 - instructions: 869697896 + instructions: 869697881 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_4_128: total: - start_instructions: 683425633 + start_instructions: 673854990 calls: 1 - instructions: 668639448 + instructions: 668558000 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_512_128: total: - start_instructions: 2081367474 + start_instructions: 2070153263 calls: 1 - instructions: 3050432567 + instructions: 3047442831 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_64_128: total: - start_instructions: 942322408 + start_instructions: 932307195 calls: 1 - instructions: 1191118695 + instructions: 1190503439 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_8_128: total: - start_instructions: 746800143 + start_instructions: 737166786 calls: 1 - instructions: 831170274 + instructions: 831016558 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_0b: total: - start_instructions: 35039744 + start_instructions: 34400896 calls: 1 - instructions: 1456527 + instructions: 1380961 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_10kib: total: - start_instructions: 466615217 + start_instructions: 424216406 calls: 1 - instructions: 56819350 + instructions: 56743816 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_20_10mib: total: - start_instructions: 5840407332 + start_instructions: 4996119942 calls: 1 - instructions: 1103714527 + instructions: 1103713186 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_0b: total: - start_instructions: 35039744 + start_instructions: 34400896 calls: 1 - instructions: 1457035 + instructions: 1382583 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_10kib: total: - start_instructions: 466615217 + start_instructions: 424216406 calls: 1 - instructions: 56796290 + instructions: 56722202 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_20_10mib: total: - start_instructions: 5840407332 + start_instructions: 4996119942 calls: 1 - instructions: 1103714086 + instructions: 1103712765 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_0b: total: - start_instructions: 35039731 + start_instructions: 34400883 calls: 1 - instructions: 1193507 + instructions: 1104359 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_10kib: total: - start_instructions: 466615204 + start_instructions: 424216393 calls: 1 - instructions: 2603081 + instructions: 2514297 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_20_10mib: total: - start_instructions: 5840407319 + start_instructions: 4996119929 calls: 1 - instructions: 18470081 + instructions: 18468501 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_0b: total: - start_instructions: 35039731 + start_instructions: 34400883 calls: 1 - instructions: 1193329 + instructions: 1105973 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_10kib: total: - start_instructions: 466615204 + start_instructions: 424216393 calls: 1 - instructions: 2581341 + instructions: 2494349 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_20_10mib: total: - start_instructions: 5840407319 + start_instructions: 4996119929 calls: 1 - instructions: 18470067 + instructions: 18468517 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_0b: total: - start_instructions: 35039746 + start_instructions: 34400898 calls: 1 - instructions: 1433865 + instructions: 1358299 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_10kib: total: - start_instructions: 466615219 + start_instructions: 424216408 calls: 1 - instructions: 56796688 + instructions: 56721154 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_20_10mib: total: - start_instructions: 5840407334 + start_instructions: 4996119944 calls: 1 - instructions: 1103714077 + instructions: 1103712736 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_0b: total: - start_instructions: 35039744 + start_instructions: 34400896 calls: 1 - instructions: 1435037 + instructions: 1360585 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_10kib: total: - start_instructions: 466615217 + start_instructions: 424216406 calls: 1 - instructions: 56774292 + instructions: 56700204 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_20_10mib: total: - start_instructions: 5840407332 + start_instructions: 4996119942 calls: 1 - instructions: 1103713648 + instructions: 1103712327 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index 372290c0..576090e7 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -1,31 +1,31 @@ benches: read_chunks_btreemap_1: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 - instructions: 1222164385 - heap_increase: 3233 + instructions: 799994293 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 - instructions: 5422715344 - heap_increase: 1604 + instructions: 4994493731 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 - instructions: 134635899996 + instructions: 133181274796 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} read_chunks_stable_1: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 instructions: 812767320 heap_increase: 1601 @@ -33,7 +33,7 @@ benches: scopes: {} read_chunks_stable_1k: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 instructions: 525926659 heap_increase: 1600 @@ -41,7 +41,7 @@ benches: scopes: {} read_chunks_stable_1m: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 instructions: 1307625793 heap_increase: 1892 @@ -49,55 +49,55 @@ benches: scopes: {} read_chunks_vec_1: total: - start_instructions: 17233 + start_instructions: 17255 calls: 1 - instructions: 1363286422 + instructions: 1363286425 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: - start_instructions: 17233 + start_instructions: 17255 calls: 1 - instructions: 1378474868 + instructions: 1378477868 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: - start_instructions: 17233 + start_instructions: 17255 calls: 1 - instructions: 4721968951 + instructions: 4724968951 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 - instructions: 1072804865 - heap_increase: 3233 + instructions: 650634809 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 - instructions: 4922635433 - heap_increase: 1604 + instructions: 4494413856 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 - instructions: 90689822199 + instructions: 89235197035 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} write_chunks_stable_1: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 instructions: 418914513 heap_increase: 1601 @@ -105,7 +105,7 @@ benches: scopes: {} write_chunks_stable_1k: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 instructions: 420017255 heap_increase: 1600 @@ -113,7 +113,7 @@ benches: scopes: {} write_chunks_stable_1m: total: - start_instructions: 17235 + start_instructions: 17257 calls: 1 instructions: 1076987536 heap_increase: 1892 @@ -121,25 +121,25 @@ benches: scopes: {} write_chunks_vec_1: total: - start_instructions: 17234 + start_instructions: 17256 calls: 1 - instructions: 1257790961 + instructions: 1257790964 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: - start_instructions: 17234 + start_instructions: 17256 calls: 1 - instructions: 1272012669 + instructions: 1272015669 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: - start_instructions: 17234 + start_instructions: 17256 calls: 1 - instructions: 3712427306 + instructions: 3715427306 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} diff --git a/benchmarks/src/vec.rs b/benchmarks/src/vec.rs index 4f099af4..b964b2eb 100644 --- a/benchmarks/src/vec.rs +++ b/benchmarks/src/vec.rs @@ -33,6 +33,11 @@ impl Storable for UnboundedVecN { Cow::Owned(self.0.clone()) } + #[inline] + fn into_bytes(self) -> Vec { + self.0 + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { Self(bytes.into_owned()) @@ -75,6 +80,11 @@ impl Storable for BoundedVecN { Cow::Owned(self.0.clone()) } + #[inline] + fn into_bytes(self) -> Vec { + self.0 + } + #[inline] fn from_bytes(bytes: Cow<[u8]>) -> Self { Self(bytes.into_owned()) From e1c3a8e7457d66ace19cf5294fe442e3816dcc9b Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Wed, 11 Jun 2025 09:54:23 +0200 Subject: [PATCH 23/26] --persist --- benchmarks/btreemap/canbench_results.yml | 262 +++++++++++------------ benchmarks/btreeset/canbench_results.yml | 176 +++++++-------- benchmarks/compare/canbench_results.yml | 32 +-- benchmarks/vec/canbench_results.yml | 2 +- 4 files changed, 236 insertions(+), 236 deletions(-) diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 23bd0317..602e3ff4 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -198,7 +198,7 @@ benches: btreemap_v2_contains_vec_32_128: total: calls: 1 - instructions: 428712879 + instructions: 428712864 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -562,14 +562,14 @@ benches: btreemap_v2_insert_10mib_values: total: calls: 1 - instructions: 5258466158 - heap_increase: 322 + instructions: 4414243478 + heap_increase: 161 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: calls: 1 - instructions: 445545240 + instructions: 444987045 heap_increase: 0 stable_memory_increase: 4 scopes: {} @@ -590,7 +590,7 @@ benches: btreemap_v2_insert_blob_16_128: total: calls: 1 - instructions: 495692280 + instructions: 495692325 heap_increase: 0 stable_memory_increase: 24 scopes: {} @@ -618,7 +618,7 @@ benches: btreemap_v2_insert_blob_32_16: total: calls: 1 - instructions: 526875658 + instructions: 526875650 heap_increase: 0 stable_memory_increase: 11 scopes: {} @@ -639,7 +639,7 @@ benches: btreemap_v2_insert_blob_32_4: total: calls: 1 - instructions: 517265009 + instructions: 517264837 heap_increase: 0 stable_memory_increase: 8 scopes: {} @@ -667,7 +667,7 @@ benches: btreemap_v2_insert_blob_4_128: total: calls: 1 - instructions: 416771311 + instructions: 416771941 heap_increase: 0 stable_memory_increase: 13 scopes: {} @@ -688,154 +688,154 @@ benches: btreemap_v2_insert_blob_8_128: total: calls: 1 - instructions: 468148416 + instructions: 468148506 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_u64_blob8: total: calls: 1 - instructions: 419629603 + instructions: 414538951 heap_increase: 0 stable_memory_increase: 5 scopes: {} btreemap_v2_insert_u64_u64: total: calls: 1 - instructions: 427776810 + instructions: 422120098 heap_increase: 0 stable_memory_increase: 6 scopes: {} btreemap_v2_insert_u64_vec8: total: calls: 1 - instructions: 426996030 + instructions: 417793988 heap_increase: 0 stable_memory_increase: 21 scopes: {} btreemap_v2_insert_vec8_u64: total: calls: 1 - instructions: 600791447 + instructions: 600241492 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_1024_128: total: calls: 1 - instructions: 2736605227 + instructions: 2724541327 heap_increase: 0 stable_memory_increase: 193 scopes: {} btreemap_v2_insert_vec_128_128: total: calls: 1 - instructions: 1014513322 + instructions: 1004230970 heap_increase: 0 stable_memory_increase: 51 scopes: {} btreemap_v2_insert_vec_16_128: total: calls: 1 - instructions: 723411202 + instructions: 712421979 heap_increase: 0 stable_memory_increase: 31 scopes: {} btreemap_v2_insert_vec_256_128: total: calls: 1 - instructions: 1398080897 + instructions: 1386961597 heap_increase: 0 stable_memory_increase: 71 scopes: {} btreemap_v2_insert_vec_32_1024: total: calls: 1 - instructions: 1222003730 + instructions: 1172134610 heap_increase: 0 stable_memory_increase: 171 scopes: {} btreemap_v2_insert_vec_32_128: total: calls: 1 - instructions: 768255885 + instructions: 758019360 heap_increase: 0 stable_memory_increase: 33 scopes: {} btreemap_v2_insert_vec_32_16: total: calls: 1 - instructions: 677660015 + instructions: 672563163 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_256: total: calls: 1 - instructions: 884422730 + instructions: 866698584 heap_increase: 0 stable_memory_increase: 54 scopes: {} btreemap_v2_insert_vec_32_32: total: calls: 1 - instructions: 673498288 + instructions: 667983196 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_4: total: calls: 1 - instructions: 673498960 + instructions: 666709208 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_512: total: calls: 1 - instructions: 998460451 + instructions: 969855606 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_vec_32_64: total: calls: 1 - instructions: 706175755 + instructions: 699344656 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_vec_32_8: total: calls: 1 - instructions: 672527466 + instructions: 666308295 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_4_128: total: calls: 1 - instructions: 619760412 + instructions: 608538742 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_512_128: total: calls: 1 - instructions: 1852718384 + instructions: 1840482065 heap_increase: 0 stable_memory_increase: 112 scopes: {} btreemap_v2_insert_vec_64_128: total: calls: 1 - instructions: 855970292 + instructions: 845897964 heap_increase: 0 stable_memory_increase: 41 scopes: {} btreemap_v2_insert_vec_8_128: total: calls: 1 - instructions: 680099410 + instructions: 669688401 heap_increase: 0 stable_memory_increase: 23 scopes: {} @@ -912,77 +912,77 @@ benches: btreemap_v2_mem_manager_insert_blob512_u64: total: calls: 1 - instructions: 3145341389 + instructions: 3144791205 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_blob512: total: calls: 1 - instructions: 634310970 + instructions: 629203098 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_u64: total: calls: 1 - instructions: 547556928 + instructions: 541900216 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_vec512: total: calls: 1 - instructions: 875570989 + instructions: 843362555 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_vec512_u64: total: calls: 1 - instructions: 1961516491 + instructions: 1959334623 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_blob512_u64: total: calls: 1 - instructions: 4345562804 + instructions: 4345562460 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_blob512: total: calls: 1 - instructions: 927125035 + instructions: 918002823 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_u64: total: calls: 1 - instructions: 783432103 + instructions: 774336367 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_vec512: total: calls: 1 - instructions: 1245826764 + instructions: 1235311380 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_vec512_u64: total: calls: 1 - instructions: 3075940133 + instructions: 3072998045 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob8_u64: total: calls: 1 - instructions: 617552332 + instructions: 617525748 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1003,7 +1003,7 @@ benches: btreemap_v2_pop_first_blob_16_128: total: calls: 1 - instructions: 759917162 + instructions: 759917158 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1031,7 +1031,7 @@ benches: btreemap_v2_pop_first_blob_32_16: total: calls: 1 - instructions: 816200959 + instructions: 816200955 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1052,7 +1052,7 @@ benches: btreemap_v2_pop_first_blob_32_4: total: calls: 1 - instructions: 799101505 + instructions: 799101129 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1073,7 +1073,7 @@ benches: btreemap_v2_pop_first_blob_32_8: total: calls: 1 - instructions: 817715666 + instructions: 817715618 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1087,7 +1087,7 @@ benches: btreemap_v2_pop_first_blob_512_128: total: calls: 1 - instructions: 4633015959 + instructions: 4633015951 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1108,21 +1108,21 @@ benches: btreemap_v2_pop_first_u64_blob8: total: calls: 1 - instructions: 699801833 + instructions: 692238509 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_u64: total: calls: 1 - instructions: 711281852 + instructions: 703685896 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_vec8: total: calls: 1 - instructions: 702348013 + instructions: 694788541 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1136,42 +1136,42 @@ benches: btreemap_v2_pop_first_vec_1024_128: total: calls: 1 - instructions: 4021467881 + instructions: 4018498925 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_128_128: total: calls: 1 - instructions: 1503839979 + instructions: 1502646443 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_16_128: total: calls: 1 - instructions: 1041501421 + instructions: 1041313753 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_256_128: total: calls: 1 - instructions: 2004716798 + instructions: 2002757554 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_1024: total: calls: 1 - instructions: 1686400520 + instructions: 1684807816 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_128: total: calls: 1 - instructions: 1103728691 + instructions: 1103431114 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1185,7 +1185,7 @@ benches: btreemap_v2_pop_first_vec_32_256: total: calls: 1 - instructions: 1223270598 + instructions: 1222529898 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1206,14 +1206,14 @@ benches: btreemap_v2_pop_first_vec_32_512: total: calls: 1 - instructions: 1373219649 + instructions: 1372107105 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_64: total: calls: 1 - instructions: 989996570 + instructions: 989955250 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1227,35 +1227,35 @@ benches: btreemap_v2_pop_first_vec_4_128: total: calls: 1 - instructions: 548663821 + instructions: 548589809 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_512_128: total: calls: 1 - instructions: 2693639909 + instructions: 2691148713 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_64_128: total: calls: 1 - instructions: 1242491840 + instructions: 1241957636 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_8_128: total: calls: 1 - instructions: 862886031 + instructions: 862745888 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob8_u64: total: calls: 1 - instructions: 595853659 + instructions: 595826039 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1325,7 +1325,7 @@ benches: btreemap_v2_pop_last_blob_32_4: total: calls: 1 - instructions: 776952634 + instructions: 776952138 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1346,7 +1346,7 @@ benches: btreemap_v2_pop_last_blob_32_8: total: calls: 1 - instructions: 790946621 + instructions: 790946577 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1374,28 +1374,28 @@ benches: btreemap_v2_pop_last_blob_8_128: total: calls: 1 - instructions: 615779081 + instructions: 615779077 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_blob8: total: calls: 1 - instructions: 678338320 + instructions: 670770932 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_u64: total: calls: 1 - instructions: 689260415 + instructions: 681654391 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_vec8: total: calls: 1 - instructions: 680731679 + instructions: 673168655 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1409,42 +1409,42 @@ benches: btreemap_v2_pop_last_vec_1024_128: total: calls: 1 - instructions: 4239103687 + instructions: 4236129499 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_128_128: total: calls: 1 - instructions: 1509202450 + instructions: 1508005330 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_16_128: total: calls: 1 - instructions: 1022271793 + instructions: 1022083148 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_256_128: total: calls: 1 - instructions: 2065405275 + instructions: 2063446359 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_1024: total: calls: 1 - instructions: 1660630540 + instructions: 1659038740 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_128: total: calls: 1 - instructions: 1078545821 + instructions: 1078246336 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1458,7 +1458,7 @@ benches: btreemap_v2_pop_last_vec_32_256: total: calls: 1 - instructions: 1199037873 + instructions: 1198297177 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1479,14 +1479,14 @@ benches: btreemap_v2_pop_last_vec_32_512: total: calls: 1 - instructions: 1357630047 + instructions: 1356519047 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_64: total: calls: 1 - instructions: 968549942 + instructions: 968507566 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1500,105 +1500,105 @@ benches: btreemap_v2_pop_last_vec_4_128: total: calls: 1 - instructions: 534270284 + instructions: 534198268 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_512_128: total: calls: 1 - instructions: 2793078259 + instructions: 2790585879 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_64_128: total: calls: 1 - instructions: 1230553245 + instructions: 1230020889 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_8_128: total: calls: 1 - instructions: 862573327 + instructions: 862433240 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_0b: total: calls: 1 - instructions: 17334 + instructions: 17232 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_10kib: total: calls: 1 - instructions: 2651819 + instructions: 2576905 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_20_10mib: total: calls: 1 - instructions: 20577338 + instructions: 20576220 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_0b: total: calls: 1 - instructions: 17568 + instructions: 17466 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_10kib: total: calls: 1 - instructions: 57016599 + instructions: 56941685 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_20_10mib: total: calls: 1 - instructions: 1105821929 + instructions: 1105820811 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_0b: total: calls: 1 - instructions: 17582 + instructions: 17480 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_10kib: total: calls: 1 - instructions: 57028595 + instructions: 56953681 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_20_10mib: total: calls: 1 - instructions: 1105822165 + instructions: 1105821047 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_10mib_values: total: calls: 1 - instructions: 4745601924 + instructions: 4738884712 heap_increase: 0 stable_memory_increase: 657 scopes: {} btreemap_v2_remove_blob8_u64: total: calls: 1 - instructions: 596923498 + instructions: 596895454 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1654,7 +1654,7 @@ benches: btreemap_v2_remove_blob_32_256: total: calls: 1 - instructions: 799332941 + instructions: 799332925 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1668,7 +1668,7 @@ benches: btreemap_v2_remove_blob_32_4: total: calls: 1 - instructions: 712636357 + instructions: 712636089 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1689,7 +1689,7 @@ benches: btreemap_v2_remove_blob_32_8: total: calls: 1 - instructions: 712282524 + instructions: 712282472 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1724,21 +1724,21 @@ benches: btreemap_v2_remove_u64_blob8: total: calls: 1 - instructions: 591289248 + instructions: 582340972 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_u64: total: calls: 1 - instructions: 612365824 + instructions: 603270088 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_vec8: total: calls: 1 - instructions: 596864271 + instructions: 587919807 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1752,42 +1752,42 @@ benches: btreemap_v2_remove_vec_1024_128: total: calls: 1 - instructions: 4442411310 + instructions: 4438860694 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_128_128: total: calls: 1 - instructions: 1419451900 + instructions: 1418057400 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_16_128: total: calls: 1 - instructions: 926959683 + instructions: 926755015 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_256_128: total: calls: 1 - instructions: 2218247238 + instructions: 2215939806 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_1024: total: calls: 1 - instructions: 1693369375 + instructions: 1691463679 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_128: total: calls: 1 - instructions: 1039023886 + instructions: 1038694894 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1801,7 +1801,7 @@ benches: btreemap_v2_remove_vec_32_256: total: calls: 1 - instructions: 1244959928 + instructions: 1244067996 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1822,175 +1822,175 @@ benches: btreemap_v2_remove_vec_32_512: total: calls: 1 - instructions: 1402127549 + instructions: 1400789117 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_64: total: calls: 1 - instructions: 981819361 + instructions: 981774905 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_8: total: calls: 1 - instructions: 869697905 + instructions: 869697890 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_4_128: total: calls: 1 - instructions: 668639457 + instructions: 668558009 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_512_128: total: calls: 1 - instructions: 3050432576 + instructions: 3047442840 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_64_128: total: calls: 1 - instructions: 1191118704 + instructions: 1190503448 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_8_128: total: calls: 1 - instructions: 831170283 + instructions: 831016567 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_0b: total: calls: 1 - instructions: 1456536 + instructions: 1380970 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_10kib: total: calls: 1 - instructions: 56819359 + instructions: 56743825 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_20_10mib: total: calls: 1 - instructions: 1103714536 + instructions: 1103713195 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_0b: total: calls: 1 - instructions: 1457044 + instructions: 1382592 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_10kib: total: calls: 1 - instructions: 56796299 + instructions: 56722211 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_20_10mib: total: calls: 1 - instructions: 1103714095 + instructions: 1103712774 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_0b: total: calls: 1 - instructions: 1193516 + instructions: 1104368 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_10kib: total: calls: 1 - instructions: 2603090 + instructions: 2514306 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_20_10mib: total: calls: 1 - instructions: 18470090 + instructions: 18468510 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_0b: total: calls: 1 - instructions: 1193338 + instructions: 1105982 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_10kib: total: calls: 1 - instructions: 2581350 + instructions: 2494358 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_20_10mib: total: calls: 1 - instructions: 18470076 + instructions: 18468526 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_0b: total: calls: 1 - instructions: 1433874 + instructions: 1358308 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_10kib: total: calls: 1 - instructions: 56796697 + instructions: 56721163 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_20_10mib: total: calls: 1 - instructions: 1103714086 + instructions: 1103712745 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_0b: total: calls: 1 - instructions: 1435046 + instructions: 1360594 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_10kib: total: calls: 1 - instructions: 56774301 + instructions: 56700213 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_20_10mib: total: calls: 1 - instructions: 1103713657 + instructions: 1103712336 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/btreeset/canbench_results.yml b/benchmarks/btreeset/canbench_results.yml index 88b717b3..c3c33759 100644 --- a/benchmarks/btreeset/canbench_results.yml +++ b/benchmarks/btreeset/canbench_results.yml @@ -2,196 +2,196 @@ benches: btreeset_insert_blob_1024: total: calls: 1 - instructions: 7286179010 + instructions: 7286690254 heap_increase: 1 stable_memory_increase: 256 scopes: {} btreeset_insert_blob_128: total: calls: 1 - instructions: 1655004312 + instructions: 1655515556 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_16: total: calls: 1 - instructions: 742489220 + instructions: 742764852 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_256: total: calls: 1 - instructions: 2466538181 + instructions: 2467049425 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_32: total: calls: 1 - instructions: 838226089 + instructions: 838550757 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_512: total: calls: 1 - instructions: 4070669136 + instructions: 4071180380 heap_increase: 0 stable_memory_increase: 128 scopes: {} btreeset_insert_blob_64: total: calls: 1 - instructions: 999868191 + instructions: 1000266155 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_8: total: calls: 1 - instructions: 720687809 + instructions: 720924789 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_u32: total: calls: 1 - instructions: 575071154 + instructions: 569311470 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_u64: total: calls: 1 - instructions: 594277495 + instructions: 588524351 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_1024: total: calls: 1 - instructions: 108717444 + instructions: 108717480 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_128: total: calls: 1 - instructions: 18182291 + instructions: 18182327 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_16: total: calls: 1 - instructions: 3647439 + instructions: 3647475 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_256: total: calls: 1 - instructions: 31425818 + instructions: 31425854 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_32: total: calls: 1 - instructions: 4922203 + instructions: 4922239 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_512: total: calls: 1 - instructions: 57189201 + instructions: 57189237 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_64: total: calls: 1 - instructions: 10298006 + instructions: 10298042 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_8: total: calls: 1 - instructions: 3391543 + instructions: 3391579 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_u32: total: calls: 1 - instructions: 2493469 + instructions: 2493481 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_u64: total: calls: 1 - instructions: 2511552 + instructions: 2511564 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_1024: total: calls: 1 - instructions: 52538676 + instructions: 52538700 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_128: total: calls: 1 - instructions: 9488928 + instructions: 9488952 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_16: total: calls: 1 - instructions: 2342890 + instructions: 2342914 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_256: total: calls: 1 - instructions: 15786633 + instructions: 15786657 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_32: total: calls: 1 - instructions: 3010030 + instructions: 3010054 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_512: total: calls: 1 - instructions: 28037606 + instructions: 28037630 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_64: total: calls: 1 - instructions: 5459364 + instructions: 5459388 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_8: total: calls: 1 - instructions: 2251564 + instructions: 2251588 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -282,420 +282,420 @@ benches: btreeset_is_superset_blob_1024: total: calls: 1 - instructions: 91980389 + instructions: 91980425 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_128: total: calls: 1 - instructions: 15754409 + instructions: 15754445 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_16: total: calls: 1 - instructions: 3567062 + instructions: 3567098 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_256: total: calls: 1 - instructions: 26966889 + instructions: 26966925 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_32: total: calls: 1 - instructions: 4791847 + instructions: 4791883 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_512: total: calls: 1 - instructions: 48630699 + instructions: 48630735 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_64: total: calls: 1 - instructions: 8895008 + instructions: 8895044 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_8: total: calls: 1 - instructions: 3336630 + instructions: 3336666 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_u32: total: calls: 1 - instructions: 2492181 + instructions: 2492193 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_u64: total: calls: 1 - instructions: 2510627 + instructions: 2510639 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_1024: total: calls: 1 - instructions: 435124569 + instructions: 435128593 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_128: total: calls: 1 - instructions: 77509285 + instructions: 77513309 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_16: total: calls: 1 - instructions: 17503872 + instructions: 17507886 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_256: total: calls: 1 - instructions: 129682722 + instructions: 129686746 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_32: total: calls: 1 - instructions: 23960294 + instructions: 23964318 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_512: total: calls: 1 - instructions: 231602196 + instructions: 231606220 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_64: total: calls: 1 - instructions: 42403262 + instructions: 42407286 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_8: total: calls: 1 - instructions: 16845518 + instructions: 16849532 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_u32: total: calls: 1 - instructions: 13548171 + instructions: 13552165 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_u64: total: calls: 1 - instructions: 13630155 + instructions: 13634149 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_1024: total: calls: 1 - instructions: 263014488 + instructions: 263016908 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_128: total: calls: 1 - instructions: 47360442 + instructions: 47362862 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_16: total: calls: 1 - instructions: 11547607 + instructions: 11550027 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_256: total: calls: 1 - instructions: 80329136 + instructions: 80331556 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_32: total: calls: 1 - instructions: 15397644 + instructions: 15400064 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_512: total: calls: 1 - instructions: 140683382 + instructions: 140685802 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_64: total: calls: 1 - instructions: 26557455 + instructions: 26559875 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_8: total: calls: 1 - instructions: 11163978 + instructions: 11166398 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_u32: total: calls: 1 - instructions: 8527574 + instructions: 8529984 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_u64: total: calls: 1 - instructions: 8578362 + instructions: 8580772 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_1024: total: calls: 1 - instructions: 7742324330 + instructions: 7742824230 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_128: total: calls: 1 - instructions: 1686815327 + instructions: 1687315227 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_16: total: calls: 1 - instructions: 734847615 + instructions: 735109307 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_256: total: calls: 1 - instructions: 2554095656 + instructions: 2554595556 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_32: total: calls: 1 - instructions: 828047002 + instructions: 828360370 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_512: total: calls: 1 - instructions: 4281038290 + instructions: 4281538190 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_64: total: calls: 1 - instructions: 1008859640 + instructions: 1009246268 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_8: total: calls: 1 - instructions: 713093344 + instructions: 713356352 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_u32: total: calls: 1 - instructions: 565270499 + instructions: 560012243 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_u64: total: calls: 1 - instructions: 588839180 + instructions: 583587464 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_1024: total: calls: 1 - instructions: 108731570 + instructions: 108731606 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_128: total: calls: 1 - instructions: 18185665 + instructions: 18185701 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_16: total: calls: 1 - instructions: 3649063 + instructions: 3649099 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_256: total: calls: 1 - instructions: 31430728 + instructions: 31430764 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_32: total: calls: 1 - instructions: 4923871 + instructions: 4923907 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_512: total: calls: 1 - instructions: 57197183 + instructions: 57197219 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_64: total: calls: 1 - instructions: 10300612 + instructions: 10300648 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_8: total: calls: 1 - instructions: 3393146 + instructions: 3393182 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_u32: total: calls: 1 - instructions: 2509577 + instructions: 2509589 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_u64: total: calls: 1 - instructions: 2517637 + instructions: 2517649 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_1024: total: calls: 1 - instructions: 108732078 + instructions: 108732114 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_128: total: calls: 1 - instructions: 18186173 + instructions: 18186209 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_16: total: calls: 1 - instructions: 3649571 + instructions: 3649607 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_256: total: calls: 1 - instructions: 31431236 + instructions: 31431272 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_32: total: calls: 1 - instructions: 4924379 + instructions: 4924415 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_512: total: calls: 1 - instructions: 57197691 + instructions: 57197727 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_64: total: calls: 1 - instructions: 10301120 + instructions: 10301156 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_8: total: calls: 1 - instructions: 3393654 + instructions: 3393690 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_u32: total: calls: 1 - instructions: 2507084 + instructions: 2507096 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_u64: total: calls: 1 - instructions: 2513147 + instructions: 2513159 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index 75d6c3ea..d7893f2f 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 1222474992 - heap_increase: 3233 + instructions: 799994369 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 5436783501 - heap_increase: 1604 + instructions: 4994493807 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 134664612836 + instructions: 133181274872 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -44,42 +44,42 @@ benches: read_chunks_vec_1: total: calls: 1 - instructions: 1363286440 + instructions: 1363286443 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: calls: 1 - instructions: 1378474886 + instructions: 1378477886 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: calls: 1 - instructions: 4721968969 + instructions: 4724968969 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: calls: 1 - instructions: 1072804877 - heap_increase: 3233 + instructions: 650634842 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4930875404 - heap_increase: 1604 + instructions: 4494413889 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 90718534143 + instructions: 89235197068 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -107,21 +107,21 @@ benches: write_chunks_vec_1: total: calls: 1 - instructions: 1257790971 + instructions: 1257790974 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: calls: 1 - instructions: 1272012679 + instructions: 1272015679 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: calls: 1 - instructions: 3712427316 + instructions: 3715427316 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} diff --git a/benchmarks/vec/canbench_results.yml b/benchmarks/vec/canbench_results.yml index 643046b1..fc4e03cc 100644 --- a/benchmarks/vec/canbench_results.yml +++ b/benchmarks/vec/canbench_results.yml @@ -107,7 +107,7 @@ benches: vec_insert_u64: total: calls: 1 - instructions: 5869531 + instructions: 5359531 heap_increase: 0 stable_memory_increase: 1 scopes: {} From 05a0b1e15fdc3d3445828a69325ad9ddd4633374 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Thu, 12 Jun 2025 09:30:08 +0200 Subject: [PATCH 24/26] --persist --- benchmarks/btreemap/canbench_results.yml | 262 +++++++++++------------ benchmarks/btreeset/canbench_results.yml | 176 +++++++-------- benchmarks/compare/canbench_results.yml | 32 +-- benchmarks/vec/canbench_results.yml | 2 +- 4 files changed, 236 insertions(+), 236 deletions(-) diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 5a8f2cfd..9335445d 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -198,7 +198,7 @@ benches: btreemap_v2_contains_vec_32_128: total: calls: 1 - instructions: 428712867 + instructions: 428712852 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -562,14 +562,14 @@ benches: btreemap_v2_insert_10mib_values: total: calls: 1 - instructions: 5258466146 - heap_increase: 322 + instructions: 4414243466 + heap_increase: 161 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: calls: 1 - instructions: 445545228 + instructions: 444987033 heap_increase: 0 stable_memory_increase: 4 scopes: {} @@ -590,7 +590,7 @@ benches: btreemap_v2_insert_blob_16_128: total: calls: 1 - instructions: 495692268 + instructions: 495692313 heap_increase: 0 stable_memory_increase: 24 scopes: {} @@ -618,7 +618,7 @@ benches: btreemap_v2_insert_blob_32_16: total: calls: 1 - instructions: 526875646 + instructions: 526875638 heap_increase: 0 stable_memory_increase: 11 scopes: {} @@ -639,7 +639,7 @@ benches: btreemap_v2_insert_blob_32_4: total: calls: 1 - instructions: 517264997 + instructions: 517264825 heap_increase: 0 stable_memory_increase: 8 scopes: {} @@ -667,7 +667,7 @@ benches: btreemap_v2_insert_blob_4_128: total: calls: 1 - instructions: 416771299 + instructions: 416771929 heap_increase: 0 stable_memory_increase: 13 scopes: {} @@ -688,154 +688,154 @@ benches: btreemap_v2_insert_blob_8_128: total: calls: 1 - instructions: 468148404 + instructions: 468148494 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_u64_blob8: total: calls: 1 - instructions: 419629591 + instructions: 414538939 heap_increase: 0 stable_memory_increase: 5 scopes: {} btreemap_v2_insert_u64_u64: total: calls: 1 - instructions: 427776798 + instructions: 422120086 heap_increase: 0 stable_memory_increase: 6 scopes: {} btreemap_v2_insert_u64_vec8: total: calls: 1 - instructions: 426996018 + instructions: 417793976 heap_increase: 0 stable_memory_increase: 21 scopes: {} btreemap_v2_insert_vec8_u64: total: calls: 1 - instructions: 600791435 + instructions: 600241480 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_1024_128: total: calls: 1 - instructions: 2736605215 + instructions: 2724541315 heap_increase: 0 stable_memory_increase: 193 scopes: {} btreemap_v2_insert_vec_128_128: total: calls: 1 - instructions: 1014513310 + instructions: 1004230958 heap_increase: 0 stable_memory_increase: 51 scopes: {} btreemap_v2_insert_vec_16_128: total: calls: 1 - instructions: 723411190 + instructions: 712421967 heap_increase: 0 stable_memory_increase: 31 scopes: {} btreemap_v2_insert_vec_256_128: total: calls: 1 - instructions: 1398080885 + instructions: 1386961585 heap_increase: 0 stable_memory_increase: 71 scopes: {} btreemap_v2_insert_vec_32_1024: total: calls: 1 - instructions: 1222003718 + instructions: 1172134598 heap_increase: 0 stable_memory_increase: 171 scopes: {} btreemap_v2_insert_vec_32_128: total: calls: 1 - instructions: 768255873 + instructions: 758019348 heap_increase: 0 stable_memory_increase: 33 scopes: {} btreemap_v2_insert_vec_32_16: total: calls: 1 - instructions: 677660003 + instructions: 672563151 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_256: total: calls: 1 - instructions: 884422718 + instructions: 866698572 heap_increase: 0 stable_memory_increase: 54 scopes: {} btreemap_v2_insert_vec_32_32: total: calls: 1 - instructions: 673498276 + instructions: 667983184 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_4: total: calls: 1 - instructions: 673498948 + instructions: 666709196 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_512: total: calls: 1 - instructions: 998460439 + instructions: 969855594 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_vec_32_64: total: calls: 1 - instructions: 706175743 + instructions: 699344644 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_vec_32_8: total: calls: 1 - instructions: 672527454 + instructions: 666308283 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_4_128: total: calls: 1 - instructions: 619760400 + instructions: 608538730 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_512_128: total: calls: 1 - instructions: 1852718372 + instructions: 1840482053 heap_increase: 0 stable_memory_increase: 112 scopes: {} btreemap_v2_insert_vec_64_128: total: calls: 1 - instructions: 855970280 + instructions: 845897952 heap_increase: 0 stable_memory_increase: 41 scopes: {} btreemap_v2_insert_vec_8_128: total: calls: 1 - instructions: 680099398 + instructions: 669688389 heap_increase: 0 stable_memory_increase: 23 scopes: {} @@ -912,77 +912,77 @@ benches: btreemap_v2_mem_manager_insert_blob512_u64: total: calls: 1 - instructions: 3145341377 + instructions: 3144791193 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_blob512: total: calls: 1 - instructions: 634310958 + instructions: 629203086 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_u64: total: calls: 1 - instructions: 547556916 + instructions: 541900204 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_vec512: total: calls: 1 - instructions: 875570977 + instructions: 843362543 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_vec512_u64: total: calls: 1 - instructions: 1961516479 + instructions: 1959334611 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_blob512_u64: total: calls: 1 - instructions: 4345562792 + instructions: 4345562448 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_blob512: total: calls: 1 - instructions: 927125023 + instructions: 918002811 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_u64: total: calls: 1 - instructions: 783432091 + instructions: 774336355 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_vec512: total: calls: 1 - instructions: 1245826752 + instructions: 1235311368 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_vec512_u64: total: calls: 1 - instructions: 3075940121 + instructions: 3072998033 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_blob8_u64: total: calls: 1 - instructions: 617552320 + instructions: 617525736 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1003,7 +1003,7 @@ benches: btreemap_v2_pop_first_blob_16_128: total: calls: 1 - instructions: 759917150 + instructions: 759917146 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1031,7 +1031,7 @@ benches: btreemap_v2_pop_first_blob_32_16: total: calls: 1 - instructions: 816200947 + instructions: 816200943 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1052,7 +1052,7 @@ benches: btreemap_v2_pop_first_blob_32_4: total: calls: 1 - instructions: 799101493 + instructions: 799101117 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1073,7 +1073,7 @@ benches: btreemap_v2_pop_first_blob_32_8: total: calls: 1 - instructions: 817715654 + instructions: 817715606 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1087,7 +1087,7 @@ benches: btreemap_v2_pop_first_blob_512_128: total: calls: 1 - instructions: 4633015947 + instructions: 4633015939 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1108,21 +1108,21 @@ benches: btreemap_v2_pop_first_u64_blob8: total: calls: 1 - instructions: 699801821 + instructions: 692238497 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_u64: total: calls: 1 - instructions: 711281840 + instructions: 703685884 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_vec8: total: calls: 1 - instructions: 702348001 + instructions: 694788529 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1136,42 +1136,42 @@ benches: btreemap_v2_pop_first_vec_1024_128: total: calls: 1 - instructions: 4021467869 + instructions: 4018498913 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_128_128: total: calls: 1 - instructions: 1503839967 + instructions: 1502646431 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_16_128: total: calls: 1 - instructions: 1041501409 + instructions: 1041313741 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_256_128: total: calls: 1 - instructions: 2004716786 + instructions: 2002757542 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_1024: total: calls: 1 - instructions: 1686400508 + instructions: 1684807804 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_128: total: calls: 1 - instructions: 1103728679 + instructions: 1103431102 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1185,7 +1185,7 @@ benches: btreemap_v2_pop_first_vec_32_256: total: calls: 1 - instructions: 1223270586 + instructions: 1222529886 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1206,14 +1206,14 @@ benches: btreemap_v2_pop_first_vec_32_512: total: calls: 1 - instructions: 1373219637 + instructions: 1372107093 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_32_64: total: calls: 1 - instructions: 989996558 + instructions: 989955238 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1227,35 +1227,35 @@ benches: btreemap_v2_pop_first_vec_4_128: total: calls: 1 - instructions: 548663809 + instructions: 548589797 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_512_128: total: calls: 1 - instructions: 2693639897 + instructions: 2691148701 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_64_128: total: calls: 1 - instructions: 1242491828 + instructions: 1241957624 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_vec_8_128: total: calls: 1 - instructions: 862886019 + instructions: 862745876 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_blob8_u64: total: calls: 1 - instructions: 595853647 + instructions: 595826027 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1325,7 +1325,7 @@ benches: btreemap_v2_pop_last_blob_32_4: total: calls: 1 - instructions: 776952622 + instructions: 776952126 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1346,7 +1346,7 @@ benches: btreemap_v2_pop_last_blob_32_8: total: calls: 1 - instructions: 790946609 + instructions: 790946565 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1374,28 +1374,28 @@ benches: btreemap_v2_pop_last_blob_8_128: total: calls: 1 - instructions: 615779069 + instructions: 615779065 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_blob8: total: calls: 1 - instructions: 678338308 + instructions: 670770920 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_u64: total: calls: 1 - instructions: 689260403 + instructions: 681654379 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_vec8: total: calls: 1 - instructions: 680731667 + instructions: 673168643 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1409,42 +1409,42 @@ benches: btreemap_v2_pop_last_vec_1024_128: total: calls: 1 - instructions: 4239103675 + instructions: 4236129487 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_128_128: total: calls: 1 - instructions: 1509202438 + instructions: 1508005318 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_16_128: total: calls: 1 - instructions: 1022271781 + instructions: 1022083136 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_256_128: total: calls: 1 - instructions: 2065405263 + instructions: 2063446347 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_1024: total: calls: 1 - instructions: 1660630528 + instructions: 1659038728 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_128: total: calls: 1 - instructions: 1078545809 + instructions: 1078246324 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1458,7 +1458,7 @@ benches: btreemap_v2_pop_last_vec_32_256: total: calls: 1 - instructions: 1199037861 + instructions: 1198297165 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1479,14 +1479,14 @@ benches: btreemap_v2_pop_last_vec_32_512: total: calls: 1 - instructions: 1357630035 + instructions: 1356519035 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_32_64: total: calls: 1 - instructions: 968549930 + instructions: 968507554 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1500,105 +1500,105 @@ benches: btreemap_v2_pop_last_vec_4_128: total: calls: 1 - instructions: 534270272 + instructions: 534198256 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_512_128: total: calls: 1 - instructions: 2793078247 + instructions: 2790585867 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_64_128: total: calls: 1 - instructions: 1230553233 + instructions: 1230020877 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_vec_8_128: total: calls: 1 - instructions: 862573315 + instructions: 862433228 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_0b: total: calls: 1 - instructions: 17322 + instructions: 17220 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_10kib: total: calls: 1 - instructions: 2651807 + instructions: 2576893 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_20_10mib: total: calls: 1 - instructions: 20577326 + instructions: 20576208 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_0b: total: calls: 1 - instructions: 17568 + instructions: 17466 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_10kib: total: calls: 1 - instructions: 57016599 + instructions: 56941685 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_20_10mib: total: calls: 1 - instructions: 1105821929 + instructions: 1105820811 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_0b: total: calls: 1 - instructions: 17582 + instructions: 17480 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_10kib: total: calls: 1 - instructions: 57028595 + instructions: 56953681 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_20_10mib: total: calls: 1 - instructions: 1105822165 + instructions: 1105821047 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_10mib_values: total: calls: 1 - instructions: 4745601912 + instructions: 4738884700 heap_increase: 0 stable_memory_increase: 657 scopes: {} btreemap_v2_remove_blob8_u64: total: calls: 1 - instructions: 596923486 + instructions: 596895442 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1654,7 +1654,7 @@ benches: btreemap_v2_remove_blob_32_256: total: calls: 1 - instructions: 799332929 + instructions: 799332913 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1668,7 +1668,7 @@ benches: btreemap_v2_remove_blob_32_4: total: calls: 1 - instructions: 712636345 + instructions: 712636077 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1689,7 +1689,7 @@ benches: btreemap_v2_remove_blob_32_8: total: calls: 1 - instructions: 712282512 + instructions: 712282460 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1724,21 +1724,21 @@ benches: btreemap_v2_remove_u64_blob8: total: calls: 1 - instructions: 591289236 + instructions: 582340960 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_u64: total: calls: 1 - instructions: 612365812 + instructions: 603270076 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_vec8: total: calls: 1 - instructions: 596864259 + instructions: 587919795 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1752,42 +1752,42 @@ benches: btreemap_v2_remove_vec_1024_128: total: calls: 1 - instructions: 4442411298 + instructions: 4438860682 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_128_128: total: calls: 1 - instructions: 1419451888 + instructions: 1418057388 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_16_128: total: calls: 1 - instructions: 926959671 + instructions: 926755003 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_256_128: total: calls: 1 - instructions: 2218247226 + instructions: 2215939794 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_1024: total: calls: 1 - instructions: 1693369363 + instructions: 1691463667 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_128: total: calls: 1 - instructions: 1039023874 + instructions: 1038694882 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1801,7 +1801,7 @@ benches: btreemap_v2_remove_vec_32_256: total: calls: 1 - instructions: 1244959916 + instructions: 1244067984 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1822,175 +1822,175 @@ benches: btreemap_v2_remove_vec_32_512: total: calls: 1 - instructions: 1402127537 + instructions: 1400789105 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_64: total: calls: 1 - instructions: 981819349 + instructions: 981774893 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_32_8: total: calls: 1 - instructions: 869697893 + instructions: 869697878 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_4_128: total: calls: 1 - instructions: 668639445 + instructions: 668557997 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_512_128: total: calls: 1 - instructions: 3050432564 + instructions: 3047442828 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_64_128: total: calls: 1 - instructions: 1191118692 + instructions: 1190503436 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_vec_8_128: total: calls: 1 - instructions: 831170271 + instructions: 831016555 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_0b: total: calls: 1 - instructions: 1456524 + instructions: 1380958 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_10kib: total: calls: 1 - instructions: 56819347 + instructions: 56743813 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_20_10mib: total: calls: 1 - instructions: 1103714524 + instructions: 1103713183 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_0b: total: calls: 1 - instructions: 1457032 + instructions: 1382580 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_10kib: total: calls: 1 - instructions: 56796287 + instructions: 56722199 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_20_10mib: total: calls: 1 - instructions: 1103714083 + instructions: 1103712762 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_0b: total: calls: 1 - instructions: 1193504 + instructions: 1104356 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_10kib: total: calls: 1 - instructions: 2603078 + instructions: 2514294 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_20_10mib: total: calls: 1 - instructions: 18470078 + instructions: 18468498 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_0b: total: calls: 1 - instructions: 1193326 + instructions: 1105970 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_10kib: total: calls: 1 - instructions: 2581338 + instructions: 2494346 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_20_10mib: total: calls: 1 - instructions: 18470064 + instructions: 18468514 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_0b: total: calls: 1 - instructions: 1433862 + instructions: 1358296 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_10kib: total: calls: 1 - instructions: 56796685 + instructions: 56721151 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_20_10mib: total: calls: 1 - instructions: 1103714074 + instructions: 1103712733 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_0b: total: calls: 1 - instructions: 1435034 + instructions: 1360582 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_10kib: total: calls: 1 - instructions: 56774289 + instructions: 56700201 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_20_10mib: total: calls: 1 - instructions: 1103713645 + instructions: 1103712324 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/btreeset/canbench_results.yml b/benchmarks/btreeset/canbench_results.yml index 7c2c30a1..1968303e 100644 --- a/benchmarks/btreeset/canbench_results.yml +++ b/benchmarks/btreeset/canbench_results.yml @@ -2,196 +2,196 @@ benches: btreeset_insert_blob_1024: total: calls: 1 - instructions: 7286178998 + instructions: 7286690242 heap_increase: 1 stable_memory_increase: 256 scopes: {} btreeset_insert_blob_128: total: calls: 1 - instructions: 1655004300 + instructions: 1655515544 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_16: total: calls: 1 - instructions: 742489208 + instructions: 742764840 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_256: total: calls: 1 - instructions: 2466538169 + instructions: 2467049413 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_32: total: calls: 1 - instructions: 838226077 + instructions: 838550745 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_512: total: calls: 1 - instructions: 4070669124 + instructions: 4071180368 heap_increase: 0 stable_memory_increase: 128 scopes: {} btreeset_insert_blob_64: total: calls: 1 - instructions: 999868179 + instructions: 1000266143 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_blob_8: total: calls: 1 - instructions: 720687797 + instructions: 720924777 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_u32: total: calls: 1 - instructions: 575071142 + instructions: 569311458 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_insert_u64: total: calls: 1 - instructions: 594277483 + instructions: 588524339 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_1024: total: calls: 1 - instructions: 108717444 + instructions: 108717480 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_128: total: calls: 1 - instructions: 18182291 + instructions: 18182327 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_16: total: calls: 1 - instructions: 3647439 + instructions: 3647475 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_256: total: calls: 1 - instructions: 31425818 + instructions: 31425854 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_32: total: calls: 1 - instructions: 4922203 + instructions: 4922239 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_512: total: calls: 1 - instructions: 57189201 + instructions: 57189237 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_64: total: calls: 1 - instructions: 10298006 + instructions: 10298042 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_blob_8: total: calls: 1 - instructions: 3391543 + instructions: 3391579 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_u32: total: calls: 1 - instructions: 2493469 + instructions: 2493481 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_intersection_u64: total: calls: 1 - instructions: 2511552 + instructions: 2511564 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_1024: total: calls: 1 - instructions: 52538676 + instructions: 52538700 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_128: total: calls: 1 - instructions: 9488928 + instructions: 9488952 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_16: total: calls: 1 - instructions: 2342890 + instructions: 2342914 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_256: total: calls: 1 - instructions: 15786633 + instructions: 15786657 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_32: total: calls: 1 - instructions: 3010030 + instructions: 3010054 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_512: total: calls: 1 - instructions: 28037606 + instructions: 28037630 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_64: total: calls: 1 - instructions: 5459364 + instructions: 5459388 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_disjoint_blob_8: total: calls: 1 - instructions: 2251564 + instructions: 2251588 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -282,420 +282,420 @@ benches: btreeset_is_superset_blob_1024: total: calls: 1 - instructions: 91980389 + instructions: 91980425 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_128: total: calls: 1 - instructions: 15754409 + instructions: 15754445 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_16: total: calls: 1 - instructions: 3567062 + instructions: 3567098 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_256: total: calls: 1 - instructions: 26966889 + instructions: 26966925 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_32: total: calls: 1 - instructions: 4791847 + instructions: 4791883 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_512: total: calls: 1 - instructions: 48630699 + instructions: 48630735 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_64: total: calls: 1 - instructions: 8895008 + instructions: 8895044 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_blob_8: total: calls: 1 - instructions: 3336630 + instructions: 3336666 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_u32: total: calls: 1 - instructions: 2492181 + instructions: 2492193 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_is_superset_u64: total: calls: 1 - instructions: 2510627 + instructions: 2510639 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_1024: total: calls: 1 - instructions: 435124557 + instructions: 435128581 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_128: total: calls: 1 - instructions: 77509273 + instructions: 77513297 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_16: total: calls: 1 - instructions: 17503860 + instructions: 17507874 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_256: total: calls: 1 - instructions: 129682710 + instructions: 129686734 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_32: total: calls: 1 - instructions: 23960282 + instructions: 23964306 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_512: total: calls: 1 - instructions: 231602184 + instructions: 231606208 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_64: total: calls: 1 - instructions: 42403250 + instructions: 42407274 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_blob_8: total: calls: 1 - instructions: 16845506 + instructions: 16849520 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_u32: total: calls: 1 - instructions: 13548159 + instructions: 13552153 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_iter_u64: total: calls: 1 - instructions: 13630143 + instructions: 13634137 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_1024: total: calls: 1 - instructions: 263014476 + instructions: 263016896 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_128: total: calls: 1 - instructions: 47360430 + instructions: 47362850 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_16: total: calls: 1 - instructions: 11547595 + instructions: 11550015 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_256: total: calls: 1 - instructions: 80329124 + instructions: 80331544 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_32: total: calls: 1 - instructions: 15397632 + instructions: 15400052 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_512: total: calls: 1 - instructions: 140683370 + instructions: 140685790 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_64: total: calls: 1 - instructions: 26557443 + instructions: 26559863 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_blob_8: total: calls: 1 - instructions: 11163966 + instructions: 11166386 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_u32: total: calls: 1 - instructions: 8527562 + instructions: 8529972 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_range_u64: total: calls: 1 - instructions: 8578350 + instructions: 8580760 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_1024: total: calls: 1 - instructions: 7742324318 + instructions: 7742824218 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_128: total: calls: 1 - instructions: 1686815315 + instructions: 1687315215 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_16: total: calls: 1 - instructions: 734847603 + instructions: 735109295 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_256: total: calls: 1 - instructions: 2554095644 + instructions: 2554595544 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_32: total: calls: 1 - instructions: 828046990 + instructions: 828360358 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_512: total: calls: 1 - instructions: 4281038278 + instructions: 4281538178 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_64: total: calls: 1 - instructions: 1008859628 + instructions: 1009246256 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_blob_8: total: calls: 1 - instructions: 713093332 + instructions: 713356340 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_u32: total: calls: 1 - instructions: 565270487 + instructions: 560012231 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_remove_u64: total: calls: 1 - instructions: 588839168 + instructions: 583587452 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_1024: total: calls: 1 - instructions: 108731570 + instructions: 108731606 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_128: total: calls: 1 - instructions: 18185665 + instructions: 18185701 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_16: total: calls: 1 - instructions: 3649063 + instructions: 3649099 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_256: total: calls: 1 - instructions: 31430728 + instructions: 31430764 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_32: total: calls: 1 - instructions: 4923871 + instructions: 4923907 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_512: total: calls: 1 - instructions: 57197183 + instructions: 57197219 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_64: total: calls: 1 - instructions: 10300612 + instructions: 10300648 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_blob_8: total: calls: 1 - instructions: 3393146 + instructions: 3393182 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_u32: total: calls: 1 - instructions: 2509577 + instructions: 2509589 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_symmetric_difference_u64: total: calls: 1 - instructions: 2517637 + instructions: 2517649 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_1024: total: calls: 1 - instructions: 108732078 + instructions: 108732114 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_128: total: calls: 1 - instructions: 18186173 + instructions: 18186209 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_16: total: calls: 1 - instructions: 3649571 + instructions: 3649607 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_256: total: calls: 1 - instructions: 31431236 + instructions: 31431272 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_32: total: calls: 1 - instructions: 4924379 + instructions: 4924415 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_512: total: calls: 1 - instructions: 57197691 + instructions: 57197727 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_64: total: calls: 1 - instructions: 10301120 + instructions: 10301156 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_blob_8: total: calls: 1 - instructions: 3393654 + instructions: 3393690 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_u32: total: calls: 1 - instructions: 2507084 + instructions: 2507096 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreeset_union_u64: total: calls: 1 - instructions: 2513147 + instructions: 2513159 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index 90d96d2d..ef360c38 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 1222164216 - heap_increase: 3233 + instructions: 799994283 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 5422664112 - heap_increase: 1604 + instructions: 4994493721 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 134584899612 + instructions: 133181274786 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -44,42 +44,42 @@ benches: read_chunks_vec_1: total: calls: 1 - instructions: 1363286410 + instructions: 1363286413 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: calls: 1 - instructions: 1378474856 + instructions: 1378477856 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: calls: 1 - instructions: 4721968939 + instructions: 4724968939 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: calls: 1 - instructions: 1072804721 - heap_increase: 3233 + instructions: 650634806 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4922584226 - heap_increase: 1604 + instructions: 4494413853 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 90638821840 + instructions: 89235197032 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -107,21 +107,21 @@ benches: write_chunks_vec_1: total: calls: 1 - instructions: 1257790956 + instructions: 1257790959 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: calls: 1 - instructions: 1272012664 + instructions: 1272015664 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: calls: 1 - instructions: 3712427301 + instructions: 3715427301 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} diff --git a/benchmarks/vec/canbench_results.yml b/benchmarks/vec/canbench_results.yml index d1245455..bd83ad43 100644 --- a/benchmarks/vec/canbench_results.yml +++ b/benchmarks/vec/canbench_results.yml @@ -107,7 +107,7 @@ benches: vec_insert_u64: total: calls: 1 - instructions: 5869519 + instructions: 5359519 heap_increase: 0 stable_memory_increase: 1 scopes: {} From 799af706a1533291d93f83b1d1d05f31e01708f4 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Thu, 12 Jun 2025 14:22:20 +0200 Subject: [PATCH 25/26] --persist --- benchmarks/btreemap/canbench_results.yml | 158 +++++++++++------------ benchmarks/compare/canbench_results.yml | 32 ++--- 2 files changed, 95 insertions(+), 95 deletions(-) diff --git a/benchmarks/btreemap/canbench_results.yml b/benchmarks/btreemap/canbench_results.yml index 6cd4d8db..9335445d 100644 --- a/benchmarks/btreemap/canbench_results.yml +++ b/benchmarks/btreemap/canbench_results.yml @@ -198,7 +198,7 @@ benches: btreemap_v2_contains_vec_32_128: total: calls: 1 - instructions: 428712867 + instructions: 428712852 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -562,14 +562,14 @@ benches: btreemap_v2_insert_10mib_values: total: calls: 1 - instructions: 5253123874 - heap_increase: 322 + instructions: 4414243466 + heap_increase: 161 stable_memory_increase: 3613 scopes: {} btreemap_v2_insert_blob8_u64: total: calls: 1 - instructions: 445536988 + instructions: 444987033 heap_increase: 0 stable_memory_increase: 4 scopes: {} @@ -590,7 +590,7 @@ benches: btreemap_v2_insert_blob_16_128: total: calls: 1 - instructions: 495692268 + instructions: 495692313 heap_increase: 0 stable_memory_increase: 24 scopes: {} @@ -667,7 +667,7 @@ benches: btreemap_v2_insert_blob_4_128: total: calls: 1 - instructions: 416771299 + instructions: 416771929 heap_increase: 0 stable_memory_increase: 13 scopes: {} @@ -688,154 +688,154 @@ benches: btreemap_v2_insert_blob_8_128: total: calls: 1 - instructions: 468148404 + instructions: 468148494 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_u64_blob8: total: calls: 1 - instructions: 419628571 + instructions: 414538939 heap_increase: 0 stable_memory_increase: 5 scopes: {} btreemap_v2_insert_u64_u64: total: calls: 1 - instructions: 427767878 + instructions: 422120086 heap_increase: 0 stable_memory_increase: 6 scopes: {} btreemap_v2_insert_u64_vec8: total: calls: 1 - instructions: 426996018 + instructions: 417793976 heap_increase: 0 stable_memory_increase: 21 scopes: {} btreemap_v2_insert_vec8_u64: total: calls: 1 - instructions: 600791435 + instructions: 600241480 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_1024_128: total: calls: 1 - instructions: 2734644691 + instructions: 2724541315 heap_increase: 0 stable_memory_increase: 193 scopes: {} btreemap_v2_insert_vec_128_128: total: calls: 1 - instructions: 1013642430 + instructions: 1004230958 heap_increase: 0 stable_memory_increase: 51 scopes: {} btreemap_v2_insert_vec_16_128: total: calls: 1 - instructions: 723246682 + instructions: 712421967 heap_increase: 0 stable_memory_increase: 31 scopes: {} btreemap_v2_insert_vec_256_128: total: calls: 1 - instructions: 1396732537 + instructions: 1386961585 heap_increase: 0 stable_memory_increase: 71 scopes: {} btreemap_v2_insert_vec_32_1024: total: calls: 1 - instructions: 1220926606 + instructions: 1172134598 heap_increase: 0 stable_memory_increase: 171 scopes: {} btreemap_v2_insert_vec_32_128: total: calls: 1 - instructions: 768005749 + instructions: 758019348 heap_increase: 0 stable_memory_increase: 33 scopes: {} btreemap_v2_insert_vec_32_16: total: calls: 1 - instructions: 677660003 + instructions: 672563151 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_256: total: calls: 1 - instructions: 883874106 + instructions: 866698572 heap_increase: 0 stable_memory_increase: 54 scopes: {} btreemap_v2_insert_vec_32_32: total: calls: 1 - instructions: 673498276 + instructions: 667983184 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_4: total: calls: 1 - instructions: 673498948 + instructions: 666709196 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_32_512: total: calls: 1 - instructions: 997682895 + instructions: 969855594 heap_increase: 0 stable_memory_increase: 91 scopes: {} btreemap_v2_insert_vec_32_64: total: calls: 1 - instructions: 706148903 + instructions: 699344644 heap_increase: 0 stable_memory_increase: 24 scopes: {} btreemap_v2_insert_vec_32_8: total: calls: 1 - instructions: 672527454 + instructions: 666308283 heap_increase: 0 stable_memory_increase: 20 scopes: {} btreemap_v2_insert_vec_4_128: total: calls: 1 - instructions: 619661464 + instructions: 608538730 heap_increase: 0 stable_memory_increase: 16 scopes: {} btreemap_v2_insert_vec_512_128: total: calls: 1 - instructions: 1851040948 + instructions: 1840482053 heap_increase: 0 stable_memory_increase: 112 scopes: {} btreemap_v2_insert_vec_64_128: total: calls: 1 - instructions: 855541288 + instructions: 845897952 heap_increase: 0 stable_memory_increase: 41 scopes: {} btreemap_v2_insert_vec_8_128: total: calls: 1 - instructions: 679949414 + instructions: 669688389 heap_increase: 0 stable_memory_increase: 23 scopes: {} @@ -912,35 +912,35 @@ benches: btreemap_v2_mem_manager_insert_blob512_u64: total: calls: 1 - instructions: 3145341193 + instructions: 3144791193 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_blob512: total: calls: 1 - instructions: 634310958 + instructions: 629203086 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_u64: total: calls: 1 - instructions: 547547996 + instructions: 541900204 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_u64_vec512: total: calls: 1 - instructions: 874783181 + instructions: 843362543 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_insert_vec512_u64: total: calls: 1 - instructions: 1959884611 + instructions: 1959334611 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -954,21 +954,21 @@ benches: btreemap_v2_mem_manager_remove_u64_blob512: total: calls: 1 - instructions: 927125019 + instructions: 918002811 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_u64: total: calls: 1 - instructions: 783398371 + instructions: 774336355 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_mem_manager_remove_u64_vec512: total: calls: 1 - instructions: 1244433576 + instructions: 1235311368 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1108,21 +1108,21 @@ benches: btreemap_v2_pop_first_u64_blob8: total: calls: 1 - instructions: 699797969 + instructions: 692238497 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_u64: total: calls: 1 - instructions: 711251164 + instructions: 703685884 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_first_u64_vec8: total: calls: 1 - instructions: 702348001 + instructions: 694788529 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1171,7 +1171,7 @@ benches: btreemap_v2_pop_first_vec_32_128: total: calls: 1 - instructions: 1103431087 + instructions: 1103431102 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1248,7 +1248,7 @@ benches: btreemap_v2_pop_first_vec_8_128: total: calls: 1 - instructions: 862745891 + instructions: 862745876 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1381,21 +1381,21 @@ benches: btreemap_v2_pop_last_u64_blob8: total: calls: 1 - instructions: 678333944 + instructions: 670770920 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_u64: total: calls: 1 - instructions: 689228779 + instructions: 681654379 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_pop_last_u64_vec8: total: calls: 1 - instructions: 680731667 + instructions: 673168643 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1423,7 +1423,7 @@ benches: btreemap_v2_pop_last_vec_16_128: total: calls: 1 - instructions: 1022083121 + instructions: 1022083136 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1444,7 +1444,7 @@ benches: btreemap_v2_pop_last_vec_32_128: total: calls: 1 - instructions: 1078246309 + instructions: 1078246324 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1521,77 +1521,77 @@ benches: btreemap_v2_pop_last_vec_8_128: total: calls: 1 - instructions: 862433243 + instructions: 862433228 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_0b: total: calls: 1 - instructions: 17322 + instructions: 17220 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_1k_10kib: total: calls: 1 - instructions: 2651807 + instructions: 2576893 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_count_20_10mib: total: calls: 1 - instructions: 20577326 + instructions: 20576208 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_0b: total: calls: 1 - instructions: 17568 + instructions: 17466 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_1k_10kib: total: calls: 1 - instructions: 57016599 + instructions: 56941685 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_key_sum_20_10mib: total: calls: 1 - instructions: 1105821929 + instructions: 1105820811 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_0b: total: calls: 1 - instructions: 17582 + instructions: 17480 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_1k_10kib: total: calls: 1 - instructions: 57028595 + instructions: 56953681 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_range_value_sum_20_10mib: total: calls: 1 - instructions: 1105822165 + instructions: 1105821047 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_10mib_values: total: calls: 1 - instructions: 4738893196 + instructions: 4738884700 heap_increase: 0 stable_memory_increase: 657 scopes: {} @@ -1724,21 +1724,21 @@ benches: btreemap_v2_remove_u64_blob8: total: calls: 1 - instructions: 591285424 + instructions: 582340960 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_u64: total: calls: 1 - instructions: 612332092 + instructions: 603270076 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_remove_u64_vec8: total: calls: 1 - instructions: 596864259 + instructions: 587919795 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1836,7 +1836,7 @@ benches: btreemap_v2_remove_vec_32_8: total: calls: 1 - instructions: 869697893 + instructions: 869697878 heap_increase: 0 stable_memory_increase: 0 scopes: {} @@ -1871,126 +1871,126 @@ benches: btreemap_v2_scan_iter_1k_0b: total: calls: 1 - instructions: 1456524 + instructions: 1380958 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_1k_10kib: total: calls: 1 - instructions: 56819347 + instructions: 56743813 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_20_10mib: total: calls: 1 - instructions: 1103714524 + instructions: 1103713183 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_0b: total: calls: 1 - instructions: 1457032 + instructions: 1382580 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_1k_10kib: total: calls: 1 - instructions: 56796287 + instructions: 56722199 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_iter_rev_20_10mib: total: calls: 1 - instructions: 1103714083 + instructions: 1103712762 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_0b: total: calls: 1 - instructions: 1193504 + instructions: 1104356 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_1k_10kib: total: calls: 1 - instructions: 2603078 + instructions: 2514294 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_20_10mib: total: calls: 1 - instructions: 18470078 + instructions: 18468498 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_0b: total: calls: 1 - instructions: 1193326 + instructions: 1105970 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_1k_10kib: total: calls: 1 - instructions: 2581338 + instructions: 2494346 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_keys_rev_20_10mib: total: calls: 1 - instructions: 18470064 + instructions: 18468514 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_0b: total: calls: 1 - instructions: 1433862 + instructions: 1358296 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_1k_10kib: total: calls: 1 - instructions: 56796685 + instructions: 56721151 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_20_10mib: total: calls: 1 - instructions: 1103714074 + instructions: 1103712733 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_0b: total: calls: 1 - instructions: 1435034 + instructions: 1360582 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_1k_10kib: total: calls: 1 - instructions: 56774289 + instructions: 56700201 heap_increase: 0 stable_memory_increase: 0 scopes: {} btreemap_v2_scan_values_rev_20_10mib: total: calls: 1 - instructions: 1103713645 + instructions: 1103712324 heap_increase: 0 stable_memory_increase: 0 scopes: {} diff --git a/benchmarks/compare/canbench_results.yml b/benchmarks/compare/canbench_results.yml index f35dfed4..00db9bca 100644 --- a/benchmarks/compare/canbench_results.yml +++ b/benchmarks/compare/canbench_results.yml @@ -2,21 +2,21 @@ benches: read_chunks_btreemap_1: total: calls: 1 - instructions: 1219162510 - heap_increase: 3233 + instructions: 799994339 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1k: total: calls: 1 - instructions: 5415231039 - heap_increase: 1604 + instructions: 4994472213 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} read_chunks_btreemap_1m: total: calls: 1 - instructions: 134599901409 + instructions: 133159275732 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -44,42 +44,42 @@ benches: read_chunks_vec_1: total: calls: 1 - instructions: 1363286421 + instructions: 1363286413 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1k: total: calls: 1 - instructions: 1378474867 + instructions: 1378477856 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} read_chunks_vec_1m: total: calls: 1 - instructions: 4721968950 + instructions: 4724968939 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1: total: calls: 1 - instructions: 1069802998 - heap_increase: 3233 + instructions: 650634827 + heap_increase: 1635 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1k: total: calls: 1 - instructions: 4915151136 - heap_increase: 1604 + instructions: 4494392310 + heap_increase: 1602 stable_memory_increase: 1665 scopes: {} write_chunks_btreemap_1m: total: calls: 1 - instructions: 90653823620 + instructions: 89213197943 heap_increase: 1892 stable_memory_increase: 3201 scopes: {} @@ -107,21 +107,21 @@ benches: write_chunks_vec_1: total: calls: 1 - instructions: 1257790953 + instructions: 1257790959 heap_increase: 3202 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1k: total: calls: 1 - instructions: 1272012661 + instructions: 1272015664 heap_increase: 3200 stable_memory_increase: 1665 scopes: {} write_chunks_vec_1m: total: calls: 1 - instructions: 3712427298 + instructions: 3715427301 heap_increase: 3784 stable_memory_increase: 1665 scopes: {} From a0924230e6362aaf8115929e10c8e05c6b164eb5 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Thu, 12 Jun 2025 18:12:56 +0200 Subject: [PATCH 26/26] fix comment --- src/storable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storable.rs b/src/storable.rs index 25307250..997a2623 100644 --- a/src/storable.rs +++ b/src/storable.rs @@ -34,7 +34,7 @@ pub trait Storable { bytes } - /// Like `to_bytes_checked`, but checks that bytes conform to declared bounds. + /// Like `into_bytes`, but checks that bytes conform to declared bounds. fn into_bytes_checked(self) -> Vec where Self: Sized,