From 9eb35c68f4a88c95a02f104570d6476a667ce064 Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 00:19:33 -0500 Subject: [PATCH 01/12] Add a kv store, a busy http server and a rayon pipeline to the held-out Rust programs --- Cargo.lock | 377 +++++++++++++++++- crates/bench-apps/Cargo.toml | 3 + crates/bench-apps/README.md | 9 +- crates/bench-apps/benches/common/http_many.rs | 213 ++++++++++ crates/bench-apps/benches/common/kv.rs | 68 ++++ crates/bench-apps/benches/common/mod.rs | 16 +- crates/bench-apps/benches/common/parallel.rs | 64 +++ 7 files changed, 743 insertions(+), 7 deletions(-) create mode 100644 crates/bench-apps/benches/common/http_many.rs create mode 100644 crates/bench-apps/benches/common/kv.rs create mode 100644 crates/bench-apps/benches/common/parallel.rs diff --git a/Cargo.lock b/Cargo.lock index 36c8bd0..f248aff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -42,6 +42,7 @@ name = "bcmalloc-bench-apps" version = "0.0.0" dependencies = [ "bcmalloc", + "fjall", "http-body-util", "hyper", "hyper-util", @@ -49,11 +50,13 @@ dependencies = [ "mimalloc", "proc-macro2", "quote", + "rayon", "regex", "serde", "serde_json", "snmalloc-rs", - "syn", + "syn 3.0.10", + "tempfile", "tikv-jemallocator", "tokio", ] @@ -74,12 +77,30 @@ dependencies = [ "libc", ] +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + [[package]] name = "bytes" version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +[[package]] +name = "byteview" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d74937895e761d5984206f82ca8ff7725d0fd8021921011921894b41ab1b9f7" + [[package]] name = "cc" version = "1.11.1" @@ -105,12 +126,133 @@ dependencies = [ "cc", ] +[[package]] +name = "compare" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea0095f6103c2a8b44acd6fd15960c801dafebf02e21940360833e0673f48ba7" + +[[package]] +name = "crossbeam-deque" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-skiplist" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df29de440c58ca2cc6e587ec3d22347551a32435fbde9d2bff64e78a9ffa151b" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "dashmap" +version = "6.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c" +dependencies = [ + "cfg-if", + "crossbeam-utils", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", +] + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "enum_dispatch" +version = "0.3.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" +dependencies = [ + "once_cell", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + [[package]] name = "find-msvc-tools" version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" +[[package]] +name = "fjall" +version = "3.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e98f7212d748b723dcfbd43d5f166958945ad2c05ad4537fb99bcda42ad8a96" +dependencies = [ + "byteorder-lite", + "byteview", + "dashmap", + "flume", + "log", + "lsm-tree", + "lz4_flex", + "tempfile", + "xxhash-rust", +] + +[[package]] +name = "flume" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e139bc46ca777eb5efaf62df0ab8cc5fd400866427e56c68b22e414e53bd3be" +dependencies = [ + "spin", +] + [[package]] name = "futures-core" version = "0.3.34" @@ -132,6 +274,29 @@ dependencies = [ "windows-result", ] +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + [[package]] name = "http" version = "1.5.0" @@ -211,6 +376,15 @@ dependencies = [ "tokio", ] +[[package]] +name = "interval-heap" +version = "0.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11274e5e8e89b8607cfedc2910b6626e998779b48a019151c7604d0adcb86ac6" +dependencies = [ + "compare", +] + [[package]] name = "itoa" version = "1.0.19" @@ -238,6 +412,21 @@ dependencies = [ "cc", ] +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + [[package]] name = "log" version = "0.4.35" @@ -257,6 +446,37 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "lsm-tree" +version = "3.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5498808f4d41cf785079d3ef3f28716f1b4364af1b512f3097bfb651bded1b3e" +dependencies = [ + "byteorder-lite", + "byteview", + "crossbeam-skiplist", + "enum_dispatch", + "interval-heap", + "log", + "lz4_flex", + "quick_cache", + "rustc-hash", + "self_cell", + "sfa", + "tempfile", + "varint-rs", + "xxhash-rust", +] + +[[package]] +name = "lz4_flex" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef0d4ed8669f8f8826eb00dc878084aa8f253506c4fd5e8f58f5bce72ddb97e" +dependencies = [ + "twox-hash", +] + [[package]] name = "matchers" version = "0.2.0" @@ -307,6 +527,19 @@ version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + [[package]] name = "pin-project-lite" version = "0.2.17" @@ -322,6 +555,16 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "quick_cache" +version = "0.6.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9c6658afe513a3b484e3abfdaa0d03ef3c0bbf017542c178dd55f94eb3051f9" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", +] + [[package]] name = "quote" version = "1.0.47" @@ -331,6 +574,41 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + [[package]] name = "regex" version = "1.13.1" @@ -360,6 +638,25 @@ version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + [[package]] name = "rustversion" version = "1.0.23" @@ -372,6 +669,18 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "self_cell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813" + [[package]] name = "serde" version = "1.0.229" @@ -399,7 +708,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.10", ] [[package]] @@ -415,6 +724,17 @@ dependencies = [ "zmij", ] +[[package]] +name = "sfa" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1296838937cab56cd6c4eeeb8718ec777383700c33f060e2869867bd01d1175" +dependencies = [ + "byteorder-lite", + "log", + "xxhash-rust", +] + [[package]] name = "sharded-slab" version = "0.1.7" @@ -464,6 +784,26 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "spin" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e" +dependencies = [ + "lock_api", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "syn" version = "3.0.10" @@ -475,6 +815,19 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom", + "once_cell", + "rustix", + "windows-sys", +] + [[package]] name = "thread_local" version = "1.1.10" @@ -527,7 +880,7 @@ checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.10", ] [[package]] @@ -585,6 +938,12 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "twox-hash" +version = "2.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86a801b3cea342a06d468c8710662aa29e5e05e4f5c0d62f00bbb7f2ad7941c2" + [[package]] name = "unicode-ident" version = "1.0.27" @@ -597,6 +956,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" +[[package]] +name = "varint-rs" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa6c38708f6257f1ec2ca7e5a11f9bbf58a27d7060078b6b333624968183d96" + [[package]] name = "want" version = "0.3.2" @@ -636,6 +1001,12 @@ dependencies = [ "windows-link", ] +[[package]] +name = "xxhash-rust" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "550a2b930b62486a393c52d5c3b84bff264b28aa437ed64694d31e93b1757af7" + [[package]] name = "zmij" version = "1.0.23" diff --git a/crates/bench-apps/Cargo.toml b/crates/bench-apps/Cargo.toml index afc1508..12152f1 100644 --- a/crates/bench-apps/Cargo.toml +++ b/crates/bench-apps/Cargo.toml @@ -24,6 +24,9 @@ tokio = { version = "1", features = ["rt-multi-thread", "net", "sync", "time", " hyper = { version = "1", features = ["http1", "server", "client"] } hyper-util = { version = "0.1", features = ["tokio"] } http-body-util = "0.1" +fjall = "3.1.13" +rayon = "1.12.0" +tempfile = "3.27.0" [[bench]] name = "system" diff --git a/crates/bench-apps/README.md b/crates/bench-apps/README.md index d503854..d636abe 100644 --- a/crates/bench-apps/README.md +++ b/crates/bench-apps/README.md @@ -6,7 +6,7 @@ It is a member of the workspace that is never published. It depends on bcmalloc ## Workloads -All of them are in the group `apps`, build their inputs in memory and use no files and no network beyond loopback. A pass takes between a third and a second on an Apple M4. +All of them are in the group `apps`, generate deterministic inputs in memory and use no network beyond loopback. The KV workload uses a temporary directory, removed after each pass. Full passes target roughly 0.3–1.5 seconds on an Apple M4 Max; setup and teardown can add wall time. | Workload | Program | Unit | | -------------- | ------------------------------------------------------------------------ | ------ | @@ -14,6 +14,9 @@ All of them are in the group `apps`, build their inputs in memory and use no fil | regex | The regex crate compiles about thirty patterns and scans a few MB of text | MB/s | | syn | syn parses generated Rust source, a visitor walks it, and quote prints it | MB/s | | http | A hyper server and eight keep-alive clients exchange small JSON bodies | kreq/s | +| kv store | Fjall with 16 or fewer threads mixes inserts, reads, 16-entry scans and deletes over 256 MiB | ops/s | +| http many | 256 keep-alive hyper clients exchange varied JSON bodies on up to 16 workers | req/s | +| rayon | Up to 32 workers build nested records, sort String keys and group records before caller-thread frees | records/s | | tokio channels | Tasks pass boxed messages through tokio channels on four worker threads | Mmsg/s | Every workload prints a cold line, the first pass in a fresh process, and a warm line, a second measured pass. @@ -36,7 +39,9 @@ The binaries speak version 2 of the benchmark protocol. | --workload NAME | Run only that workload. | | --quick | Do a quarter of the work. | -A result line has the allocator, the workload, the metric, the value, the unit and the peak memory of the process in MiB, separated by tabs. Higher is better for every workload here. +A result line has the allocator, the workload, the metric, the value, the unit and the peak memory of the process in MiB, separated by tabs. Higher is better for throughput. `http many` also prints `p99` in `us` (lower is better), the nearest-rank 99th percentile of individual warm-pass requests, including JSON encoding and decoding. Connection setup is outside the clock. + +`kv store` preloads 65,536 records of 4 KiB outside the clock, then performs 160,000 mixed operations (40% inserts, 40% point reads, 10% scans, 10% deletes). A scan counts as one operation. Writes use Fjall’s buffered journal; fsync and directory cleanup are outside the clock. Quick mode quarters measured operations while preserving the live set. `http many` sends 256 requests per connection (64 quick); `rayon` processes 1,200,000 records (300,000 quick). Runtime and pool creation are outside the clock; the Rayon clock includes dropping the grouped records on the caller thread. ```text bcmalloc json cold 287.756 MB/s 54.8 diff --git a/crates/bench-apps/benches/common/http_many.rs b/crates/bench-apps/benches/common/http_many.rs new file mode 100644 index 0000000..0b83354 --- /dev/null +++ b/crates/bench-apps/benches/common/http_many.rs @@ -0,0 +1,213 @@ +//! Many keep-alive connections exercise a server across all available workers. +//! Connection setup stays outside the clock; latency covers JSON construction through decoding. + +use super::{ + Pass, Scale, + text::{Rng, WORDS}, + twice, +}; +use http_body_util::{BodyExt, Full}; +use hyper::{ + Request, Response, + body::{Bytes, Incoming}, + client::conn::http1 as client, + server::conn::http1 as server, + service::service_fn, +}; +use hyper_util::rt::TokioIo; +use serde::{Deserialize, Serialize}; +use std::{ + convert::Infallible, + net::SocketAddr, + sync::Arc, + time::{Duration, Instant}, +}; +use tokio::{ + net::{TcpListener, TcpStream}, + sync::{Barrier, watch}, + task::JoinSet, + time::{sleep, timeout}, +}; + +const CONNECTIONS: usize = 256; + +/// How long a pass may take before it counts as hung. A client that fails before the rendezvous +/// would otherwise leave every other task waiting at the barrier for good. +const PASS_LIMIT: Duration = Duration::from_secs(300); + +#[derive(Serialize, Deserialize)] +struct Line { + name: String, + quantity: u32, + cents: u32, +} + +#[derive(Serialize, Deserialize)] +struct Order { + id: u64, + customer: String, + lines: Vec, +} + +#[derive(Serialize, Deserialize)] +struct Receipt { + id: u64, + total: u64, + names: Vec, + note: String, +} + +fn total(order: &Order) -> u64 { + order.lines.iter().map(|line| u64::from(line.quantity) * u64::from(line.cents)).sum() +} + +async fn handle(request: Request) -> Result>, Infallible> { + let body = request.into_body().collect().await.expect("a complete body").to_bytes(); + let order: Order = serde_json::from_slice(&body).expect("a valid order"); + let receipt = Receipt { + id: order.id, + total: total(&order), + names: order.lines.iter().map(|line| line.name.to_uppercase()).collect(), + note: format!("order {} for {}", order.id, order.customer), + }; + let bytes = serde_json::to_vec(&receipt).expect("serializable"); + let response = Response::builder() + .header("content-type", "application/json") + .body(Full::new(Bytes::from(bytes))) + .expect("a valid response"); + Ok(response) +} + +/// Serves connections until told to stop, then waits for them to finish. They finish when their +/// clients hang up. +async fn serve(listener: TcpListener, mut stop: watch::Receiver) { + let mut connections = JoinSet::new(); + loop { + tokio::select! { + accepted = listener.accept() => { + // A client that gave up on a connection still queued makes accept fail with + // ECONNABORTED. The client retries, so the server keeps listening. + let Ok((stream, _)) = accepted else { continue }; + stream.set_nodelay(true).expect("nodelay"); + connections.spawn(async move { + let io = TokioIo::new(stream); + let _ = server::Builder::new().serve_connection(io, service_fn(handle)).await; + }); + } + _ = stop.changed() => break, + } + } + while connections.join_next().await.is_some() {} +} + +fn order(rng: &mut Rng, id: u64) -> Order { + let lines = (0..rng.between(4, 64)) + .map(|_| Line { + name: rng.pick(WORDS).repeat(8), + quantity: rng.between(1, 9) as u32, + cents: rng.between(50, 20_000) as u32, + }) + .collect(); + Order { id, customer: format!("{} {}", rng.pick(WORDS), rng.pick(WORDS)), lines } +} + +/// One keep-alive connection that sends `requests` orders and checks every receipt. +async fn client_task( + address: SocketAddr, + index: usize, + requests: usize, + ready: Arc, +) -> Vec { + let stream = connect(address).await; + stream.set_nodelay(true).expect("nodelay"); + let (mut sender, connection) = + client::handshake(TokioIo::new(stream)).await.expect("handshake"); + let driver = tokio::spawn(async move { + let _ = connection.await; + }); + let mut samples = Vec::with_capacity(requests); + ready.wait().await; + // The second rendezvous lets the coordinator start the clock before requests begin. + ready.wait().await; + let mut rng = Rng::new(0x4854_5450 + index as u64); + for sequence in 0..requests { + let start = Instant::now(); + let id = (index * requests + sequence) as u64; + let order = order(&mut rng, id); + let request = Request::post("/orders") + .header("host", "localhost") + .header("content-type", "application/json") + .body(Full::new(Bytes::from(serde_json::to_vec(&order).expect("serializable")))) + .expect("a valid request"); + let response = sender.send_request(request).await.expect("a response"); + let body = response.into_body().collect().await.expect("a complete body").to_bytes(); + let receipt: Receipt = serde_json::from_slice(&body).expect("a valid receipt"); + assert!(receipt.id == id && receipt.total == total(&order)); + samples.push(start.elapsed().as_micros() as u64); + } + // Dropping the sender closes the connection, which lets the server's task and ours end. + drop(sender); + driver.await.expect("the driver ends"); + samples +} + +/// Connects to the server, retrying for a while: 256 connections at once overflow a listen backlog +/// of 128, and a machine that has just run many passes may be short of ephemeral ports. +async fn connect(address: SocketAddr) -> TcpStream { + let mut attempts = 0; + loop { + match TcpStream::connect(address).await { + Ok(stream) => return stream, + Err(_) if attempts < 100 => { + attempts += 1; + sleep(Duration::from_millis(20)).await; + } + Err(error) => panic!("cannot connect after {attempts} retries: {error}"), + } + } +} + +fn pass(requests: usize) -> Pass { + let runtime = tokio::runtime::Builder::new_multi_thread() + .worker_threads(std::thread::available_parallelism().map_or(1, usize::from).min(16)) + .enable_io() + .enable_time() + .build() + .expect("a runtime"); + let pass = runtime.block_on(async { timeout(PASS_LIMIT, run_pass(requests)).await }); + drop(runtime); + pass.expect("a pass of http many finishes in time") +} + +/// One pass: the server, the clients and the clock. +async fn run_pass(requests: usize) -> Pass { + let listener = TcpListener::bind("127.0.0.1:0").await.expect("bind"); + let address = listener.local_addr().expect("an address"); + let (stop, stopped) = watch::channel(false); + let server = tokio::spawn(serve(listener, stopped)); + + let ready = Arc::new(Barrier::new(CONNECTIONS + 1)); + let clients: Vec<_> = (0..CONNECTIONS) + .map(|index| tokio::spawn(client_task(address, index, requests, ready.clone()))) + .collect(); + ready.wait().await; + let start = Instant::now(); + ready.wait().await; + let mut samples = Vec::with_capacity(requests * CONNECTIONS); + for client in clients { + samples.extend(client.await.expect("the client ends")); + } + let mut pass = Pass::since(start, (requests * CONNECTIONS) as f64); + samples.sort_unstable(); + pass.p99_us = Some(samples[(samples.len() * 99).div_ceil(100) - 1] as f64); + + stop.send(true).expect("the server listens"); + server.await.expect("the server ends"); + pass +} + +/// One unit is one completed request. +pub(crate) fn run(scale: Scale) -> [Pass; 2] { + let requests = scale.count(256); + twice(|| pass(requests)) +} diff --git a/crates/bench-apps/benches/common/kv.rs b/crates/bench-apps/benches/common/kv.rs new file mode 100644 index 0000000..1f65219 --- /dev/null +++ b/crates/bench-apps/benches/common/kv.rs @@ -0,0 +1,68 @@ +//! A shared embedded LSM database with a cache-sized live set. +//! +//! Population is outside the clock. Timed operations mix writes, reads, short scans and deletes; +//! journal writes are buffered, so this measures a service's cache path rather than fsync latency. + +use super::{Pass, Scale, text::Rng, twice}; +use fjall::{Database, KeyspaceCreateOptions}; +use std::{hint::black_box, thread, time::Instant}; + +const KEYS: usize = 65_536; +const VALUE_BYTES: usize = 4096; + +fn pass(operations: usize) -> Pass { + let directory = tempfile::tempdir().expect("a database directory"); + let database = Database::builder(directory.path()) + .cache_size(256 * 1024 * 1024) + .open() + .expect("open database"); + let items = database + .keyspace("records", || { + KeyspaceCreateOptions::default().max_memtable_size(512 * 1024 * 1024) + }) + .expect("keyspace"); + let mut rng = Rng::new(0x4b56); + let values: Vec> = + (0..256).map(|_| (0..VALUE_BYTES).map(|_| rng.next() as u8).collect()).collect(); + for key in 0..KEYS { + items.insert((key as u64).to_be_bytes(), &values[key % values.len()]).expect("populate"); + } + let workers = thread::available_parallelism().map_or(1, usize::from).min(16); + let start = Instant::now(); + thread::scope(|scope| { + for worker in 0..workers { + let items = &items; + let values = &values; + scope.spawn(move || { + let mut rng = Rng::new(0x5354 + worker as u64); + for _ in (worker..operations).step_by(workers) { + let key = (rng.below(KEYS) as u64).to_be_bytes(); + match rng.below(10) { + 0..=3 => { + items.insert(key, &values[rng.below(values.len())]).expect("insert") + } + 4..=7 => { + black_box(items.get(key).expect("read")); + } + 8 => { + for entry in items.range(key..).take(16) { + black_box(entry.into_inner().expect("scan")); + } + } + _ => items.remove(key).expect("delete"), + } + } + }); + } + }); + let pass = Pass::since(start, operations as f64); + // Close the storage engine before removing the directory, including its background workers. + drop(items); + drop(database); + directory.close().expect("remove database"); + pass +} + +pub(crate) fn run(scale: Scale) -> [Pass; 2] { + twice(|| pass(scale.count(160_000))) +} diff --git a/crates/bench-apps/benches/common/mod.rs b/crates/bench-apps/benches/common/mod.rs index 5dd7784..8bc7e51 100644 --- a/crates/bench-apps/benches/common/mod.rs +++ b/crates/bench-apps/benches/common/mod.rs @@ -21,11 +21,15 @@ //! A result line holds the allocator, the workload, the metric, the value, the unit and the peak //! resident memory of the process in MiB. Every workload here is a throughput workload, so it //! prints two lines. The metric `cold` is the first pass in a fresh process and `warm` is a -//! second, measured pass. Higher is better for both. +//! second, measured pass. Higher is better for both. `http many` also prints the p99 latency of +//! a request in its warm pass, in microseconds, where lower is better. mod channels; mod http; +mod http_many; mod json; +mod kv; +mod parallel; mod pattern; mod rss; mod source; @@ -50,12 +54,13 @@ impl Scale { pub(crate) struct Pass { amount: f64, elapsed: Duration, + p99_us: Option, } impl Pass { /// A pass that did `amount` units of work since `start`. pub(crate) fn since(start: Instant, amount: f64) -> Self { - Self { amount, elapsed: start.elapsed() } + Self { amount, elapsed: start.elapsed(), p99_us: None } } fn rate(&self) -> f64 { @@ -86,6 +91,9 @@ const WORKLOADS: &[Workload] = &[ Workload { name: "syn", unit: "MB/s", run: source::run }, Workload { name: "http", unit: "kreq/s", run: http::run }, Workload { name: "tokio channels", unit: "Mmsg/s", run: channels::run }, + Workload { name: "kv store", unit: "ops/s", run: kv::run }, + Workload { name: "http many", unit: "req/s", run: http_many::run }, + Workload { name: "rayon", unit: "records/s", run: parallel::run }, ]; /// Runs the workloads that the arguments select, or lists them. @@ -109,8 +117,12 @@ pub(crate) fn run(allocator: &str) { let [cold, warm] = (workload.run)(scale); // The peak covers the whole run, so both lines carry the same figure. let (name, unit, peak) = (workload.name, workload.unit, rss::peak_resident_mib()); + let p99 = warm.p99_us; for (metric, pass) in [("cold", cold), ("warm", warm)] { println!("{allocator}\t{name}\t{metric}\t{:.3}\t{unit}\t{peak:.1}", pass.rate()); } + if let Some(p99) = p99 { + println!("{allocator}\t{name}\tp99\t{p99:.3}\tus\t{peak:.1}"); + } } } diff --git a/crates/bench-apps/benches/common/parallel.rs b/crates/bench-apps/benches/common/parallel.rs new file mode 100644 index 0000000..70d8e45 --- /dev/null +++ b/crates/bench-apps/benches/common/parallel.rs @@ -0,0 +1,64 @@ +//! A parallel ingest, sort and group-by pipeline with owned, nested records. +//! +//! Workers construct records; sorting redistributes ownership before grouping. The completed +//! groups leave the pool and are dropped on the caller, guaranteeing frees on another thread. + +use super::{ + Pass, Scale, + text::{Rng, WORDS}, + twice, +}; +use rayon::prelude::*; +use std::{collections::HashMap, hint::black_box, time::Instant}; + +struct Record { + key: String, + tags: HashMap, + values: Vec, +} + +pub(crate) fn run(scale: Scale) -> [Pass; 2] { + let pool = rayon::ThreadPoolBuilder::new() + .num_threads(std::thread::available_parallelism().map_or(1, usize::from).min(32)) + .build() + .expect("a thread pool"); + let count = scale.count(1_200_000); + twice(|| { + let start = Instant::now(); + let groups = pool.install(|| { + let mut records: Vec = (0..count) + .into_par_iter() + .map(|id| { + let mut rng = Rng::new(id as u64 + 0x5241); + Record { + key: format!("{}-{:08x}", rng.pick(WORDS), rng.next() as u32), + tags: (0..4) + .map(|_| (rng.pick(WORDS).to_string(), format!("value-{}", rng.next()))) + .collect(), + values: (0..rng.between(4, 24)).map(|_| rng.next()).collect(), + } + }) + .collect(); + records.par_sort_unstable_by(|a, b| a.key.cmp(&b.key)); + records + .into_par_iter() + .fold(HashMap::>::new, |mut groups, record| { + let group = record.key.split('-').next().expect("a prefix").to_string(); + groups.entry(group).or_default().push(record); + groups + }) + .reduce(HashMap::new, |mut left, right| { + for (key, mut records) in right { + left.entry(key).or_default().append(&mut records); + } + left + }) + }); + assert_eq!(groups.values().map(Vec::len).sum::(), count); + let checksum: usize = + groups.values().flatten().map(|r| r.tags.len() + r.values.len()).sum(); + black_box(checksum); + drop(groups); + Pass::since(start, count as f64) + }) +} From 5e9dbd8491ae0b5d31083c8888ca53c3b440d89e Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 00:20:17 -0500 Subject: [PATCH 02/12] Run mimalloc-bench programs with precise timing, interleaved allocators and intervals --- justfile | 7 + scripts/mbrun.py | 548 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 555 insertions(+) create mode 100755 scripts/mbrun.py diff --git a/justfile b/justfile index aef4e30..0c3c5bc 100644 --- a/justfile +++ b/justfile @@ -95,6 +95,13 @@ mimalloc-bench dir args: cabi cd "$1/out/bench" && ../../bench.sh --external="$OLDPWD/target/bcmalloc-external.txt" $2 cargo run -q -p bcmalloc-bench-data -- import-mimalloc-bench "$1/out/bench/benchres.csv" +# Run the programs of mimalloc-bench, built in DIR by its build-bench-env.sh, under bcmalloc and the +# allocators named with --alloc, with wall time in nanoseconds, the allocators interleaved, short +# programs repeated, and medians with 95% intervals. See scripts/mbrun.py for the options, for +# example: just mbrun ~/mimalloc-bench --alloc mi --alloc sn --runs 10 --out target/mb.tsv +mbrun dir *args: cabi + dir="$1"; shift; scripts/mbrun.py --dir "$dir" --alloc bc=target/cabi/release/libbcmalloc_c.so "$@" + # Render the tables of BENCHMARKS.md and README.md and assets/benchmarks.svg from benchmarks.json. # The benchmark recipes do this after they record their results. bench-render: diff --git a/scripts/mbrun.py b/scripts/mbrun.py new file mode 100755 index 0000000..b3cefd5 --- /dev/null +++ b/scripts/mbrun.py @@ -0,0 +1,548 @@ +#!/usr/bin/env python3 +"""Runs the programs of mimalloc-bench under several allocators, with precise measurements. + +mimalloc-bench's own driver (bench.sh) times each program with GNU time, which reports wall time +in hundredths of a second, and it runs the allocators of a program one after another in a fixed +order. Many of its programs finish in well under a second, so one tick of that clock is several +percent of a result. This driver runs the same programs with the same arguments, built by +mimalloc-bench's own build script, and measures them differently: + +* wall time in nanoseconds, and user time, system time, peak resident memory and page faults from + wait4, for every run; +* every allocator takes a turn within each run, in an order that rotates from run to run and + program to program, so that drift in the machine hits all of them alike; +* every child gets an environment variable of random length, which moves the initial stack + (Mytkowicz et al., ASPLOS 2009); +* programs that finish in a fraction of a second run several times back to back within one sample + in the default 'long' profile, which keeps the workload as it is and makes it long enough to + time. '--profile stock' runs each once, as bench.sh does; +* the programs that report their own throughput (larson, rptest, xmalloc-test, glibc-thread and + redis) are scored by it, converted to a relative time exactly as bench.sh converts it. + +With --perf, every run is wrapped in perf stat and the counters are recorded too. + +The summary shows the median of each program and allocator with a 95% bootstrap interval, and the +geometric mean of the ratios to a baseline allocator. A best result is starred when its interval +is clear of every other allocator's. + +Usage, on the machine that has mimalloc-bench built in ~/mimalloc-bench: + + scripts/mbrun.py --alloc bc=target/cabi/release/libbcmalloc_c.so --alloc mi --alloc sn \\ + --runs 10 --out results.tsv + scripts/mbrun.py --load results.tsv # print the summary of a saved file again + scripts/mbrun.py --load results.tsv --csv benchres.csv # for bench-data import-mimalloc-bench +""" + +import argparse +import math +import os +import random +import re +import subprocess +import sys +import tempfile +import time +from dataclasses import dataclass, field +from pathlib import Path + +PROCS = os.cpu_count() or 1 + +# Allocators that mimalloc-bench builds, by the short names it uses, relative to its extern +# directory. mi2 is not part of mimalloc-bench and is built next to it by hand. +KNOWN_ALLOCATORS = { + "mi": "mi/out/release/libmimalloc.so", + "mi2": "mi2/out/release/libmimalloc.so", + "mi1": "mi-1.8.2/out/release/libmimalloc.so", + "sn": "sn/release/libsnmallocshim.so", + "je": "je/lib/libjemalloc.so", + "tc": "tc/.libs/libtcmalloc_minimal.so", + "sys": None, +} + +PERF_EVENTS = ( + "cycles,instructions,branch-misses,L1-dcache-load-misses,dTLB-load-misses,LLC-load-misses" +) + +TSV_HEADER = [ + "test", "alloc", "run", "metric_s", "wall_s", "user_s", "sys_s", "maxrss_kib", "minflt", + "majflt", "perf", +] + + +def relative_from(pattern, scale=None, last=False): + """A parser that finds 'pattern' in a program's output. Its number is the relative time, or, + with 'scale', a throughput that becomes scale / throughput, as bench.sh computes it.""" + + def parse(text): + found = re.findall(pattern, text, re.MULTILINE) + if not found: + return None + value = float(found[-1] if last else found[0]) + if scale is None: + return value + return scale / value if value > 0 else None + + return parse + + +@dataclass +class Test: + name: str + cmd: list + cwd: str = "out/bench" + stdin: str = None + # A command run before every sample, without the allocator, that is not timed. + setup: list = None + # How the program reports its result if not by its wall time. + parse: object = None + # How many times the program runs back to back in one sample of the long profile. + reps: int = 1 + server: bool = False + + +def tests(root): + ext = root / "extern" + bench = root / "bench" + p = str(PROCS) + lean_jobs = "8" if PROCS > 8 else p + linux = ext / "linux-6.6.105" + redis = ext / "redis-6.2.7" / "src" + return { + t.name: t + for t in [ + Test("cfrac", ["./cfrac", "17545186520507317056371138836327483792789528"]), + Test("espresso", ["./espresso", str(bench / "espresso/largest.espresso")]), + Test("barnes", ["./barnes"], stdin=str(bench / "barnes/input")), + Test( + "redis", + [str(redis / "redis-benchmark"), "-r", "1000000", "-n", "100000", "-q", "-P", + "16", "lpush", "a", "1", "2", "3", "4", "5", "lrange", "a", "1", "5"], + parse=relative_from(r"([0-9.]+) requests per second", 2_000_000, last=True), + server=True, + ), + Test("larsonN", ["./larson", "5", "8", "1000", "5000", "100", "4141", p], + parse=relative_from(r" time: ([0-9.]+)")), + Test("larsonN-sized", ["./larson-sized", "5", "8", "1000", "5000", "100", "4141", p], + parse=relative_from(r" time: ([0-9.]+)")), + Test("mstressN", ["./mstress", p, "50", "25"], reps=2), + Test("rptestN", ["./rptest", p, "0", "1", "2", "500", "1000", "100", "8", "16000"], + parse=relative_from(r"\.\.\.(\d+) memory ops", 2_000_000)), + Test("gs", ["gs", "-dBATCH", "-dNODISPLAY", str(ext / "large.pdf")], reps=4), + Test("alloc-test1", ["./alloc-test", "1"]), + Test("alloc-testN", ["./alloc-test", str(min(PROCS, 16))]), + Test("sh6benchN", ["./sh6bench", str(2 * PROCS)], reps=10), + Test("sh8benchN", ["./sh8bench", str(2 * PROCS)], reps=5), + Test("xmalloc-testN", ["./xmalloc-test", "-w", p, "-t", "5", "-s", "64"], + parse=relative_from(r"rtime: ([0-9.]+)")), + Test("cache-scratch1", ["./cache-scratch", "1", "1000", "1", "2000000", p]), + Test("cache-scratchN", ["./cache-scratch", p, "1000", "1", "2000000", p], reps=10), + Test("cache-thrash1", ["./cache-thrash", "1", "1000", "1", "2000000", p]), + Test("cache-thrashN", ["./cache-thrash", p, "1000", "1", "2000000", p], reps=10), + Test("glibc-simple", ["./glibc-simple"]), + Test("glibc-thread", ["./glibc-thread", p], + parse=relative_from(r"^([0-9.]+)", 1_000_000_000)), + Test("rocksdb", [str(ext / "rocksdb-10.10.1/db_bench"), "--benchmarks=fillrandom"]), + Test( + "leanN", ["../bin/lean", "--make", "-j", lean_jobs], cwd=str(ext / "lean/library"), + setup=["make", "-C", str(ext / "lean/out/release"), "clean-olean"], + ), + Test( + "linux", ["make", "O=/tmp/linux_build", "-j", p], cwd=str(linux), + setup=["make", "-C", str(linux), "O=/tmp/linux_build", "distclean", "allnoconfig", + "-j", p], + ), + Test("malloc-large", ["./malloc-large"]), + Test("mleak10", ["./mleak", "5"], reps=5), + Test("mleak100", ["./mleak", "50"]), + Test("rbstress1", ["ruby", str(bench / "rbstress/stress_mem.rb"), "1"]), + Test("rbstressN", ["ruby", str(bench / "rbstress/stress_mem.rb"), p]), + ] + } + + +@dataclass +class Sample: + metric: float + wall: float + user: float + sys: float + maxrss: int + minflt: int + majflt: int + perf: dict = field(default_factory=dict) + + +def timed(cmd, rss_out): + """Runs a command under GNU time for its peak resident memory only. A child forked from this + Python process would start out with the interpreter's resident pages, and the kernel counts + those towards the child's peak, so the program is started from GNU time's small process, as + bench.sh starts it.""" + return ["/usr/bin/time", "-f", "%M", "-o", rss_out] + cmd + + +def read_rss(path): + try: + lines = Path(path).read_text().split() + os.unlink(path) + return int(lines[-1]) + except (OSError, ValueError, IndexError): + return 0 + + +def child_env(lib, pad): + env = dict(os.environ) + env.pop("LD_PRELOAD", None) + if lib: + env["LD_PRELOAD"] = lib + env["BCMALLOC_BENCH_PAD"] = "x" * pad + return env + + +def wrap_perf(cmd, env, perf_out, args): + """Wraps a command in perf stat, which needs privileges here, and runs the command itself as + the calling user with exactly the environment it would have had.""" + if not args.perf: + return cmd, env + inner = ["setpriv", f"--reuid={os.getuid()}", f"--regid={os.getgid()}", "--init-groups", + "env", "-i"] + [f"{k}={v}" for k, v in env.items()] + cmd + outer = args.perf_cmd.split() + ["stat", "-x", ",", "-e", args.perf, "-o", perf_out, "--"] + return outer + inner, {k: v for k, v in os.environ.items() if k != "LD_PRELOAD"} + + +SCRATCH = tempfile.mkdtemp(prefix="mbrun-") + + +def scratch(prefix): + """A fresh file that this user owns, in a private directory. perf runs as root here, and Linux + keeps root from opening another user's file in a shared sticky directory such as /tmp.""" + fd, path = tempfile.mkstemp(prefix=prefix, dir=SCRATCH) + os.close(fd) + return path + + +def read_perf(path): + counters = {} + try: + lines = Path(path).read_text().splitlines() + except OSError: + return counters + for line in lines: + parts = line.split(",") + if len(parts) >= 3 and parts[0] and not line.startswith("#"): + try: + counters[parts[2]] = counters.get(parts[2], 0) + float(parts[0]) + except ValueError: + pass + return counters + + +def wait_rusage(proc): + _, status, usage = os.wait4(proc.pid, 0) + proc.returncode = os.waitstatus_to_exitcode(status) + return proc.returncode, usage + + +def sample_of(wall, usage, perf_out, rss_out): + perf = read_perf(perf_out) + if os.path.exists(perf_out): + os.unlink(perf_out) + return Sample(0.0, wall, usage.ru_utime, usage.ru_stime, read_rss(rss_out), usage.ru_minflt, + usage.ru_majflt, perf) + + +def run_server_test(test, root, lib, pad, args, out): + """Runs redis as bench.sh does: the server under the allocator, and the benchmark client + without it. The client's throughput is the result and the server's usage is recorded.""" + redis = root / "extern" / "redis-6.2.7" / "src" + cli = [str(redis / "redis-cli")] + perf_out = scratch("mbrun-perf-") + rss_out = scratch("mbrun-rss-") + server_cmd = timed([str(redis / "redis-server")], rss_out) + cmd, env = wrap_perf(server_cmd, child_env(lib, pad), perf_out, args) + server = subprocess.Popen(cmd, cwd=root / test.cwd, env=env, stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL) + clean = child_env(None, 0) + for _ in range(600): + if subprocess.run(cli + ["ping"], env=clean, capture_output=True).returncode == 0: + break + time.sleep(0.1) + else: + server.kill() + wait_rusage(server) + return None, "the redis server never accepted commands" + start = time.perf_counter_ns() + client = subprocess.run(test.cmd, cwd=root / test.cwd, env=clean, stdout=out, + stderr=subprocess.STDOUT) + wall = (time.perf_counter_ns() - start) / 1e9 + subprocess.run(cli + ["flushall"], env=clean, capture_output=True) + subprocess.run(cli + ["shutdown"], env=clean, capture_output=True) + _, usage = wait_rusage(server) + if client.returncode != 0: + return None, f"the client exited with {client.returncode}" + return sample_of(wall, usage, perf_out, rss_out), None + + +def run_once(test, root, lib, pad, args, out): + if test.setup: + subprocess.run(test.setup, cwd=root / test.cwd, env=child_env(None, 0), + stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + if test.server: + return run_server_test(test, root, lib, pad, args, out) + perf_out = scratch("mbrun-perf-") + rss_out = scratch("mbrun-rss-") + cmd, env = wrap_perf(timed(test.cmd, rss_out), child_env(lib, pad), perf_out, args) + stdin = open(test.stdin, "rb") if test.stdin else subprocess.DEVNULL + try: + start = time.perf_counter_ns() + proc = subprocess.Popen(cmd, cwd=root / test.cwd, env=env, stdin=stdin, stdout=out, + stderr=subprocess.STDOUT) + code, usage = wait_rusage(proc) + wall = (time.perf_counter_ns() - start) / 1e9 + finally: + if test.stdin: + stdin.close() + if code != 0: + return None, f"exited with {code}" + return sample_of(wall, usage, perf_out, rss_out), None + + +def run_sample(test, root, lib, pad, args): + """Runs a test 'reps' times back to back and returns one sample: the mean result, CPU times and + faults per run, and the largest peak.""" + reps = test.reps if args.profile == "long" else 1 + total = None + with tempfile.TemporaryFile() as out: + for _ in range(reps): + out.seek(0) + out.truncate() + sample, error = run_once(test, root, lib, pad, args, out) + out.seek(0) + text = out.read().decode(errors="replace") + if sample is None: + return None, f"{error}: {text[-400:]}" + sample.metric = test.parse(text) if test.parse else sample.wall + if sample.metric is None: + return None, f"no result in the output: {text[-400:]}" + if total is None: + total = sample + continue + total.metric += sample.metric + total.wall += sample.wall + total.user += sample.user + total.sys += sample.sys + total.minflt += sample.minflt + total.majflt += sample.majflt + total.maxrss = max(total.maxrss, sample.maxrss) + for k, v in sample.perf.items(): + total.perf[k] = total.perf.get(k, 0) + v + for name in ("metric", "wall", "user", "sys"): + setattr(total, name, getattr(total, name) / reps) + total.minflt //= reps + total.majflt //= reps + total.perf = {k: v / reps for k, v in total.perf.items()} + return total, None + + +def resolve_allocators(specs, root): + allocators = [] + for spec in specs: + name, _, path = spec.partition("=") + if not path: + if name not in KNOWN_ALLOCATORS: + sys.exit(f"unknown allocator {name}; give it as NAME=PATH") + rel = KNOWN_ALLOCATORS[name] + path = str(root / "extern" / rel) if rel else "" + else: + path = str(Path(path).expanduser().resolve()) + if path and not os.path.exists(path): + sys.exit(f"{name}: {path} does not exist") + allocators.append((name, path)) + return allocators + + +# --------------------------------------------------------------------------------------------- +# Statistics +# --------------------------------------------------------------------------------------------- + + +def median(values): + values = sorted(values) + n = len(values) + return values[n // 2] if n % 2 else (values[n // 2 - 1] + values[n // 2]) / 2 + + +def bootstrap(values, rng, resamples=2000): + """A 95% bootstrap interval of the median.""" + if len(values) < 2: + return values[0], values[0] + medians = sorted(median(rng.choices(values, k=len(values))) for _ in range(resamples)) + return medians[int(0.025 * resamples)], medians[int(0.975 * resamples) - 1] + + +def load(path): + with open(path) as f: + header = f.readline().rstrip("\n").split("\t") + return [dict(zip(header, line.rstrip("\n").split("\t"))) for line in f if line.strip()] + + +COLUMNS = { + "metric_s": ("time (s)", 1.0), + "maxrss_kib": ("peak RSS (MiB)", 1 / 1024), + "user_s": ("user time (s)", 1.0), + "sys_s": ("system time (s)", 1.0), + "minflt": ("minor faults", 1.0), +} + + +def summarize(rows, baseline, columns): + rng = random.Random(0xB007) + if not rows: + return "no samples" + tests, allocs, data = [], [], {} + for row in rows: + if row["test"] not in tests: + tests.append(row["test"]) + if row["alloc"] not in allocs: + allocs.append(row["alloc"]) + data.setdefault((row["test"], row["alloc"]), []).append(row) + if baseline not in allocs: + baseline = allocs[0] + out = [] + for column in columns: + label, scale = COLUMNS[column] + out.append(f"\n## {label}: median [95% interval]; bold is best, * if clear of all others\n") + out.append("| test | " + " | ".join(allocs) + " |") + out.append("|---" * (len(allocs) + 1) + "|") + ratios = {a: [] for a in allocs} + for test in tests: + stats = {} + for alloc in allocs: + values = [float(r[column]) * scale for r in data.get((test, alloc), [])] + if values: + stats[alloc] = (median(values), *bootstrap(values, rng)) + if not stats: + continue + best = min(stats, key=lambda a: stats[a][0]) + cells = [] + for alloc in allocs: + if alloc not in stats: + cells.append("-") + continue + med, lo, hi = stats[alloc] + clear = alloc == best and len(stats) > 1 and all( + other == alloc or stats[other][1] > hi for other in stats) + mark = "**" if alloc == best else "" + cells.append(f"{mark}{med:.4g}{mark} [{lo:.4g}, {hi:.4g}]{' *' if clear else ''}") + if baseline in stats and stats[baseline][0] > 0 and med > 0: + ratios[alloc].append(stats[baseline][0] / med) + out.append(f"| {test} | " + " | ".join(cells) + " |") + gm = [f"{math.exp(sum(map(math.log, r)) / len(r)):.3f}" if r else "-" + for r in (ratios[a] for a in allocs)] + out.append(f"| geomean, {baseline} / allocator | " + " | ".join(gm) + " |") + return "\n".join(out) + + +def write_csv(rows, path): + """Writes a benchres.csv in mimalloc-bench's format: test, allocator, time, peak KiB, user, + sys, major and minor faults.""" + with open(path, "w") as f: + for r in rows: + f.write(f"{r['test']} {r['alloc']} {float(r['metric_s']):.4f} {r['maxrss_kib']} " + f"{float(r['user_s']):.3f} {float(r['sys_s']):.3f} {r['majflt']} " + f"{r['minflt']}\n") + + +def perf_summary(rows): + """Medians of the perf counters per test and allocator.""" + out = ["\n## perf counters, medians per run of the program\n"] + groups = {} + for r in rows: + if not r.get("perf"): + continue + counters = dict(kv.split("=", 1) for kv in r["perf"].split(";") if "=" in kv) + groups.setdefault((r["test"], r["alloc"]), []).append(counters) + for (test, alloc), samples in groups.items(): + keys = sorted({k for s in samples for k in s}) + cells = [f"{k}={median([float(s[k]) for s in samples if k in s]):.4g}" for k in keys] + out.append(f"{test:16} {alloc:8} " + " ".join(cells)) + return "\n".join(out) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter) + parser.add_argument("--dir", default="~/mimalloc-bench", help="the mimalloc-bench checkout") + parser.add_argument("--alloc", action="append", default=[], + help="NAME or NAME=PATH of a library to preload; repeat for several") + parser.add_argument("--tests", default="all", help="comma-separated tests, or all") + parser.add_argument("--skip", default="", help="comma-separated tests to leave out") + parser.add_argument("--runs", type=int, default=10) + parser.add_argument("--profile", choices=["long", "stock"], default="long") + parser.add_argument("--perf", nargs="?", const=PERF_EVENTS, default=None, + help="count these perf events (default: a standard set)") + parser.add_argument("--perf-cmd", default="sudo -n perf") + parser.add_argument("--out", help="append every sample to this TSV") + parser.add_argument("--load", action="append", default=[], + help="summarize saved TSV files instead of running") + parser.add_argument("--baseline", default="mi") + parser.add_argument("--csv", help="also write the samples as a mimalloc-bench benchres.csv") + parser.add_argument("--seed", type=int, default=0x5EED) + parser.add_argument("--all-columns", action="store_true", + help="also summarize user and system time and minor faults") + args = parser.parse_args() + + columns = list(COLUMNS) if args.all_columns else ["metric_s", "maxrss_kib"] + if args.load: + rows = [r for path in args.load for r in load(path)] + print(summarize(rows, args.baseline, columns)) + if any(r.get("perf") for r in rows): + print(perf_summary(rows)) + if args.csv: + write_csv(rows, args.csv) + return + + root = Path(args.dir).expanduser().resolve() + all_tests = tests(root) + names = list(all_tests) if args.tests == "all" else args.tests.split(",") + skip = set(filter(None, args.skip.split(","))) + names = [n for n in names if n not in skip] + for n in names: + if n not in all_tests: + sys.exit(f"unknown test {n}; known: {', '.join(all_tests)}") + allocators = resolve_allocators(args.alloc or ["mi"], root) + rng = random.Random(args.seed) + out_path = args.out or tempfile.mktemp(prefix="mbrun-", suffix=".tsv") + new = not os.path.exists(out_path) + rows = [] + with open(out_path, "a") as out: + if new: + out.write("\t".join(TSV_HEADER) + "\n") + for run in range(args.runs): + for index, name in enumerate(names): + test = all_tests[name] + shift = (run + index) % len(allocators) + for alloc, lib in allocators[shift:] + allocators[:shift]: + sample, error = run_sample(test, root, lib, rng.randrange(4096), args) + if sample is None: + print(f"run {run}: {name} {alloc}: failed: {error}", file=sys.stderr) + continue + perf = ";".join(f"{k}={v:.0f}" for k, v in sample.perf.items()) + row = [name, alloc, str(run), f"{sample.metric:.6f}", f"{sample.wall:.6f}", + f"{sample.user:.4f}", f"{sample.sys:.4f}", str(sample.maxrss), + str(sample.minflt), str(sample.majflt), perf] + out.write("\t".join(row) + "\n") + out.flush() + rows.append(dict(zip(TSV_HEADER, row))) + print(f"run {run}: {name:15} {alloc:8} {sample.metric:9.4f} s " + f"{sample.maxrss / 1024:8.1f} MiB", file=sys.stderr, flush=True) + os.rmdir(SCRATCH) + print(f"samples in {out_path}", file=sys.stderr) + print(summarize(rows, args.baseline, columns)) + if args.perf: + print(perf_summary(rows)) + if args.csv: + write_csv(rows, args.csv) + + +if __name__ == "__main__": + main() From 0acd0762ce424af10a5cb3a320b57156bdf0d4dd Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 00:20:17 -0500 Subject: [PATCH 03/12] Give the C library frameless fast paths, C++ operators and a static map lookup The C library now builds with panic=abort, so its extern functions need no unwind paths, and malloc's failure sets errno inside the slow path. malloc and free then have no stack frame and end in jumps to their slow paths. A free finds its chunk map entry from base, span and map fields copied into the Bcmalloc static, which every thread that binds a heap publishes, so the entry load no longer waits for the thread-local load and the heap's fields first. The library defines the C++ new and delete operators, as the preload libraries of mimalloc, snmalloc and jemalloc do, plus free_sized, free_aligned_sized, reallocarray and cfree, and calloc takes small blocks straight off a bin. A throwing new that cannot allocate must run the new-handler and throw std::bad_alloc, and no C++ exception may unwind through a Rust frame. On x86-64 and AArch64 the throwing forms are naked functions that call the allocator and, when it fails, jump to the C++ runtime's operator (dlsym RTLD_NEXT), which runs the handler and throws with no frame of the library on the stack; elsewhere the runtime's operators stay in place. A nothrow new that fails hands over to the runtime's nothrow form, which runs the handler. just cabi-cxx checks this from a C++ program that preloads the library, and CI runs it on Linux. The call costs alloc-test 1.2-1.6% against a frameless new that aborted. alloc-test1 3.09 -> 2.93 s, alloc-testN 2.86 -> 2.70 s, larsonN 1.21 -> 1.16, larsonN-sized 1.16 -> 1.13, cfrac 3.77 -> 3.74 (EPYC, boost off, 3-7 runs). --- .github/workflows/ci.yaml | 3 + crates/bcmalloc/src/global.rs | 206 +++++++++-- crates/bcmalloc/src/heap.rs | 46 ++- crates/cabi/src/cxx.rs | 544 +++++++++++++++++++++++++++++ crates/cabi/src/lib.rs | 80 +++-- crates/cabi/tests/operator_new.cpp | 82 +++++ justfile | 14 +- 7 files changed, 917 insertions(+), 58 deletions(-) create mode 100644 crates/cabi/src/cxx.rs create mode 100644 crates/cabi/tests/operator_new.cpp diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eeacd22..7f3d3d4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,6 +27,9 @@ jobs: - uses: taiki-e/install-action@nextest - name: Test run: just test --locked + - name: Check the C++ operators of the C library + if: matrix.os == 'ubuntu-latest' + run: just cabi-cxx hack: name: Check (feature powerset) diff --git a/crates/bcmalloc/src/global.rs b/crates/bcmalloc/src/global.rs index 5115ca8..0d7335c 100644 --- a/crates/bcmalloc/src/global.rs +++ b/crates/bcmalloc/src/global.rs @@ -30,11 +30,12 @@ use crate::{ allocator::{Backend, allocator}, + chunks::CHUNK_SHIFT, config::Config, heap::{Heap, HeapData}, - region::{Error, Mapping, Region, Stats}, - size_class::{MIN_ALIGN, TABLE_MAX}, - sync::{AtomicPtr, AtomicUsize, Ordering}, + region::{Entry, Error, Mapping, Region, Stats}, + size_class::{MAX_SMALL, MIN_ALIGN, TABLE_MAX}, + sync::{AtomicPtr, AtomicU64, AtomicUsize, Ordering}, tls, }; use core::{ @@ -45,6 +46,24 @@ use core::{ /// The smallest region the lazy start-up settles for when the OS refuses a bigger one. const MIN_CAPACITY: usize = 256 << 20; +/// Zeroed requests below this many bytes are cleared without asking whether the memory is fresh, +/// as [`HeapData::alloc_zeroed`] does. +const SMALL_ZEROED: usize = 1024; + +/// Sets the calling thread's `errno` to `ENOMEM`, as C's allocation functions do when they fail. +fn set_out_of_memory() { + // SAFETY: the location is the calling thread's errno, valid for as long as the thread lives. + #[cfg(target_os = "linux")] + unsafe { + *libc::__errno_location() = libc::ENOMEM; + } + // SAFETY: as above. + #[cfg(target_vendor = "apple")] + unsafe { + *libc::__error() = libc::ENOMEM; + } +} + /// A global allocator that reserves its memory up front. /// /// Declare one as the program's allocator and everything else follows. @@ -101,6 +120,78 @@ pub struct Bcmalloc { region: AtomicPtr>, /// The thread-specific key under which threads keep their heap, or `tls::NO_KEY`. key: AtomicUsize, + directory: Directory, +} + +/// Where the chunk map entry of a block is, copied out of the region. +/// +/// A free reads the entry of its block's chunk. Found through the thread's heap, that load waits +/// for the thread-local load and then for the heap's fields. Kept in the allocator, which is a +/// `static`, the loads it needs depend on nothing and run alongside the thread-local one, which +/// takes a step off the longest chain of loads in every free. +/// +/// Every thread that binds a heap writes the fields first, all from the one published region, so +/// the values never differ and a thread with a heap always sees them. +#[derive(Debug)] +struct Directory { + /// The address of the region's first chunk. + base: AtomicUsize, + /// The length of the managed memory in bytes. + span: AtomicUsize, + /// The region's chunk map. + map: AtomicPtr, +} + +impl Directory { + const fn new() -> Self { + Self { + base: AtomicUsize::new(0), + span: AtomicUsize::new(0), + map: AtomicPtr::new(ptr::null_mut()), + } + } + + /// Records where `region`'s chunks and chunk map are. + fn publish(&self, region: &Region<'_>) { + self.base.store(region.chunk_ptr(0).addr(), Ordering::Relaxed); + self.span.store(region.span(), Ordering::Relaxed); + self.map.store(region.map_ptr().cast_mut(), Ordering::Relaxed); + } + + /// The chunk map entry of the block at `ptr`. + /// + /// # Safety + /// + /// The calling thread must have published the directory, and `ptr` must lie in the region. + #[inline(always)] + unsafe fn entry(&self, ptr: *const u8) -> Entry { + // SAFETY: forwarded. + unsafe { self.entry_at(ptr.addr() - self.base.load(Ordering::Relaxed)) } + } + + /// The chunk map entry of the block at `ptr`, or `None` if `ptr` is not in the region. + /// + /// # Safety + /// + /// The calling thread must have published the directory. + #[inline(always)] + unsafe fn entry_in_region(&self, ptr: *const u8) -> Option { + let offset = ptr.addr().wrapping_sub(self.base.load(Ordering::Relaxed)); + // SAFETY: the offset shows that the pointer lies in the region. + (offset < self.span.load(Ordering::Relaxed)).then(|| unsafe { self.entry_at(offset) }) + } + + /// The chunk map entry of the chunk `offset` bytes into the managed memory. + /// + /// # Safety + /// + /// As for [`entry`](Self::entry), and the offset must be inside the managed memory. + #[inline(always)] + unsafe fn entry_at(&self, offset: usize) -> Entry { + // SAFETY: the offset is inside the region, whose map has an entry for every chunk. + let slot = unsafe { &*self.map.load(Ordering::Relaxed).add(offset >> CHUNK_SHIFT) }; + Entry(slot.load(Ordering::Relaxed)) + } } impl Bcmalloc { @@ -111,7 +202,12 @@ impl Bcmalloc { /// An allocator with the given configuration. pub const fn with_config(config: Config) -> Self { - Self { config, region: AtomicPtr::new(ptr::null_mut()), key: AtomicUsize::new(tls::NO_KEY) } + Self { + config, + region: AtomicPtr::new(ptr::null_mut()), + key: AtomicUsize::new(tls::NO_KEY), + directory: Directory::new(), + } } /// The configuration the region was or will be created with. @@ -150,27 +246,76 @@ impl Bcmalloc { self.existing()?.block_layout(ptr.as_ptr()) } - /// Allocates `size` bytes aligned to 16, as C's `malloc` does, or returns null if there is no - /// room. A size of zero gets a block of its own. + /// Allocates `size` bytes aligned to 16, as C's `malloc` does, or returns null and sets `errno` + /// to `ENOMEM` if there is no room. A size of zero gets a block of its own. #[inline] pub fn malloc(&self, size: usize) -> *mut u8 { if size <= TABLE_MAX && - let Some(data) = self.thread_heap() + let Some(data) = self.thread_heap() && + let Some(block) = data.pop_table(size, true) { + return block; + } + self.malloc_slow(size) + } + + /// Allocates what [`malloc`](Self::malloc) does not take off a bin: a size the table does not + /// cover, an empty bin, or a thread without a heap. Failure sets `errno` here, so that the + /// fast path ends in a jump to this function and needs no stack frame of its own. + #[cold] + #[inline(never)] + fn malloc_slow(&self, size: usize) -> *mut u8 { + let block = match self.thread_heap() { // SAFETY: a thread's bound heap is claimed by that thread alone, and the table covers // the size. - return unsafe { data.alloc_table(size, true) }; + Some(data) if size <= TABLE_MAX => unsafe { data.alloc_table(size, true) }, + _ => { + Layout::from_size_align(size.max(1), MIN_ALIGN).map_or(ptr::null_mut(), |layout| { + // SAFETY: the layout has a non-zero size. + unsafe { GlobalAlloc::alloc(self, layout) } + }) + } + }; + if block.is_null() { + set_out_of_memory(); } - self.malloc_general(size) + block } - /// Allocates what [`malloc`](Self::malloc) does not take on its fast path. + /// Allocates zeroed memory for `count` items of `size` bytes, aligned to 16, as C's `calloc` + /// does, or returns null and sets `errno` to `ENOMEM` if there is no room or the size + /// overflows. + #[inline] + pub fn calloc(&self, count: usize, size: usize) -> *mut u8 { + // Small blocks are cleared without asking whether they are fresh, which costs less than + // finding out, so they come straight off a bin. + if let Some(bytes) = count.checked_mul(size) && + bytes < SMALL_ZEROED && + let Some(data) = self.thread_heap() && + let Some(block) = data.pop_table(bytes, true) + { + // SAFETY: the block holds at least `bytes` bytes and is ours. + unsafe { block.write_bytes(0, bytes) }; + return block; + } + self.calloc_slow(count, size) + } + + /// Allocates what [`calloc`](Self::calloc) does not take off a bin, and sets `errno` when it + /// fails. + #[cold] #[inline(never)] - fn malloc_general(&self, size: usize) -> *mut u8 { - Layout::from_size_align(size.max(1), MIN_ALIGN).map_or(ptr::null_mut(), |layout| { - // SAFETY: the layout has a non-zero size. - unsafe { GlobalAlloc::alloc(self, layout) } - }) + fn calloc_slow(&self, count: usize, size: usize) -> *mut u8 { + let layout = count + .checked_mul(size) + .and_then(|bytes| Layout::from_size_align(bytes.max(1), MIN_ALIGN).ok()); + // SAFETY: the layout has a non-zero size. + let block = layout + .map_or(ptr::null_mut(), |layout| unsafe { GlobalAlloc::alloc_zeroed(self, layout) }); + if block.is_null() { + set_out_of_memory(); + } + block } /// How many bytes the block that `ptr` points to holds, as C's `malloc_usable_size` tells, or @@ -214,12 +359,15 @@ impl Bcmalloc { /// block must not be used again. #[inline] pub unsafe fn free_unsized(&self, ptr: NonNull) { - match self.thread_heap() { - // SAFETY: a thread's bound heap is claimed by that thread alone, its region is this - // allocator's, and the caller vouches for the block. - Some(data) => unsafe { data.free_unsized(ptr) }, + let Some(data) = self.thread_heap() else { // SAFETY: the caller vouches for the block. - None => unsafe { self.free_unsized_unbound(ptr) }, + return unsafe { self.free_unsized_unbound(ptr) }; + }; + // SAFETY: a thread with a heap published the directory when it bound the heap. + if let Some(entry) = unsafe { self.directory.entry_in_region(ptr.as_ptr()) } { + // SAFETY: a thread's bound heap is claimed by that thread alone, its region is this + // allocator's, the entry is the block's, and the caller vouches for the block. + unsafe { data.free_with_entry(ptr, entry) }; } } @@ -363,6 +511,8 @@ impl Bcmalloc { /// The body of [`bind`](Self::bind), which runs with the binding flag set. fn bind_now(&self, region: &'static Region<'static>) -> Option<&'static HeapData> { + // The fast frees read the directory once this thread has a heap. + self.directory.publish(region); let key = self.key()?; let heap = region.heap()?; // The heap releases its claim if the system refuses to remember it. @@ -467,12 +617,18 @@ unsafe impl GlobalAlloc for Bcmalloc { unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { // SAFETY: the caller guarantees the block is live, so it is not null. let ptr = unsafe { NonNull::new_unchecked(ptr) }; - match self.thread_heap() { - // SAFETY: a thread's bound heap is claimed by that thread alone, and the caller - // guarantees the block came from this allocator with this layout. - Some(data) => unsafe { data.dealloc(ptr, layout) }, + let Some(data) = self.thread_heap() else { + // SAFETY: the caller guarantees the block came from this allocator with this layout. + return unsafe { self.dealloc_unbound(ptr, layout) }; + }; + if layout.size() <= MAX_SMALL { + // SAFETY: a thread's bound heap is claimed by that thread alone, it published the + // directory when it bound the heap, and the caller guarantees the block came from + // this allocator with this layout, so it is a block of a slab in the region. + unsafe { data.free_entry(ptr.as_ptr().cast(), self.directory.entry(ptr.as_ptr())) }; + } else { // SAFETY: as above. - None => unsafe { self.dealloc_unbound(ptr, layout) }, + unsafe { data.dealloc(ptr, layout) }; } } diff --git a/crates/bcmalloc/src/heap.rs b/crates/bcmalloc/src/heap.rs index 93cf376..7dd2531 100644 --- a/crates/bcmalloc/src/heap.rs +++ b/crates/bcmalloc/src/heap.rs @@ -684,19 +684,35 @@ impl HeapData { /// The caller must hold the claim on this slot, and `size` must be at most [`TABLE_MAX`]. #[inline(always)] pub(crate) unsafe fn alloc_table(&self, size: usize, wide: bool) -> *mut u8 { + if let Some(block) = self.pop_table(size, wide) { + return block; + } + // SAFETY: forwarded. + unsafe { self.refill(Class::from_table(Self::table_step(size, wide) * STEP)) }.cast() + } + + /// Pops a block of `size` bytes, as [`alloc_table`](Self::alloc_table) places it, off its bin, + /// or returns None if the bin is empty. + /// + /// The caller must hold the claim on this slot, and `size` must be at most [`TABLE_MAX`]. + #[inline(always)] + pub(crate) fn pop_table(&self, size: usize, wide: bool) -> Option<*mut u8> { debug_assert!(size <= TABLE_MAX); - let step = if wide { size.div_ceil(2 * STEP) * 2 } else { size.div_ceil(STEP) }; - // SAFETY: the size is at most `TABLE_MAX`, a multiple of 16, so its step is in the table, - // and every offset in it is that of a bin in the array. + let step = Self::table_step(size, wide); + // SAFETY: the size is at most `TABLE_MAX`, so its step is in the table, and every offset in + // it is that of a bin in the array. let bin = unsafe { let offset = *BIN_OFFSETS.get_unchecked(step); &*self.private.bins.as_ptr().byte_add(usize::from(offset)) }; - if let Some(block) = Self::pop_from(bin) { - return block.cast(); - } - // SAFETY: forwarded. - unsafe { self.refill(Class::from_table(step * STEP)) }.cast() + Self::pop_from(bin).map(<*mut Block>::cast) + } + + /// The index in the class table of a request of `size` bytes. A wide request rounds the size + /// up to a multiple of 16, whose class's blocks are 16-byte aligned. + #[inline(always)] + const fn table_step(size: usize, wide: bool) -> usize { + if wide { size.div_ceil(2 * STEP) * 2 } else { size.div_ceil(STEP) } } /// Allocates anything that the fast path in [`HeapData::alloc`] does not take. @@ -1123,6 +1139,18 @@ impl HeapData { #[inline(always)] pub(crate) unsafe fn free_unsized(&self, ptr: NonNull) { let Some(entry) = self.entry_in_region(ptr.as_ptr()) else { return }; + // SAFETY: forwarded, and the entry is the block's. + unsafe { self.free_with_entry(ptr, entry) }; + } + + /// Frees the block at `ptr`, of a slab or huge, whose chunk map entry is `entry`. + /// + /// # Safety + /// + /// The caller must hold the claim on this slot, `entry` must be the entry of the block's chunk, + /// and the block must be live and not used again. + #[inline(always)] + pub(crate) unsafe fn free_with_entry(&self, ptr: NonNull, entry: Entry) { if let Some(chunks) = entry.huge_chunks() { // SAFETY: a huge block of `chunks` chunks has this layout, and the caller gives it up. return unsafe { @@ -1155,7 +1183,7 @@ impl HeapData { /// /// As for [`dealloc`](Self::dealloc), and `entry` must be the entry of the block's chunk. #[inline(always)] - unsafe fn free_entry(&self, block: *mut Block, entry: Entry) { + pub(crate) unsafe fn free_entry(&self, block: *mut Block, entry: Entry) { // SAFETY: entries hold the offset of a bin in the array. let bin = unsafe { &*self.private.bins.as_ptr().byte_add(entry.bin_offset()) }; #[cfg(feature = "metrics")] diff --git a/crates/cabi/src/cxx.rs b/crates/cabi/src/cxx.rs new file mode 100644 index 0000000..6e9a085 --- /dev/null +++ b/crates/cabi/src/cxx.rs @@ -0,0 +1,544 @@ +//! The C++ allocation operators, `new` and `delete` in all their forms, as the preload libraries of +//! mimalloc, snmalloc and jemalloc define them too. +//! +//! Without them, a C++ program's `new` runs libstdc++'s operator, which calls `malloc` through the +//! dynamic linker's table and checks the result, and `delete` goes the same way to `free`. Defined +//! here, both reach the allocator's fast paths directly. +//! +//! A throwing `new` that cannot allocate must call the program's new-handler until it can, and +//! throw `std::bad_alloc` when there is none. The handler may throw too. Rust cannot throw a C++ +//! exception, and one must not unwind through a Rust frame, so on x86-64 and AArch64 the throwing +//! forms are short assembly functions: they call the allocator and return its block, and when it +//! has none they jump to the C++ runtime's own definition of the operator, found with +//! `dlsym(RTLD_NEXT)`. That definition calls `malloc` or `aligned_alloc` of this library again, +//! runs the handler and throws, and the jump has left no frame of this library on the stack. On +//! other architectures the throwing forms are not defined, so the runtime's run instead. A +//! `nothrow` form that cannot allocate hands over to the runtime's `nothrow` form the same way, +//! which runs the handler and returns null. +//! +//! The sizes that the sized forms of `delete` pass are not needed: a free reads the block's size +//! class from the chunk map anyway. +//! +//! A program that replaces some of the operators itself gets this library's for the others, as with +//! the preload libraries of mimalloc, jemalloc and tcmalloc. The standard has the default `nothrow` +//! `new` call the program's `new`, and a sized `delete` its unsized `delete`; these do not. + +#![allow(non_snake_case, reason = "these are the C++ ABI names of the operators")] + +use crate::{ALLOCATOR, allocate}; +use core::{ + ffi::{CStr, c_void}, + mem, + ptr::{self, NonNull}, +}; + +/// The forms of `new` that hand a failed allocation over to the C++ runtime, as indices into +/// [`RUNTIME_NAMES`]. +const NEW: usize = 0; +const NEW_ARRAY: usize = 1; +const NEW_ALIGNED: usize = 2; +const NEW_ARRAY_ALIGNED: usize = 3; +const NEW_NOTHROW: usize = 4; +const NEW_ARRAY_NOTHROW: usize = 5; +const NEW_ALIGNED_NOTHROW: usize = 6; +const NEW_ARRAY_ALIGNED_NOTHROW: usize = 7; + +/// The symbols of those forms. +const RUNTIME_NAMES: [&CStr; 8] = [ + c"_Znwm", + c"_Znam", + c"_ZnwmSt11align_val_t", + c"_ZnamSt11align_val_t", + c"_ZnwmRKSt9nothrow_t", + c"_ZnamRKSt9nothrow_t", + c"_ZnwmSt11align_val_tRKSt9nothrow_t", + c"_ZnamSt11align_val_tRKSt9nothrow_t", +]; + +/// The C++ runtime's definition of the form of `new` at `form` in [`RUNTIME_NAMES`]: the next +/// one after this library's, or null if there is none. +fn runtime_new(form: usize) -> *mut c_void { + // SAFETY: the name is a valid C string, and RTLD_NEXT searches the objects after this one. + unsafe { libc::dlsym(libc::RTLD_NEXT, RUNTIME_NAMES[form].as_ptr()) } +} + +/// Allocates for a throwing `new` of the default alignment, or returns null. Called from the +/// assembly of the throwing forms. +#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] +extern "C" fn new_block(size: usize) -> *mut c_void { + ALLOCATOR.malloc(size).cast() +} + +/// Allocates for a throwing `new` with an alignment, or returns null. Called from the assembly of +/// the throwing forms. +#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] +extern "C" fn new_aligned_block(size: usize, align: usize) -> *mut c_void { + allocate(size, align) +} + +/// Returns the C++ runtime's definition of the throwing form of `new` at `form`, for its caller +/// to jump to with the original arguments, or aborts if there is none. Called from the assembly of +/// the throwing forms once the allocator has failed. +#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] +extern "C" fn runtime_throwing_new(form: usize) -> *mut c_void { + let runtime = runtime_new(form); + if runtime.is_null() { + const MESSAGE: &[u8] = b"bcmalloc: out of memory in operator new, and no C++ runtime\n"; + // SAFETY: the message is valid for its length, and abort has no preconditions. + unsafe { + libc::write(2, MESSAGE.as_ptr().cast(), MESSAGE.len()); + libc::abort() + } + } + runtime +} + +/// The body of a throwing `new` that takes a size. It saves the size across the call to `$block`, +/// and when that returns null it fetches the runtime's operator and jumps to it with the size, with +/// the stack as the caller left it. +#[cfg(target_arch = "x86_64")] +macro_rules! throwing_new { + ($block:path, $form:expr) => { + core::arch::naked_asm!( + ".cfi_startproc", + "push rdi", + ".cfi_adjust_cfa_offset 8", + "call {block}", + "pop rdi", + ".cfi_adjust_cfa_offset -8", + "test rax, rax", + "jz 2f", + "ret", + "2:", + "push rdi", + ".cfi_adjust_cfa_offset 8", + "mov edi, {form}", + "call {runtime}", + "pop rdi", + ".cfi_adjust_cfa_offset -8", + "jmp rax", + ".cfi_endproc", + block = sym $block, + runtime = sym runtime_throwing_new, + form = const $form, + ) + }; +} + +/// As [`throwing_new`] for a throwing `new` that takes a size and an alignment. +#[cfg(target_arch = "x86_64")] +macro_rules! throwing_new_aligned { + ($block:path, $form:expr) => { + core::arch::naked_asm!( + ".cfi_startproc", + "push rdi", + ".cfi_adjust_cfa_offset 8", + "push rsi", + ".cfi_adjust_cfa_offset 8", + "sub rsp, 8", + ".cfi_adjust_cfa_offset 8", + "call {block}", + "add rsp, 8", + ".cfi_adjust_cfa_offset -8", + "pop rsi", + ".cfi_adjust_cfa_offset -8", + "pop rdi", + ".cfi_adjust_cfa_offset -8", + "test rax, rax", + "jz 2f", + "ret", + "2:", + "push rdi", + ".cfi_adjust_cfa_offset 8", + "push rsi", + ".cfi_adjust_cfa_offset 8", + "sub rsp, 8", + ".cfi_adjust_cfa_offset 8", + "mov edi, {form}", + "call {runtime}", + "add rsp, 8", + ".cfi_adjust_cfa_offset -8", + "pop rsi", + ".cfi_adjust_cfa_offset -8", + "pop rdi", + ".cfi_adjust_cfa_offset -8", + "jmp rax", + ".cfi_endproc", + block = sym $block, + runtime = sym runtime_throwing_new, + form = const $form, + ) + }; +} + +/// The body of a throwing `new` that takes a size, as for x86-64. The runtime's operator is +/// reached through x16, which branch target identification accepts at a function's entry. +#[cfg(target_arch = "aarch64")] +macro_rules! throwing_new { + ($block:path, $form:expr) => { + core::arch::naked_asm!( + ".cfi_startproc", + "stp x0, x30, [sp, #-16]!", + ".cfi_def_cfa_offset 16", + ".cfi_offset x30, -8", + "bl {block}", + "ldp x1, x30, [sp], #16", + ".cfi_def_cfa_offset 0", + ".cfi_restore x30", + "cbz x0, 2f", + "ret", + "2:", + "stp x1, x30, [sp, #-16]!", + ".cfi_def_cfa_offset 16", + ".cfi_offset x30, -8", + "mov x0, #{form}", + "bl {runtime}", + "mov x16, x0", + "ldp x0, x30, [sp], #16", + ".cfi_def_cfa_offset 0", + ".cfi_restore x30", + "br x16", + ".cfi_endproc", + block = sym $block, + runtime = sym runtime_throwing_new, + form = const $form, + ) + }; +} + +/// As [`throwing_new`] for a throwing `new` that takes a size and an alignment. +#[cfg(target_arch = "aarch64")] +macro_rules! throwing_new_aligned { + ($block:path, $form:expr) => { + core::arch::naked_asm!( + ".cfi_startproc", + "stp x0, x1, [sp, #-32]!", + ".cfi_def_cfa_offset 32", + "str x30, [sp, #16]", + ".cfi_offset x30, -16", + "bl {block}", + "ldr x30, [sp, #16]", + "ldp x2, x3, [sp], #32", + ".cfi_def_cfa_offset 0", + ".cfi_restore x30", + "cbz x0, 2f", + "ret", + "2:", + "stp x2, x3, [sp, #-32]!", + ".cfi_def_cfa_offset 32", + "str x30, [sp, #16]", + ".cfi_offset x30, -16", + "mov x0, #{form}", + "bl {runtime}", + "mov x16, x0", + "ldr x30, [sp, #16]", + "ldp x0, x1, [sp], #32", + ".cfi_def_cfa_offset 0", + ".cfi_restore x30", + "br x16", + ".cfi_endproc", + block = sym $block, + runtime = sym runtime_throwing_new, + form = const $form, + ) + }; +} + +/// Hands a `nothrow` form of `new` that could not allocate over to the runtime's, which runs the +/// new-handler as the standard asks, and returns its result, or null if there is no runtime. +#[cold] +#[inline(never)] +fn runtime_nothrow_new(form: usize, size: usize) -> *mut c_void { + let runtime = runtime_new(form); + if runtime.is_null() { + return ptr::null_mut(); + } + // SAFETY: the symbol is the runtime's form at `form`, which takes a size and a nothrow_t, an + // empty tag that is never read. A nothrow form catches every exception, so none unwinds into + // this frame. + unsafe { + let new: unsafe extern "C" fn(usize, *const c_void) -> *mut c_void = + mem::transmute(runtime); + new(size, ptr::null()) + } +} + +/// As [`runtime_nothrow_new`] for a `nothrow` form with an alignment. +#[cold] +#[inline(never)] +fn runtime_nothrow_new_aligned(form: usize, size: usize, align: usize) -> *mut c_void { + let runtime = runtime_new(form); + if runtime.is_null() { + return ptr::null_mut(); + } + // SAFETY: as above, for a form that also takes the alignment. + unsafe { + let new: unsafe extern "C" fn(usize, usize, *const c_void) -> *mut c_void = + mem::transmute(runtime); + new(size, align, ptr::null()) + } +} + +/// Frees for every form of `delete`. +#[inline(always)] +fn delete(ptr: *mut c_void) { + if let Some(block) = NonNull::new(ptr.cast::()) { + // SAFETY: `delete` is only given blocks that `new` returned, or null. + unsafe { ALLOCATOR.free_unsized(block) }; + } +} + +/// `operator new(size_t)`. +#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] +#[unsafe(naked)] +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _Znwm(size: usize) -> *mut c_void { + throwing_new!(new_block, NEW) +} + +/// `operator new[](size_t)`. +#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] +#[unsafe(naked)] +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _Znam(size: usize) -> *mut c_void { + throwing_new!(new_block, NEW_ARRAY) +} + +/// `operator new(size_t, const std::nothrow_t&)`. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _ZnwmRKSt9nothrow_t(size: usize, _: *const c_void) -> *mut c_void { + let block = ALLOCATOR.malloc(size).cast::(); + if block.is_null() { + return runtime_nothrow_new(NEW_NOTHROW, size); + } + block +} + +/// `operator new[](size_t, const std::nothrow_t&)`. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _ZnamRKSt9nothrow_t(size: usize, _: *const c_void) -> *mut c_void { + let block = ALLOCATOR.malloc(size).cast::(); + if block.is_null() { + return runtime_nothrow_new(NEW_ARRAY_NOTHROW, size); + } + block +} + +/// `operator new(size_t, std::align_val_t)`. +#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] +#[unsafe(naked)] +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _ZnwmSt11align_val_t(size: usize, align: usize) -> *mut c_void { + throwing_new_aligned!(new_aligned_block, NEW_ALIGNED) +} + +/// `operator new[](size_t, std::align_val_t)`. +#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] +#[unsafe(naked)] +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _ZnamSt11align_val_t(size: usize, align: usize) -> *mut c_void { + throwing_new_aligned!(new_aligned_block, NEW_ARRAY_ALIGNED) +} + +/// `operator new(size_t, std::align_val_t, const std::nothrow_t&)`. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _ZnwmSt11align_val_tRKSt9nothrow_t( + size: usize, + align: usize, + _: *const c_void, +) -> *mut c_void { + let block = allocate(size, align); + if block.is_null() { + return runtime_nothrow_new_aligned(NEW_ALIGNED_NOTHROW, size, align); + } + block +} + +/// `operator new[](size_t, std::align_val_t, const std::nothrow_t&)`. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub extern "C" fn _ZnamSt11align_val_tRKSt9nothrow_t( + size: usize, + align: usize, + _: *const c_void, +) -> *mut c_void { + let block = allocate(size, align); + if block.is_null() { + return runtime_nothrow_new_aligned(NEW_ARRAY_ALIGNED_NOTHROW, size, align); + } + block +} + +/// `operator delete(void*)`. +/// +/// # Safety +/// +/// `ptr` must be null or a live block from `new`. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdlPv(ptr: *mut c_void) { + delete(ptr); +} + +/// `operator delete[](void*)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdaPv(ptr: *mut c_void) { + delete(ptr); +} + +/// `operator delete(void*, size_t)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdlPvm(ptr: *mut c_void, _: usize) { + delete(ptr); +} + +/// `operator delete[](void*, size_t)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdaPvm(ptr: *mut c_void, _: usize) { + delete(ptr); +} + +/// `operator delete(void*, const std::nothrow_t&)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdlPvRKSt9nothrow_t(ptr: *mut c_void, _: *const c_void) { + delete(ptr); +} + +/// `operator delete[](void*, const std::nothrow_t&)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdaPvRKSt9nothrow_t(ptr: *mut c_void, _: *const c_void) { + delete(ptr); +} + +/// `operator delete(void*, std::align_val_t)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdlPvSt11align_val_t(ptr: *mut c_void, _: usize) { + delete(ptr); +} + +/// `operator delete[](void*, std::align_val_t)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdaPvSt11align_val_t(ptr: *mut c_void, _: usize) { + delete(ptr); +} + +/// `operator delete(void*, size_t, std::align_val_t)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdlPvmSt11align_val_t(ptr: *mut c_void, _: usize, _: usize) { + delete(ptr); +} + +/// `operator delete[](void*, size_t, std::align_val_t)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdaPvmSt11align_val_t(ptr: *mut c_void, _: usize, _: usize) { + delete(ptr); +} + +/// `operator delete(void*, std::align_val_t, const std::nothrow_t&)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdlPvSt11align_val_tRKSt9nothrow_t( + ptr: *mut c_void, + _: usize, + _: *const c_void, +) { + delete(ptr); +} + +/// `operator delete[](void*, std::align_val_t, const std::nothrow_t&)`. +/// +/// # Safety +/// +/// As for [`_ZdlPv`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn _ZdaPvSt11align_val_tRKSt9nothrow_t( + ptr: *mut c_void, + _: usize, + _: *const c_void, +) { + delete(ptr); +} + +#[cfg(test)] +mod test { + use super::*; + use crate::{MIN_ALIGN, malloc_usable_size}; + use core::ptr; + + #[test] + fn every_new_pairs_with_every_delete() { + let nothrow = ptr::null::(); + // SAFETY: each block comes from the matching new and is deleted once. + unsafe { + let plain = _Znwm(24); + assert!(!plain.is_null() && plain.addr().is_multiple_of(MIN_ALIGN)); + _ZdlPvm(plain, 24); + let array = _Znam(1000); + assert!(malloc_usable_size(array) >= 1000); + _ZdaPv(array); + let quiet = _ZnwmRKSt9nothrow_t(100, nothrow); + _ZdlPvRKSt9nothrow_t(quiet, nothrow); + let quiet_array = _ZnamRKSt9nothrow_t(100, nothrow); + _ZdaPvRKSt9nothrow_t(quiet_array, nothrow); + for align in [32, 256, 4096] { + let aligned = _ZnwmSt11align_val_t(40, align); + assert!(aligned.addr().is_multiple_of(align), "aligned to {align}"); + _ZdlPvmSt11align_val_t(aligned, 40, align); + let aligned = _ZnamSt11align_val_t(40, align); + assert!(aligned.addr().is_multiple_of(align)); + _ZdaPvSt11align_val_t(aligned, align); + let aligned = _ZnwmSt11align_val_tRKSt9nothrow_t(40, align, nothrow); + _ZdlPvSt11align_val_tRKSt9nothrow_t(aligned, align, nothrow); + let aligned = _ZnamSt11align_val_tRKSt9nothrow_t(40, align, nothrow); + _ZdaPvSt11align_val_tRKSt9nothrow_t(aligned, align, nothrow); + } + _ZdlPv(ptr::null_mut()); + _ZdaPvm(ptr::null_mut(), 0); + _ZdlPvSt11align_val_t(ptr::null_mut(), 64); + _ZdaPvmSt11align_val_t(ptr::null_mut(), 0, 64); + } + } + + #[test] + fn nothrow_new_returns_null_when_it_cannot_allocate() { + assert!(_ZnwmRKSt9nothrow_t(usize::MAX, ptr::null()).is_null()); + assert!(_ZnamSt11align_val_tRKSt9nothrow_t(usize::MAX / 2, 64, ptr::null()).is_null()); + } +} diff --git a/crates/cabi/src/lib.rs b/crates/cabi/src/lib.rs index 8e1b1ef..c47f26a 100644 --- a/crates/cabi/src/lib.rs +++ b/crates/cabi/src/lib.rs @@ -8,16 +8,18 @@ //! ``` //! //! Every function forwards to one [`Bcmalloc`] with its default configuration. C frees carry no -//! size, so `free`, `realloc` and `malloc_usable_size` read what the block is from the chunk map -//! through the calling thread's heap. +//! size, so `free`, `realloc` and `malloc_usable_size` read what the block is from the chunk map. //! Pointers that the allocator does not own are ignored by `free`, which can happen with memory a -//! program got before the library was loaded. +//! program got before the library was loaded. The C++ operators `new` and `delete` are defined +//! too, in the [`cxx`] module, so that C++ programs reach the same fast paths. //! //! This is for running C benchmarks and programs on Linux. On macOS, programs allocate through //! malloc zones, which this library does not register. #![allow(unsafe_code)] +pub mod cxx; + use bcmalloc::Bcmalloc; use core::{ alloc::{GlobalAlloc, Layout}, @@ -85,11 +87,8 @@ fn allocate(size: usize, align: usize) -> *mut c_void { /// Callable from C with the usual contract. #[cfg_attr(not(test), unsafe(no_mangle))] pub unsafe extern "C" fn malloc(size: usize) -> *mut c_void { - let block = ALLOCATOR.malloc(size); - if block.is_null() { - set_errno(libc::ENOMEM); - } - block.cast() + // Bcmalloc::malloc sets errno itself when it fails. + ALLOCATOR.malloc(size).cast() } /// C `free`. @@ -111,20 +110,8 @@ pub unsafe extern "C" fn free(ptr: *mut c_void) { /// Callable from C with the usual contract. #[cfg_attr(not(test), unsafe(no_mangle))] pub unsafe extern "C" fn calloc(count: usize, size: usize) -> *mut c_void { - let Some(bytes) = count.checked_mul(size) else { - set_errno(libc::ENOMEM); - return ptr::null_mut(); - }; - let Some(layout) = layout(bytes, MIN_ALIGN) else { - set_errno(libc::ENOMEM); - return ptr::null_mut(); - }; - // SAFETY: the layout has a non-zero size. - let block = unsafe { ALLOCATOR.alloc_zeroed(layout) }; - if block.is_null() { - set_errno(libc::ENOMEM); - } - block.cast() + // Bcmalloc::calloc sets errno itself when it fails. + ALLOCATOR.calloc(count, size).cast() } /// C `realloc`. A size of zero frees the block and returns null, as glibc does. @@ -150,6 +137,55 @@ pub unsafe extern "C" fn realloc(ptr: *mut c_void, size: usize) -> *mut c_void { moved.cast() } +/// The obsolete `cfree`, the same as `free`. +/// +/// # Safety +/// +/// As for [`free`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn cfree(ptr: *mut c_void) { + // SAFETY: forwarded. + unsafe { free(ptr) }; +} + +/// C23 `free_sized`. The size is not needed, because the chunk map holds the block's class. +/// +/// # Safety +/// +/// As for [`free`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn free_sized(ptr: *mut c_void, _size: usize) { + // SAFETY: forwarded. + unsafe { free(ptr) }; +} + +/// C23 `free_aligned_sized`. +/// +/// # Safety +/// +/// As for [`free`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn free_aligned_sized(ptr: *mut c_void, _align: usize, _size: usize) { + // SAFETY: forwarded. + unsafe { free(ptr) }; +} + +/// `reallocarray`, a `realloc` of `count` items of `size` bytes that fails when the product +/// overflows. +/// +/// # Safety +/// +/// As for [`realloc`]. +#[cfg_attr(not(test), unsafe(no_mangle))] +pub unsafe extern "C" fn reallocarray(ptr: *mut c_void, count: usize, size: usize) -> *mut c_void { + let Some(bytes) = count.checked_mul(size) else { + set_errno(libc::ENOMEM); + return ptr::null_mut(); + }; + // SAFETY: forwarded. + unsafe { realloc(ptr, bytes) } +} + /// C11 `aligned_alloc`. /// /// # Safety diff --git a/crates/cabi/tests/operator_new.cpp b/crates/cabi/tests/operator_new.cpp new file mode 100644 index 0000000..c760d0a --- /dev/null +++ b/crates/cabi/tests/operator_new.cpp @@ -0,0 +1,82 @@ +// Checks the C++ operators of the C library from a C++ program that preloads it: a throwing new +// that cannot allocate runs the new-handler and throws std::bad_alloc, or what the handler throws, +// through the library, and a nothrow new runs the handler and returns null. Run by `just cabi-cxx`. +#include +#include +#include +#include +#include + +static int failures; + +static void check(bool ok, const char *what) { + std::printf("%s: %s\n", ok ? "ok " : "FAIL", what); + failures += !ok; +} + +// Too big for any allocator, and opaque to the compiler, so that no call is folded away. +static volatile std::size_t huge = SIZE_MAX / 2; +static void *volatile sink; + +static int handler_calls; +struct HandlerGaveUp {}; +static void giving_up_handler() { + ++handler_calls; + throw HandlerGaveUp{}; +} + +template static bool throws_bad_alloc(F allocate) { + try { + allocate(); + } catch (const std::bad_alloc &) { + return true; + } + return false; +} + +template static bool handler_ran_and_gave_up(F allocate) { + handler_calls = 0; + try { + allocate(); + } catch (const HandlerGaveUp &) { + return handler_calls == 1; + } + return false; +} + +int main() { + Dl_info info; + void *symbol = dlsym(RTLD_DEFAULT, "_Znwm"); + check(symbol && dladdr(symbol, &info) && std::strstr(info.dli_fname, "bcmalloc"), + "operator new is the library's"); + + const std::align_val_t align{64}; + check(throws_bad_alloc([&] { sink = ::operator new(huge); }), "new throws bad_alloc"); + check(throws_bad_alloc([&] { sink = ::operator new[](huge); }), "new[] throws bad_alloc"); + check(throws_bad_alloc([&] { sink = ::operator new(huge, align); }), + "aligned new throws bad_alloc"); + check(throws_bad_alloc([&] { sink = ::operator new[](huge, align); }), + "aligned new[] throws bad_alloc"); + check(::operator new(huge, std::nothrow) == nullptr, "nothrow new returns null"); + check(::operator new[](huge, align, std::nothrow) == nullptr, + "aligned nothrow new[] returns null"); + + std::set_new_handler(giving_up_handler); + check(handler_ran_and_gave_up([&] { sink = ::operator new(huge); }), + "new runs the handler, whose exception reaches the caller"); + check(handler_ran_and_gave_up([&] { sink = ::operator new[](huge, align); }), + "aligned new[] runs the handler, whose exception reaches the caller"); + handler_calls = 0; + check(::operator new(huge, std::nothrow) == nullptr && handler_calls == 1, + "nothrow new runs the handler and returns null"); + std::set_new_handler(nullptr); + + void *block = ::operator new(100); + void *aligned = ::operator new[](100, std::align_val_t{256}); + check(block && aligned && reinterpret_cast(aligned) % 256 == 0, + "new and aligned new[] allocate"); + ::operator delete(block, 100); + ::operator delete[](aligned, std::align_val_t{256}); + + return failures != 0; +} diff --git a/justfile b/justfile index 0c3c5bc..60e922c 100644 --- a/justfile +++ b/justfile @@ -83,9 +83,19 @@ bench-apps *args: # Build the C allocation interface as target/cabi/release/libbcmalloc_c.so (or .dylib), to preload # into C programs. The initial-exec TLS model needs nightly, and is what a preloaded library wants. -# It builds in its own target directory, so the flag does not rebuild the rest of the workspace. +# A panic aborts: nothing may unwind into C anyway, and without unwind paths the fast paths need +# no stack frame and end in jumps to the slow paths. It builds in its own target directory, so the +# flags do not rebuild the rest of the workspace. cabi: - RUSTFLAGS="-Z tls-model=initial-exec" cargo +nightly build -p bcmalloc-cabi --release --target-dir target/cabi + RUSTFLAGS="-Z tls-model=initial-exec -C panic=abort" cargo +nightly build -p bcmalloc-cabi --release --target-dir target/cabi + +# Check the C++ operators of the C library in a C++ program that preloads it (Linux, with a C++ +# compiler): a new that cannot allocate runs the new-handler and throws through the library. It +# builds as cabi does, without the nightly TLS model, in a target directory of its own. +cabi-cxx: + RUSTFLAGS="-C panic=abort" cargo build -p bcmalloc-cabi --release --target-dir target/cabi-cxx + c++ -std=c++17 -O2 -Wall crates/cabi/tests/operator_new.cpp -o target/cabi-cxx/operator_new -ldl + LD_PRELOAD=target/cabi-cxx/release/libbcmalloc_c.so target/cabi-cxx/operator_new # Run mimalloc-bench (https://github.com/daanx/mimalloc-bench, built with its build-bench-env.sh) # with bcmalloc added as an external allocator, for example From aff4b6c08ecac60aa3eafe57556281fefc5aeea4 Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 00:31:33 -0500 Subject: [PATCH 04/12] Spill the overflow of a full bin into batches that the next refill takes back A bin that has grown to its largest and overflows moves its oldest blocks into a batch, a 4 KiB block of the heap's own that holds 510 pointers, kept per class. The next refill of the class copies the newest batch back before it touches a slab. A burst of frees bigger than the bin then costs a copy of pointers each way, where giving the blocks back cost a bitmap write per block and the refill a bitmap read per block. Only a class that the heap also refills spills, messages never do, and the heap holds at most 1 MiB of spilled blocks. A burst that outgrows that budget is not one a refill takes back, and its batches would keep a few blocks of every slab it freed in use, so the class's batches go back to their slabs and the class spills again only after its next refill. Batches that no refill takes until the next maintenance step go back too, and a flush or thread exit returns them all. sh8benchN 0.199 -> 0.175 s (mi 0.183), user time 4.55 -> 3.58 s; glibc-thread -3%; rptestN +2% and +27% peak memory (EPYC, boost off, 3 runs). --- crates/bcmalloc/src/heap.rs | 351 ++++++++++++++++++++++++++++++++- crates/bcmalloc/src/metrics.rs | 13 +- crates/bcmalloc/src/region.rs | 2 + 3 files changed, 360 insertions(+), 6 deletions(-) diff --git a/crates/bcmalloc/src/heap.rs b/crates/bcmalloc/src/heap.rs index 7dd2531..8a58275 100644 --- a/crates/bcmalloc/src/heap.rs +++ b/crates/bcmalloc/src/heap.rs @@ -50,8 +50,11 @@ //! blocks to their owner prevents, or pull across many lines that the owner still holds. Blocks of //! the other classes always go home. //! -//! A bin that fills up gives its oldest half back: blocks of this heap's slabs go to the slab, and -//! the others go to their owners. +//! A bin that fills up moves its oldest blocks into a spilled batch, an array of pointers that the +//! next refill of the class copies back, so that a burst of frees bigger than the bin costs a copy +//! of pointers each way. Batches that no refill wants go back to their slabs at the heap's next +//! maintenance step, and when the heap has spilled as much as it may, a full bin gives its oldest +//! half back at once: blocks of this heap's slabs go to the slab, and the others to their owners. //! //! # Messages //! @@ -106,6 +109,22 @@ const MESSAGE_CLASS: Class = Class::for_size(MESSAGE_BYTES); /// id, so this many destinations can each fill a message without displacing each other. const OUTBOXES: usize = 16; +/// The size of a spilled batch, which is the block size of one class. +const BATCH_BYTES: usize = 4096; + +/// How many block pointers fit in a batch after its link and its count. +const BATCH_BLOCKS: usize = BATCH_BYTES / size_of::() - 2; + +/// The class that batches are allocated from. Its own bin never spills, so that spilling never +/// needs a batch to make room for a batch. +const BATCH_CLASS: Class = Class::for_size(BATCH_BYTES); + +/// How many bytes of blocks a heap may keep in spilled batches. Spilled blocks are blocks that the +/// program used a moment ago, so they add nothing to the peak, but they keep their slabs from going +/// back until a refill takes them or a maintenance step returns them. A budget of 1 MiB gave +/// sh8bench all the speed of 8 MiB, and many threads that each spill hold correspondingly less. +const SPILL_BUDGET: usize = 1 << 20; + /// An outbox is posted once it holds this many bytes of blocks, so that big blocks are not held /// back for long. A single block this large is sent on its own at once. const OUTBOX_BYTES: usize = 64 << 10; @@ -176,6 +195,11 @@ const OVERFLOW: u8 = 0b10; /// The bin has missed since the last maintenance step. const MISSED: u8 = 0b100; +/// The bin ran dry in this maintenance interval or the one before, so the heap allocates from the +/// class and a spilled batch has a refill to wait for. A heap that only frees a class never spills +/// it, and gives the blocks back at once. +const REFILLED: u8 = 0b1000; + /// Blocks on their way to the heap that owns their slabs. /// /// A message is an ordinary block of [`MESSAGE_CLASS`] from the sender's heap. Its first word is @@ -190,6 +214,21 @@ struct Message { const _: () = assert!(size_of::() == MESSAGE_BYTES); const _: () = assert!(MESSAGE_CLASS.block_size() == MESSAGE_BYTES); +/// Blocks that overflowed a bin, kept for the next refill of their class. +/// +/// A batch is an ordinary block of [`BATCH_CLASS`] from the heap's own slabs, and the batches of a +/// class form a stack, newest first, through `next`. `blocks` holds the blocks in the order they +/// sat in the bin, newest first. +#[repr(C)] +struct Batch { + next: *mut Self, + count: usize, + blocks: [*mut Block; BATCH_BLOCKS], +} + +const _: () = assert!(size_of::() == BATCH_BYTES); +const _: () = assert!(BATCH_CLASS.block_size() == BATCH_BYTES); + /// A stack of free block pointers for one class. See the [module documentation](self). /// /// The stack lives in the heap's slot array and grows down. It is empty when `top` is at the end of @@ -242,6 +281,10 @@ struct Lists { full: Cell<*const Slab>, /// How many of the class's slabs that the heap holds have been filled once. filled: Cell, + /// The batches that overflows of the class's bin spilled, newest first. + spill: Cell<*mut Batch>, + /// Whether a refill took a spilled batch since the last maintenance step. + unspilled: Cell, /// How many slabs of the class the heap holds. #[cfg(feature = "metrics")] slabs: crate::metrics::Counter, @@ -265,6 +308,9 @@ struct Private { draining: Cell, /// How many bytes of capacity the bins have grown by, against [`GROWTH_BUDGET`]. grown: Cell, + /// How many bytes of blocks the spilled batches of all classes hold, against + /// [`SPILL_BUDGET`]. + spilled: Cell, /// The start of the managed memory, the slab descriptors and the chunk map of the region this /// slot was claimed from, so that the fast paths reach them without loading the region. They /// are set at every claim and valid while the claim lasts. @@ -337,6 +383,7 @@ impl HeapData { refills: Cell::new(0), draining: Cell::new(false), grown: Cell::new(0), + spilled: Cell::new(0), base: Cell::new(ptr::null_mut()), span: Cell::new(0), map: Cell::new(ptr::null()), @@ -376,6 +423,8 @@ impl HeapData { active_last: Cell::new(ptr::null()), full: Cell::new(ptr::null()), filled: Cell::new(0), + spill: Cell::new(ptr::null_mut()), + unspilled: Cell::new(false), #[cfg(feature = "metrics")] slabs: crate::metrics::Counter::new(), } @@ -492,7 +541,8 @@ impl HeapData { fn note_miss(&self, class: Class, kind: u8) -> bool { let bin = self.bin(class); let last = bin.misses.get() & (UNDERFLOW | OVERFLOW); - bin.misses.set(kind | MISSED); + let refilled = if kind == UNDERFLOW { REFILLED } else { bin.misses.get() & REFILLED }; + bin.misses.set(kind | MISSED | refilled); let capacity = usize::from(bin.capacity.get()); if last == 0 || last == kind || capacity == class.bin_max() { return false; @@ -770,6 +820,11 @@ impl HeapData { return block; } self.note_miss(class, UNDERFLOW); + if self.unspill(region, class) && + let Some(block) = self.pop(class) + { + return block; + } if self.fill(region, class) == 0 { // The region looks full, but this heap may be sitting on empty slabs. Give them back // and retry. @@ -821,7 +876,19 @@ impl HeapData { let bytes = (capacity - shrunk) * class.block_size(); self.private.grown.set(self.private.grown.get() - bytes); } - bin.misses.set(bin.misses.get() & !MISSED); + // A bin that has not missed for a whole interval forgets that it was refilled. + let misses = bin.misses.get(); + bin.misses.set(if misses & MISSED == 0 { + misses & !REFILLED + } else { + misses & !MISSED + }); + // Batches that no refill wanted since the last step go back to their slabs. + let lists = self.lists(class); + if !lists.unspilled.replace(false) && !lists.spill.get().is_null() { + // SAFETY: forwarded. + unsafe { self.return_spill(region, class, false) }; + } } } } @@ -1210,12 +1277,17 @@ impl HeapData { #[cold] #[inline(never)] unsafe fn free_full(&self, block: *mut Block, class: Class) { + // SAFETY: the claim keeps the region alive. + let region = unsafe { self.region() }; // A thread that only frees never refills, so this is where it takes in its mail. // SAFETY: the caller holds the claim. - unsafe { self.read_mail(self.region()) }; + unsafe { self.read_mail(region) }; if self.note_miss(class, OVERFLOW) && self.push(class, block) { return; } + if self.spill(region, class) && self.push(class, block) { + return; + } loop { let keep = usize::from(self.bin(class).capacity.get()) / 2; // SAFETY: forwarded. @@ -1524,6 +1596,11 @@ impl HeapData { unsafe fn empty_caches(&self, region: &Region<'_>) { // SAFETY: forwarded. unsafe { self.drain_inbox(region) }; + // Before the bins, because returning a spill frees its batches, which are blocks too. + for index in 0..CLASSES { + // SAFETY: forwarded. + unsafe { self.return_spill(region, Class::from_index(index), true) }; + } for kept in &self.private.kept { let block = kept.replace(Kept::NONE); if block.chunks != 0 { @@ -1554,6 +1631,161 @@ impl HeapData { self.private.grown.set(0); } + /// Moves the oldest blocks of the full bin of `class`, up to half of it and at most a batch, + /// into a spilled batch for the next refill of the class. A burst of frees bigger than the bin + /// then costs a copy of pointers, where giving the blocks back costs a bitmap write per block + /// now and a bitmap read per block when the class is refilled. Returns false, and moves + /// nothing, if the class does not spill, its bin can still grow, the heap has spilled as much + /// as it may, or there is no memory for a batch. In the third case the batches of the class go + /// back to their slabs, because the burst outgrew them. + fn spill(&self, region: &Region<'_>, class: Class) -> bool { + let bin = self.bin(class); + // Messages circulate between heaps, so they go home at once and are never held here. + if class == BATCH_CLASS || class == MESSAGE_CLASS || bin.misses.get() & REFILLED == 0 { + return false; + } + // Bursts that fit in a bin grown to its largest are the bin's to absorb, so a batch is + // only for a bin that cannot grow any more. + let capacity = usize::from(bin.capacity.get()); + let room = self.private.grown.get() + capacity * class.block_size() <= GROWTH_BUDGET; + if capacity < class.bin_max() && room { + return false; + } + let len = self.bin_len(class); + let gone = (len - usize::from(bin.capacity.get()) / 2).min(BATCH_BLOCKS); + let bytes = gone * class.block_size(); + if gone == 0 { + return false; + } + if self.private.spilled.get() + bytes > SPILL_BUDGET { + // A burst bigger than the budget is not one that the next refills take back. Its + // oldest blocks, kept in batches, would hold on to a few blocks of every slab the burst + // freed, which then could never be released, so they go back with the rest of it, and + // the class spills again only after its next refill. + bin.misses.set(bin.misses.get() & !REFILLED); + // SAFETY: the caller holds the claim. + unsafe { self.return_spill(region, class, false) }; + return false; + } + let batch = self.alloc_batch(region); + if batch.is_null() { + return false; + } + count!(self, BlocksSpilled, gone); + let lists = self.lists(class); + // The oldest blocks are at the end of the bin. Taking them out moves the rest down. + let top = bin.top.get(); + // SAFETY: the bin holds `len` blocks from `top`, the batch is a fresh block of ours with + // room for `gone` of them, and allocating it touched no bin but that of `BATCH_CLASS`. + unsafe { + ptr::copy_nonoverlapping(top.add(len - gone), (&raw mut (*batch).blocks).cast(), gone); + ptr::copy(top, top.add(gone), len - gone); + (*batch).count = gone; + (*batch).next = lists.spill.get(); + } + bin.top.set(top.wrapping_add(gone)); + lists.spill.set(batch); + self.private.spilled.set(self.private.spilled.get() + bytes); + true + } + + /// Fills the empty bin of `class` from its newest spilled batch, and returns whether there was + /// one. A batch bigger than the bin, which can happen after the bin shrank, keeps the rest. + fn unspill(&self, region: &Region<'_>, class: Class) -> bool { + let lists = self.lists(class); + let batch = lists.spill.get(); + if batch.is_null() { + return false; + } + let bin = self.bin(class); + debug_assert_eq!(self.bin_len(class), 0, "a bin takes a batch only when it is empty"); + // SAFETY: spilled batches are blocks of ours that only this heap uses. + let count = unsafe { (*batch).count }; + let take = count.min(usize::from(bin.capacity.get())); + let first = bin.top.get().wrapping_sub(take); + // SAFETY: the bin is empty, so the `take` slots below its end are free, and the batch + // holds `count` blocks. + unsafe { + ptr::copy_nonoverlapping( + (&raw const (*batch).blocks).cast::<*mut Block>().add(count - take), + first, + take, + ); + } + bin.top.set(first); + count!(self, BlocksUnspilled, take); + lists.unspilled.set(true); + self.private.spilled.set(self.private.spilled.get() - take * class.block_size()); + if take == count { + // SAFETY: as above. + lists.spill.set(unsafe { (*batch).next }); + self.free_batch(region, batch); + } else { + // SAFETY: as above. + unsafe { (*batch).count = count - take }; + } + true + } + + /// Gives every spilled batch of `class` back: its blocks go to their slabs or owners as + /// [`give_back`](Self::give_back) sends them, `directly` or through the outboxes, and the + /// batches themselves to their slab. + /// + /// # Safety + /// + /// The caller must hold the claim. + unsafe fn return_spill(&self, region: &Region<'_>, class: Class, directly: bool) { + let lists = self.lists(class); + loop { + let batch = lists.spill.get(); + if batch.is_null() { + return; + } + // SAFETY: spilled batches are blocks of ours that only this heap uses, and each holds + // `count` distinct in-use blocks of the class. + let blocks = unsafe { + lists.spill.set((*batch).next); + core::slice::from_raw_parts( + (&raw const (*batch).blocks).cast::<*mut Block>(), + (*batch).count, + ) + }; + self.private + .spilled + .set(self.private.spilled.get() - blocks.len() * class.block_size()); + #[cfg(feature = "metrics")] + self.bin(BATCH_CLASS).frees.add(1); + // SAFETY: the blocks are in use and ours to give back, and the batch is not read again. + unsafe { + self.give_back(region, class, blocks, directly); + self.give_back(region, BATCH_CLASS, &[batch.cast()], true); + } + } + } + + /// Allocates a block for a spilled batch without looking at the inbox or at spilled batches. + /// Returns null if the region is out of room. + fn alloc_batch(&self, region: &Region<'_>) -> *mut Batch { + if let Some(block) = self.pop(BATCH_CLASS) { + return block.cast(); + } + if self.fill(region, BATCH_CLASS) == 0 { + return ptr::null_mut(); + } + self.pop(BATCH_CLASS).map_or(ptr::null_mut(), <*mut Block>::cast) + } + + /// Frees a batch that a refill emptied, without spilling or reading the inbox. + fn free_batch(&self, region: &Region<'_>, batch: *mut Batch) { + #[cfg(feature = "metrics")] + self.bin(BATCH_CLASS).frees.add(1); + if !self.push(BATCH_CLASS, batch.cast()) { + // SAFETY: a batch is an in-use block of one of this heap's slabs of `BATCH_CLASS`, + // which is given up here. + unsafe { self.free_to_slab(region, batch.cast(), BATCH_CLASS) }; + } + } + /// Handles a slab with no live blocks. Its chunks are returned unless it is the only active /// slab of its class, in which case it is kept for the next allocation. fn retire(&self, region: &Region<'_>, slab: Owned<'_>) { @@ -1776,6 +2008,7 @@ impl HeapData { } entry }; + let mut spilled = 0; for index in 0..CLASSES { let class = Class::from_index(index); let lists = &self.private.classes[index]; @@ -1823,7 +2056,28 @@ impl HeapData { claim(block, "a bin"); slot = slot.wrapping_add(1); } + let mut batch = lists.spill.get(); + while !batch.is_null() { + assert_eq!(check(batch.cast(), "a spill").class(), BATCH_CLASS); + claim(batch.cast(), "a spill"); + // SAFETY: spilled batches are blocks of ours, each holding `count` blocks. + let blocks = unsafe { &(&(*batch).blocks)[..(*batch).count] }; + assert!(!blocks.is_empty() && class != BATCH_CLASS, "a spilled batch is wrong"); + for &block in blocks { + let entry = check(block, "a spill"); + assert_eq!(entry.class(), class, "a spill holds a block of another class"); + assert!( + entry.owner() == id || bin.anywhere.get(), + "a spill holds another heap's block of a class that must go home" + ); + claim(block, "a spill"); + spilled += class.block_size(); + } + // SAFETY: as above. + batch = unsafe { (*batch).next }; + } } + assert_eq!(spilled, self.private.spilled.get(), "the spill budget disagrees"); for outbox in &self.private.outboxes { let message = outbox.message.get(); if message.is_null() { @@ -2169,6 +2423,93 @@ mod test { assert_eq!(used(®ion), 0); } + #[test] + fn a_burst_bigger_than_the_bin_spills_and_the_next_burst_takes_it_back() { + let test = TestRegion::new(128, 1); + let region = test.region(); + let heap = region.heap().unwrap(); + let layout = layout(64, 8); + let burst = 4 * Class::for_size(64).bin_max(); + // Bursts that alternate with refills grow the bin to its largest, and only then does an + // overflow spill. + for _ in 0..8 { + let blocks = alloc_many(&heap, layout, burst); + free_all(&heap, layout, blocks); + } + heap.validate(); + assert!(heap.data.private.spilled.get() > 0, "an overflowing bin spills"); + let slabs = used(®ion); + // The next burst takes the spilled blocks back before it touches a slab. + let blocks = alloc_many(&heap, layout, burst); + assert_eq!(used(®ion), slabs, "the next burst reuses the last one's blocks"); + heap.validate(); + free_all(&heap, layout, blocks); + heap.flush(); + assert_eq!(heap.data.private.spilled.get(), 0); + assert_eq!(used(®ion), 0, "a flush returns spilled blocks to their slabs"); + } + + #[test] + fn a_burst_bigger_than_the_spill_budget_keeps_no_batches() { + let test = TestRegion::new(128, 1); + let region = test.region(); + let heap = region.heap().unwrap(); + let layout = layout(64, 8); + let class = Class::for_size(64); + for _ in 0..8 { + let blocks = alloc_many(&heap, layout, 4 * class.bin_max()); + free_all(&heap, layout, blocks); + } + assert!(!heap.data.lists(class).spill.get().is_null(), "bursts that fit spill"); + // Twice the budget: batches would pin a few blocks of every slab the burst freed. + let burst = 2 * SPILL_BUDGET / class.block_size(); + let blocks = alloc_many(&heap, layout, burst); + free_all(&heap, layout, blocks); + heap.validate(); + assert!(heap.data.lists(class).spill.get().is_null(), "the burst outgrew the batches"); + assert_eq!(heap.data.private.spilled.get(), 0); + heap.flush(); + assert_eq!(used(®ion), 0); + } + + #[test] + fn spilled_batches_that_no_refill_takes_go_back_at_maintenance() { + let test = TestRegion::new(128, 1); + let region = test.region(); + let heap = region.heap().unwrap(); + let (layout, other) = (layout(64, 8), layout(1024, 8)); + let class = Class::for_size(64); + for _ in 0..8 { + let blocks = alloc_many(&heap, layout, 4 * class.bin_max()); + free_all(&heap, layout, blocks); + } + assert!(!heap.data.lists(class).spill.get().is_null()); + // Refills of another class run maintenance steps, which return the idle class's batches. + for _ in 0..4 { + let blocks = alloc_many(&heap, other, 16 * MAINTENANCE_INTERVAL as usize); + free_all(&heap, other, blocks); + } + heap.validate(); + assert!(heap.data.lists(class).spill.get().is_null(), "idle batches go back"); + } + + #[test] + fn a_heap_that_only_frees_a_class_never_spills_it() { + let test = TestRegion::new(128, 2); + let region = test.region(); + let (owner, freer) = (region.heap().unwrap(), region.heap().unwrap()); + // 64-byte blocks may stay in the freeing heap's bin, but that heap never allocates them. + let layout = layout(64, 8); + for _ in 0..8 { + let blocks = alloc_many(&owner, layout, 4 * Class::for_size(64).bin_max()); + free_all(&freer, layout, blocks); + } + freer.validate(); + assert_eq!(freer.data.private.spilled.get(), 0, "no refill would take a spill"); + freer.flush(); + owner.flush(); + } + #[test] fn a_full_bin_gives_back_its_older_half() { let test = TestRegion::new(16, 1); diff --git a/crates/bcmalloc/src/metrics.rs b/crates/bcmalloc/src/metrics.rs index 5288aba..f333bd6 100644 --- a/crates/bcmalloc/src/metrics.rs +++ b/crates/bcmalloc/src/metrics.rs @@ -88,10 +88,12 @@ pub(crate) enum Event { BinsGrown, BinsShrunk, ZeroedFresh, + BlocksSpilled, + BlocksUnspilled, } /// How many kinds of [`Event`] there are. -const EVENTS: usize = Event::ZeroedFresh as usize + 1; +const EVENTS: usize = Event::BlocksUnspilled as usize + 1; /// The slow-path counters of one heap slot. #[derive(Debug)] @@ -198,6 +200,10 @@ pub struct Events { pub bins_shrunk: u64, /// Zeroed requests served from fresh memory, which needed no clearing. pub zeroed_fresh: u64, + /// Blocks moved out of a full bin into a spilled batch. + pub blocks_spilled: u64, + /// Blocks a refill took back from a spilled batch. + pub blocks_unspilled: u64, /// Passes of the purge clock. pub purge_passes: u64, /// Chunks the purge clock gave back to the operating system. @@ -428,6 +434,11 @@ impl fmt::Display for Metrics { events.mail_reads, events.blocks_filed )?; + writeln!( + f, + " spilled {} blocks, took back {}", + events.blocks_spilled, events.blocks_unspilled + )?; writeln!( f, " huge +{} -{} ({} cached), bins grown {} shrunk {}, fresh zeroed {}, purges {} gave back {} reused {}", diff --git a/crates/bcmalloc/src/region.rs b/crates/bcmalloc/src/region.rs index a46df8b..b7acb7d 100644 --- a/crates/bcmalloc/src/region.rs +++ b/crates/bcmalloc/src/region.rs @@ -335,6 +335,8 @@ impl<'a> Region<'a> { bins_grown: sum(Event::BinsGrown), bins_shrunk: sum(Event::BinsShrunk), zeroed_fresh: sum(Event::ZeroedFresh), + blocks_spilled: sum(Event::BlocksSpilled), + blocks_unspilled: sum(Event::BlocksUnspilled), purge_passes: counters.purge_passes.get(), chunks_purged: counters.chunks_purged.get(), chunks_reused: counters.chunks_reused.get(), From 8d8702e93a07ca1a11c6fc815ae833e8cc7d7eb4 Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 00:46:48 -0500 Subject: [PATCH 05/12] Send remote frees in runs and file messages of one class with one copy give_back finds the runs of blocks that belong to one other heap, using the slab alignment to skip the chunk map within a slab, and send_run appends a whole run to the outbox with one look at it per message instead of a call per block. A single block from a free keeps its own short path, which a loop over runs made longer (channel and ring workloads lost a quarter of their speed on the M4). The runs are found out of line, in give_away, so that give_back's loop over the heap's own blocks stays as short as it was: inlined, it cost bulk 32 B in order a quarter and linked list a fifth on the M4. A message records the class of its blocks, and the owner copies a message of one class into the bin at once, giving what does not fit back to the slabs, where it looked each block up and pushed it alone. A heap keeps 32 outboxes instead of 16, so more destinations fill messages side by side. xmalloc-testN 0.203 -> 0.177 (sn 0.193), peak 101 -> 81 MiB; sh8benchN 0.172 -> 0.165; sh6benchN 0.0727 -> 0.0697; glibc-thread -3% (EPYC, boost off, 3 runs). --- crates/bcmalloc/src/heap.rs | 231 +++++++++++++++++++++++++++++++----- 1 file changed, 199 insertions(+), 32 deletions(-) diff --git a/crates/bcmalloc/src/heap.rs b/crates/bcmalloc/src/heap.rs index 8a58275..bbcd29e 100644 --- a/crates/bcmalloc/src/heap.rs +++ b/crates/bcmalloc/src/heap.rs @@ -107,7 +107,7 @@ const MESSAGE_CLASS: Class = Class::for_size(MESSAGE_BYTES); /// How many outboxes a heap keeps. A remote free goes to the one picked by the destination heap's /// id, so this many destinations can each fill a message without displacing each other. -const OUTBOXES: usize = 16; +const OUTBOXES: usize = 32; /// The size of a spilled batch, which is the block size of one class. const BATCH_BYTES: usize = 4096; @@ -207,10 +207,16 @@ const REFILLED: u8 = 0b1000; #[repr(C)] struct Message { next: *mut Block, - count: usize, + count: u32, + /// The class of every block in the message, or [`MIXED`]. The owner files the blocks of a + /// message of one class into its bin with one copy, without looking each block up. + class: u32, blocks: [*mut Block; MESSAGE_BLOCKS], } +/// The class of a message whose blocks are of more than one class. +const MIXED: u32 = u32::MAX; + const _: () = assert!(size_of::() == MESSAGE_BYTES); const _: () = assert!(MESSAGE_CLASS.block_size() == MESSAGE_BYTES); @@ -1351,7 +1357,9 @@ impl HeapData { let id = self.private.id.get(); let span = class.slab_chunks() << CHUNK_SHIFT; let mut run: Option> = None; - for &block in blocks { + let mut rest = blocks; + while let Some((&block, more)) = rest.split_first() { + rest = more; if let Some(returns) = &mut run { if block.addr().wrapping_sub(returns.slab().start().addr()) < span { // SAFETY: the block is an in-use block of the slab, given up. @@ -1364,13 +1372,11 @@ impl HeapData { } let owner = self.entry_of(block.cast()).owner(); if owner != id { - if directly { - // SAFETY: the block belongs to `owner` and is given up. - unsafe { region.heap_slot(owner).post_block(block) }; - } else { - // SAFETY: as above. - unsafe { self.send(block, class, owner) }; - } + let at = blocks.len() - rest.len() - 1; + // SAFETY: forwarded, and the first of the blocks is `block`, which is `owner`'s. + let given = + unsafe { self.give_away(region, class, &blocks[at..], owner, directly) }; + rest = &blocks[at + given..]; continue; } // SAFETY: the chunk map says the slab is ours. @@ -1386,6 +1392,49 @@ impl HeapData { } } + /// Gives the first of `blocks`, which belongs to heap `owner`, back to it, with the blocks + /// after it that belong to it too, and returns how many blocks it gave. This stays out of line + /// so that the loop of [`give_back`](Self::give_back) over the heap's own blocks stays short. + /// + /// # Safety + /// + /// As for [`give_back`](Self::give_back), and the first block must belong to `owner`. + #[inline(never)] + unsafe fn give_away( + &self, + region: &Region<'_>, + class: Class, + blocks: &[*mut Block], + owner: u32, + directly: bool, + ) -> usize { + // The blocks that follow and belong to the same owner go with the first. Slabs are aligned + // to their size, so blocks of one slab need no second look at the map. + let mask = !((class.slab_chunks() << CHUNK_SHIFT) - 1); + let mut slab = blocks[0].addr() & mask; + let mut len = 1; + while let Some(&next) = blocks.get(len) { + if next.addr() & mask != slab { + if self.entry_of(next.cast()).owner() != owner { + break; + } + slab = next.addr() & mask; + } + len += 1; + } + let others = &blocks[..len]; + if directly { + for &block in others { + // SAFETY: the block belongs to `owner` and is given up. + unsafe { region.heap_slot(owner).post_block(block) }; + } + } else { + // SAFETY: as above. + unsafe { self.send_run(others, class, owner) }; + } + len + } + /// Moves or releases a slab that has just taken blocks back, as its occupancy says. fn settle(&self, region: &Region<'_>, slab: Owned<'_>) { if slab.list() == List::Full { @@ -1426,8 +1475,94 @@ impl HeapData { count!(self, BlocksSent, 1); // SAFETY: the claim keeps the region alive. let region = unsafe { self.region() }; + let outbox = &self.private.outboxes[owner as usize % OUTBOXES]; + // SAFETY: the caller holds the claim. + let message = unsafe { self.open_outbox(region, outbox, class, owner) }; + if message.is_null() { + // SAFETY: the caller gives the block up, and it belongs to `owner`. + return unsafe { region.heap_slot(owner).post_block(block) }; + } + // SAFETY: an open message is ours until it is posted, and it is never left full. + let count = unsafe { + let count = (*message).count as usize; + (&raw mut (*message).blocks).cast::<*mut Block>().add(count).write(block); + (*message).count = (count + 1) as u32; + count + 1 + }; + let bytes = outbox.bytes.get() as usize + class.block_size(); + outbox.bytes.set(bytes as u32); + if count == MESSAGE_BLOCKS || bytes >= OUTBOX_BYTES { + // SAFETY: the caller holds the claim. + unsafe { self.post_outbox(region, outbox) }; + } + } + + /// Appends blocks of `class` that all belong to heap `owner` to the outbox for that heap, + /// posting the message each time it fills, so that a run of blocks costs one look at the + /// outbox per message and not a call per block. A single block from a free takes + /// [`send`](Self::send), which is shorter for one block. + /// + /// # Safety + /// + /// The caller must hold the claim, and the blocks must be distinct in-use blocks of `class` of + /// slabs owned by heap `owner`, which are given up. + unsafe fn send_run(&self, blocks: &[*mut Block], class: Class, owner: u32) { + count!(self, BlocksSent, blocks.len()); + // SAFETY: the claim keeps the region alive. + let region = unsafe { self.region() }; let size = class.block_size(); let outbox = &self.private.outboxes[owner as usize % OUTBOXES]; + let mut rest = blocks; + while !rest.is_empty() { + // SAFETY: the caller holds the claim. + let message = unsafe { self.open_outbox(region, outbox, class, owner) }; + if message.is_null() { + for &block in rest { + // SAFETY: the caller gives the block up, and it belongs to `owner`. + unsafe { region.heap_slot(owner).post_block(block) }; + } + return; + } + // SAFETY: an open message is ours until it is posted, and it is never left full. + let mut count = unsafe { (*message).count as usize }; + let mut bytes = outbox.bytes.get() as usize; + // Up to the block that fills the message or takes it past its byte limit. + while let Some((&block, more)) = rest.split_first() && + count < MESSAGE_BLOCKS && + bytes < OUTBOX_BYTES + { + // SAFETY: the message has room for the block, as the loop condition says. + unsafe { + (&raw mut (*message).blocks).cast::<*mut Block>().add(count).write(block) + }; + count += 1; + bytes += size; + rest = more; + } + // SAFETY: as above. + unsafe { (*message).count = count as u32 }; + outbox.bytes.set(bytes as u32); + if count == MESSAGE_BLOCKS || bytes >= OUTBOX_BYTES { + // SAFETY: the caller holds the claim. + unsafe { self.post_outbox(region, outbox) }; + } + } + } + + /// Readies `outbox` to take blocks of `class` for heap `owner` and returns its message, or null + /// if the blocks must travel on their own because they are too big to wait in an outbox or + /// there is no memory for a message. + /// + /// # Safety + /// + /// The caller must hold the claim. + unsafe fn open_outbox( + &self, + region: &Region<'_>, + outbox: &Outbox, + class: Class, + owner: u32, + ) -> *mut Message { if outbox.message.get().is_null() { // Messages come back to their sender once read, and a thread that only frees would // otherwise never take them in and keep allocating new ones. Reading the inbox may @@ -1442,14 +1577,12 @@ impl HeapData { message = outbox.message.get(); } if message.is_null() { - if size >= OUTBOX_BYTES { - // SAFETY: the caller gives the block up, and it belongs to `owner`. - return unsafe { region.heap_slot(owner).post_block(block) }; + if class.block_size() >= OUTBOX_BYTES { + return ptr::null_mut(); } message = self.alloc_message(region); if message.is_null() { - // SAFETY: as above. - return unsafe { region.heap_slot(owner).post_block(block) }; + return message; } // SAFETY: the message is a fresh block of ours. unsafe { (*message).count = 0 }; @@ -1457,19 +1590,15 @@ impl HeapData { outbox.bytes.set(0); } outbox.dest.set(owner); - // SAFETY: the message is ours until it is posted, and it is never left full. - let count = unsafe { - let count = (*message).count; - (*message).blocks[count] = block; - (*message).count = count + 1; - count + 1 - }; - let bytes = outbox.bytes.get() as usize + size; - outbox.bytes.set(bytes as u32); - if count == MESSAGE_BLOCKS || bytes >= OUTBOX_BYTES { - // SAFETY: the caller holds the claim. - unsafe { self.post_outbox(region, outbox) }; + // SAFETY: the message is ours until it is posted. + unsafe { + if (*message).count == 0 { + (*message).class = class.index() as u32; + } else if (*message).class != class.index() as u32 { + (*message).class = MIXED; + } } + message } /// Posts what an outbox holds to its destination. A message with one block sends the block on @@ -1555,10 +1684,16 @@ impl HeapData { unsafe { self.file(region, raw) }; } else { let message = raw.cast::(); - // SAFETY: as above, a message holds `count` blocks of our slabs. + // SAFETY: as above, a message holds `count` blocks of our slabs, of `class` unless + // it is mixed, and the blocks are read before the message is freed. unsafe { - for index in 0..(*message).count { - self.file(region, (*message).blocks[index]); + let blocks = core::slice::from_raw_parts( + (&raw const (*message).blocks).cast::<*mut Block>(), + (*message).count as usize, + ); + match (*message).class { + MIXED => blocks.iter().for_each(|&block| self.file(region, block)), + class => self.file_run(region, Class::from_index(class as usize), blocks), } self.free_small(message.cast()); } @@ -1567,6 +1702,28 @@ impl HeapData { } } + /// Takes in blocks of `class` of this heap's slabs that another thread sent back: as many as + /// fit go into the bin with one copy, and the rest back to their slabs. + /// + /// # Safety + /// + /// The caller must hold the claim, and the blocks must be distinct in-use blocks of `class` of + /// this heap's slabs, which are given up. + unsafe fn file_run(&self, region: &Region<'_>, class: Class, blocks: &[*mut Block]) { + count!(self, BlocksFiled, blocks.len()); + let bin = self.bin(class); + let room = usize::from(bin.capacity.get()) - self.bin_len(class); + let (kept, rest) = blocks.split_at(room.min(blocks.len())); + let top = bin.top.get().wrapping_sub(kept.len()); + // SAFETY: the bin has room for `kept` blocks below its top. + unsafe { ptr::copy_nonoverlapping(kept.as_ptr(), top, kept.len()) }; + bin.top.set(top); + if !rest.is_empty() { + // SAFETY: forwarded. The blocks are this heap's, so giving them back sends nothing. + unsafe { self.give_back(region, class, rest, false) }; + } + } + /// Takes in a block of one of this heap's slabs that another thread sent back. /// /// # Safety @@ -2086,8 +2243,18 @@ impl HeapData { assert_eq!(check(message.cast(), "an outbox").class(), MESSAGE_CLASS); claim(message.cast(), "an outbox"); // SAFETY: the message is ours until it is posted. - let blocks = unsafe { &(&(*message).blocks)[..(*message).count] }; + let blocks = unsafe { &(&(*message).blocks)[..(*message).count as usize] }; assert!(blocks.len() < MESSAGE_BLOCKS, "a full message was not posted"); + // SAFETY: as above. + let class = unsafe { (*message).class }; + assert!( + blocks.is_empty() || + class == MIXED || + blocks.iter().all( + |&block| self.entry_of(block.cast()).class().index() == class as usize + ), + "a message of one class holds a block of another" + ); for &block in blocks { let entry = check(block, "an outbox"); assert_eq!( @@ -2113,7 +2280,7 @@ impl HeapData { let message = raw.cast::(); claim(raw, "the inbox"); // SAFETY: nothing frees remotely while this runs, so the inbox is stable. - for &block in unsafe { &(&(*message).blocks)[..(*message).count] } { + for &block in unsafe { &(&(*message).blocks)[..(*message).count as usize] } { assert_eq!(check(block, "the inbox").owner(), id, "a message went astray"); claim(block, "the inbox"); } From fad17cae91bb607da51803db332ff62039f0772a Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 01:30:09 -0500 Subject: [PATCH 06/12] Keep the allocations of the settle loop from being optimized away The memory workloads allocate and drop a few thousand blocks between their waits, so that allocators which return memory only while they are used get to run. The compiler removed those allocations, because nothing read the blocks, so whether an allocator ran its purge clock depended on what else the process had done. Each block now passes through black_box. --- crates/bench/benches/common/memory.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/bench/benches/common/memory.rs b/crates/bench/benches/common/memory.rs index acc1685..28bea27 100644 --- a/crates/bench/benches/common/memory.rs +++ b/crates/bench/benches/common/memory.rs @@ -5,7 +5,7 @@ use super::{ churn::{MEDIUM, MIXED, SMALL, Sizes}, harness::{Block, Outcome, Rng, Scale, empty_slots, resident_mib}, }; -use std::{thread, time::Duration}; +use std::{hint::black_box, thread, time::Duration}; /// How long to wait after freeing before looking, so that allocators that return memory on a /// timer have had their turn. @@ -21,9 +21,10 @@ fn settle() { fn settle_for(delay: Duration) { thread::sleep(delay); // A running program touches many size classes, which is what makes a lazy allocator look at - // its free memory. + // its free memory. The compiler may remove an allocation that nothing reads, so each block + // passes through black_box. for i in 0..10_000 { - drop(Block::new(16 << (i % 12))); + drop(black_box(Block::new(16 << (i % 12)))); } thread::sleep(delay); } From 852f4bdc14a2766986c218a0c64a3e82802b93a5 Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 01:31:05 -0500 Subject: [PATCH 07/12] Keep the purge clock's atomics on a line of their own Every free of chunks writes the aging flag, which shared a line with the fields that every claim of chunks reads, so each free took the line away from the cores that claim. The clock's atomics now sit in a cache-line-aligned struct. --- crates/bcmalloc/src/region.rs | 78 +++++++++++++++++++++-------------- 1 file changed, 46 insertions(+), 32 deletions(-) diff --git a/crates/bcmalloc/src/region.rs b/crates/bcmalloc/src/region.rs index b7acb7d..c45350c 100644 --- a/crates/bcmalloc/src/region.rs +++ b/crates/bcmalloc/src/region.rs @@ -25,6 +25,7 @@ //! to allocate. A [`Mapping`] owns the memory behind a region and unmaps it on drop. use crate::{ + cache::CacheLine, chunks::{CHUNK_SHIFT, CHUNK_SIZE, Chunks}, config::{Commit, Config}, heap::{Heap, HeapData}, @@ -116,6 +117,17 @@ pub struct Region<'a> { /// How many heap slots may have been claimed. Slots at or beyond it are untouched, so the /// operations that visit every slot stop here. claimed_mark: AtomicUsize, + clock: Clock, + #[cfg(feature = "metrics")] + counters: crate::metrics::RegionCounters, +} + +/// The state of the purge clock, on lines of its own. Every free of chunks writes `aging`, and +/// sharing a line with the fields above, which every claim of chunks reads, would make each free +/// take that line away from the cores that claim. +#[derive(Debug)] +struct Clock { + _line: [CacheLine; 0], /// When the purge clock next ticks, in milliseconds on the monotonic clock. next_purge: AtomicU64, /// Whether any free chunk may still be waiting to be purged or to age towards it. @@ -125,8 +137,6 @@ pub struct Region<'a> { purges_active: AtomicUsize, /// How many purge passes and trims have finished. purges_done: AtomicUsize, - #[cfg(feature = "metrics")] - counters: crate::metrics::RegionCounters, } // SAFETY: the raw pointer is an address into memory the region owns, and every shared structure @@ -191,10 +201,13 @@ impl<'a> Region<'a> { zones, words, claimed_mark: AtomicUsize::new(0), - next_purge: AtomicU64::new(0), - aging: AtomicBool::new(false), - purges_active: AtomicUsize::new(0), - purges_done: AtomicUsize::new(0), + clock: Clock { + _line: [], + next_purge: AtomicU64::new(0), + aging: AtomicBool::new(false), + purges_active: AtomicUsize::new(0), + purges_done: AtomicUsize::new(0), + }, #[cfg(feature = "metrics")] counters: crate::metrics::RegionCounters::new(), } @@ -270,7 +283,7 @@ impl<'a> Region<'a> { break; } } - self.purges_active.fetch_add(1, Ordering::Release); + self.clock.purges_active.fetch_add(1, Ordering::Release); self.chunks.drain(|run| { // SAFETY: the run is free and held by the drain while we advise on it. unsafe { @@ -278,8 +291,8 @@ impl<'a> Region<'a> { sys::discard(start, run.len() << CHUNK_SHIFT); } }); - self.purges_done.fetch_add(1, Ordering::Release); - self.purges_active.fetch_sub(1, Ordering::Release); + self.clock.purges_done.fetch_add(1, Ordering::Release); + self.clock.purges_active.fetch_sub(1, Ordering::Release); } /// A snapshot of how full the region is. @@ -437,15 +450,15 @@ impl<'a> Region<'a> { // A purge pass may hold the chunks for a moment, so a failed claim only counts when no // pass overlapped it, as for any other claim. loop { - let active = self.purges_active.load(Ordering::Acquire); - let done = self.purges_done.load(Ordering::Acquire); + let active = self.clock.purges_active.load(Ordering::Acquire); + let done = self.clock.purges_done.load(Ordering::Acquire); if self.chunks.claim_at(start, more) { break; } fence(Ordering::Acquire); if active == 0 && - self.purges_active.load(Ordering::Acquire) == 0 && - self.purges_done.load(Ordering::Acquire) == done + self.clock.purges_active.load(Ordering::Acquire) == 0 && + self.clock.purges_done.load(Ordering::Acquire) == done { return false; } @@ -476,8 +489,8 @@ impl<'a> Region<'a> { home: Range, ) -> Option { loop { - let active = self.purges_active.load(Ordering::Acquire); - let done = self.purges_done.load(Ordering::Acquire); + let active = self.clock.purges_active.load(Ordering::Acquire); + let done = self.clock.purges_done.load(Ordering::Acquire); // Every round looks at the bitmap, so chunks that are free for some other reason can // be used even while a pass that was descheduled is still holding its own. if let Some(first) = self.chunks.alloc_near(n, align, hint, home.clone()) { @@ -487,8 +500,8 @@ impl<'a> Region<'a> { // claim synchronises with the pass, so after this fence its counters are visible. fence(Ordering::Acquire); if active == 0 && - self.purges_active.load(Ordering::Acquire) == 0 && - self.purges_done.load(Ordering::Acquire) == done + self.clock.purges_active.load(Ordering::Acquire) == 0 && + self.clock.purges_done.load(Ordering::Acquire) == done { return None; } @@ -501,7 +514,7 @@ impl<'a> Region<'a> { self.chunks.free_at(first, n, sys::monotonic_ms()); // A read-modify-write, so that the pass that consumes the flag also sees the bits above no // matter which free it read the flag from. - self.aging.fetch_or(true, Ordering::Release); + self.clock.aging.fetch_or(true, Ordering::Release); } /// Runs the purge clock if free chunks are ageing and an interval has passed. Chunks that stay @@ -509,7 +522,7 @@ impl<'a> Region<'a> { /// slow, so that an idle program pays nothing and a busy one pays a clock read now and then. #[inline] pub(crate) fn purge_if_due(&self) { - if self.aging.load(Ordering::Relaxed) { + if self.clock.aging.load(Ordering::Relaxed) { self.purge_when_due(); } } @@ -517,9 +530,10 @@ impl<'a> Region<'a> { #[cold] fn purge_when_due(&self) { let now = sys::monotonic_ms(); - let due = self.next_purge.load(Ordering::Relaxed); + let due = self.clock.next_purge.load(Ordering::Relaxed); let won = now >= due && - self.next_purge + self.clock + .next_purge .compare_exchange( due, now + PURGE_INTERVAL_MS, @@ -536,8 +550,8 @@ impl<'a> Region<'a> { pub(crate) fn purge_pass(&self, now: u64) { // Take the flag first so that a free that races with the pass sets it again. Taking it // acquires the bits of every free that set it. - self.aging.swap(false, Ordering::Acquire); - self.purges_active.fetch_add(1, Ordering::Release); + self.clock.aging.swap(false, Ordering::Acquire); + self.clock.purges_active.fetch_add(1, Ordering::Release); #[cfg(feature = "metrics")] self.counters.purge_passes.add(1); let pending = self.chunks.purge_pass(now, PURGE_INTERVAL_MS, |run| { @@ -551,10 +565,10 @@ impl<'a> Region<'a> { ); } }); - self.purges_done.fetch_add(1, Ordering::Release); - self.purges_active.fetch_sub(1, Ordering::Release); + self.clock.purges_done.fetch_add(1, Ordering::Release); + self.clock.purges_active.fetch_sub(1, Ordering::Release); if pending { - self.aging.fetch_or(true, Ordering::Release); + self.clock.aging.fetch_or(true, Ordering::Release); } } @@ -960,14 +974,14 @@ mod test { // SAFETY: the block is live with this layout. let block = unsafe { heap.realloc(block, layout(20), 9 << CHUNK_SHIFT) }.unwrap(); // What a purge pass looks like while it holds the free tail. - region.purges_active.fetch_add(1, Ordering::Release); + region.clock.purges_active.fetch_add(1, Ordering::Release); assert!(region.chunks.claim_at(9, 11)); std::thread::scope(|scope| { scope.spawn(|| { std::thread::sleep(std::time::Duration::from_millis(20)); region.chunks.free_at(9, 11, 0); - region.purges_done.fetch_add(1, Ordering::Release); - region.purges_active.fetch_sub(1, Ordering::Release); + region.clock.purges_done.fetch_add(1, Ordering::Release); + region.clock.purges_active.fetch_sub(1, Ordering::Release); }); // SAFETY: the block is live with nine chunks. let grown = unsafe { heap.realloc(block, layout(9), 12 << CHUNK_SHIFT) }; @@ -1010,14 +1024,14 @@ mod test { let a = region.alloc_chunks(1, 1, 0, 0).unwrap(); region.alloc_chunks(1, 1, 0, 0).unwrap(); // A pass that was descheduled while holding some other chunks. - region.purges_active.fetch_add(1, Ordering::Release); + region.clock.purges_active.fetch_add(1, Ordering::Release); region.free_chunks(a, 1); let (sender, receiver) = mpsc::channel(); std::thread::scope(|scope| { scope.spawn(|| sender.send(region.alloc_chunks_after_purge(1, 1, 0, 0..1)).unwrap()); let found = receiver.recv_timeout(Duration::from_secs(5)); // Let the retry finish whatever happened, so that the scope can end. - region.purges_active.fetch_sub(1, Ordering::Release); + region.clock.purges_active.fetch_sub(1, Ordering::Release); assert_eq!(found, Ok(Some(a)), "the retry waited for the pass"); }); } @@ -1130,7 +1144,7 @@ mod loom_test { let mut missed = 0; region.chunks.purge_pass(u64::MAX, 0, |run| missed += run.len()); assert!( - missed == 0 || region.aging.load(Ordering::Acquire), + missed == 0 || region.clock.aging.load(Ordering::Acquire), "a free chunk is dirty and nothing is going to purge it" ); }); From 8f207c881ec7e426fb573b905099c193d0d6cad5 Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 01:43:05 -0500 Subject: [PATCH 08/12] Run the purge clock from allocations of blocks above the class table The purge clock ran only on refills, slab releases and huge frees. A program that went quiet after a burst served its requests from bins, so nothing ran the clock and the burst's memory stayed resident. Requests above 8 KiB, which take the general path anyway, now check the clock's flag too, a load when nothing waits. Phase churn on the M4 keeps 127.6 MiB instead of 171.8. The allocation of whole chunks moves out of alloc_general into alloc_whole, so the register saves it needs no longer sit on the path of blocks above 8 KiB. --- crates/bcmalloc/src/heap.rs | 48 ++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/crates/bcmalloc/src/heap.rs b/crates/bcmalloc/src/heap.rs index bbcd29e..d8f4f1c 100644 --- a/crates/bcmalloc/src/heap.rs +++ b/crates/bcmalloc/src/heap.rs @@ -779,28 +779,44 @@ impl HeapData { #[inline(never)] unsafe fn alloc_general(&self, layout: Layout) -> *mut u8 { match classify(layout) { - Some(Request::Small(class)) => self - .pop(class) - // SAFETY: forwarded. - .unwrap_or_else(|| unsafe { self.refill(class) }) - .cast(), - Some(Request::Huge { chunks }) => { + Some(Request::Small(class)) => { + // Bins serve most of a quiet program's requests, and then nothing runs the purge + // clock, which keeps memory that a burst left behind. Bigger blocks come through + // here, which costs a load of a flag, and runs the clock when chunks are waiting. // SAFETY: the claim keeps the region alive. - let region = unsafe { self.region() }; - let block = self.alloc_huge(region, chunks); - if !block.is_null() { - return block; - } - // The region looks full, but this heap may be sitting on empty slabs. Give them - // back and retry. - // SAFETY: the caller holds the claim. - unsafe { self.flush(region) }; - self.alloc_huge(region, chunks) + unsafe { self.region() }.purge_if_due(); + self.pop(class) + // SAFETY: forwarded. + .unwrap_or_else(|| unsafe { self.refill(class) }) + .cast() } + // SAFETY: forwarded. + Some(Request::Huge { chunks }) => unsafe { self.alloc_whole(chunks) }, None => ptr::null_mut(), } } + /// Allocates a block of whole chunks, out of line so that the saves of registers that it needs + /// stay off the path of small blocks in [`alloc_general`](Self::alloc_general). + /// + /// # Safety + /// + /// The caller must hold the claim on this slot. + #[inline(never)] + unsafe fn alloc_whole(&self, chunks: usize) -> *mut u8 { + // SAFETY: the claim keeps the region alive. + let region = unsafe { self.region() }; + let block = self.alloc_huge(region, chunks); + if !block.is_null() { + return block; + } + // The region looks full, but this heap may be sitting on empty slabs. Give them back and + // retry. + // SAFETY: the caller holds the claim. + unsafe { self.flush(region) }; + self.alloc_huge(region, chunks) + } + /// Fills the empty bin of `class` and pops a block, or returns null if the region is out of /// room. /// From 965d103459326ba1b2361b47e88312f7b0834939 Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 01:47:02 -0500 Subject: [PATCH 09/12] Back the filled classes of big processes with huge pages A region counts the chunks in use, on a cache line of its own. Once a process holds 64 MiB of chunks, a heap's slabs of any class it has filled go to the zone of transparent huge pages, not only those of big heaps. Many small threads of a big process no longer fault their slabs in page by page: sh6benchN -7%, larsonN -3%, rptestN -4% with peak RSS unchanged or lower, while small programs such as glibc-thread and espresso keep their footprint. The count only steers placement. A block passed to another thread through a relaxed store can be freed before its claim's addition lands, so the count may wrap below zero for a moment, and is_big reads it as signed. --- crates/bcmalloc/src/heap.rs | 11 ++++++++--- crates/bcmalloc/src/region.rs | 31 +++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/crates/bcmalloc/src/heap.rs b/crates/bcmalloc/src/heap.rs index d8f4f1c..cb81262 100644 --- a/crates/bcmalloc/src/heap.rs +++ b/crates/bcmalloc/src/heap.rs @@ -502,10 +502,15 @@ impl HeapData { /// Slabs of a big heap go to the zone of transparent huge pages when they will be dense. A /// single-chunk slab fills quickly and packs next to others. A slab of several chunks holds /// few blocks and may stay mostly untouched, where a huge page fault would back all of it, so - /// it goes there only once the heap holds a slab of its class that it has filled. + /// it goes there only once the heap holds a slab of its class that it has filled. In a big + /// process, see [`Region::is_big`], the slabs of a class that the heap fills go there too. fn slab_part(&self, region: &Region<'_>, class: Class) -> usize { - let dense = class.slab_chunks() == 1 || self.lists(class).filled.get() > 0; - let huge = dense && self.is_big(); + let filled = self.lists(class).filled.get() > 0; + let dense = class.slab_chunks() == 1 || filled; + // In a big process, a class whose slabs this heap fills is dense whatever the heap's size, + // so its next slabs take huge pages too. Many threads that each fill slabs of a few classes + // would otherwise fault every page of those slabs in one by one. + let huge = dense && (self.is_big() || (filled && region.is_big())); region.part(self.private.node.get(), huge) } diff --git a/crates/bcmalloc/src/region.rs b/crates/bcmalloc/src/region.rs index c45350c..ea8ab57 100644 --- a/crates/bcmalloc/src/region.rs +++ b/crates/bcmalloc/src/region.rs @@ -118,6 +118,7 @@ pub struct Region<'a> { /// operations that visit every slot stop here. claimed_mark: AtomicUsize, clock: Clock, + occupancy: Occupancy, #[cfg(feature = "metrics")] counters: crate::metrics::RegionCounters, } @@ -139,6 +140,20 @@ struct Clock { purges_done: AtomicUsize, } +/// How many chunks slabs and blocks of whole chunks hold, which tells a big process from a small +/// one. Every claim and free of chunks writes it, so it keeps a line of its own, away from `aging`, +/// which the slow paths of allocation read. +#[derive(Debug)] +struct Occupancy { + _line: [CacheLine; 0], + chunks: AtomicUsize, +} + +/// A region with this many chunks in use, 64 MiB, belongs to a process big enough that the +/// slabs of its classes that fill slabs go to the zone of transparent huge pages whatever the size +/// of their heap. See [`Region::is_big`]. +const BIG_REGION_CHUNKS: usize = 1024; + // SAFETY: the raw pointer is an address into memory the region owns, and every shared structure // behind the references is either atomic or handed out under an exclusive claim. unsafe impl Send for Region<'_> {} @@ -208,6 +223,7 @@ impl<'a> Region<'a> { purges_active: AtomicUsize::new(0), purges_done: AtomicUsize::new(0), }, + occupancy: Occupancy { _line: [], chunks: AtomicUsize::new(0) }, #[cfg(feature = "metrics")] counters: crate::metrics::RegionCounters::new(), } @@ -396,6 +412,7 @@ impl<'a> Region<'a> { Some(first) => first, None => self.alloc_chunks_after_purge(n, align, hint, home)?, }; + self.occupancy.chunks.fetch_add(n, Ordering::Relaxed); let zeroed = self.chunks.is_clean(first, n, sys::DISCARD_ZEROES); self.chunks.take_purged(first, n, |run| { #[cfg(feature = "metrics")] @@ -411,6 +428,18 @@ impl<'a> Region<'a> { Some((first, zeroed)) } + /// Whether so much of the region is in use that the process counts as big. Huge pages cost a + /// small process memory it barely uses, since a thread's slabs of each class then back whole + /// 2 MiB pages, and spare a big one most of its page faults, which many threads that fault + /// at once pay for in time. + /// + /// The count only steers placement, so it may be approximate. A block handed to another thread + /// through a relaxed store can be freed there before its claim's addition reaches the counter, + /// which then wraps below zero for a moment; read as signed, that counts as small. + pub(crate) fn is_big(&self) -> bool { + self.occupancy.chunks.load(Ordering::Relaxed) as isize >= BIG_REGION_CHUNKS as isize + } + /// The part of the region that the chunks of NUMA node `node` come from, in its zone for /// transparent huge pages if `huge`. /// @@ -464,6 +493,7 @@ impl<'a> Region<'a> { } core::hint::spin_loop(); } + self.occupancy.chunks.fetch_add(more, Ordering::Relaxed); self.chunks.take_purged(start, more, |run| { #[cfg(feature = "metrics")] self.counters.chunks_reused.add(run.len() as u64); @@ -511,6 +541,7 @@ impl<'a> Region<'a> { /// Frees chunks as `Chunks`::free_at does, and starts them ageing towards a purge. pub(crate) fn free_chunks(&self, first: usize, n: usize) { + self.occupancy.chunks.fetch_sub(n, Ordering::Relaxed); self.chunks.free_at(first, n, sys::monotonic_ms()); // A read-modify-write, so that the pass that consumes the flag also sees the bits above no // matter which free it read the flag from. From 83d9544fe27e7ff29e15e4691c69d8ef8104c05f Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 02:28:54 -0500 Subject: [PATCH 10/12] Record this round's benchmarks and describe its mechanisms benchmarks.json has the final runs of both machines, with boost on: the development suite and the Rust programs ten times each, and mimalloc-bench ten times through scripts/mbrun.py, which BENCHMARKS.md now describes. A stock bench.sh run of the same build is quoted for comparison. DESIGN.md describes spilled batches, runs of remote frees and messages of one class, the big-process rule for huge pages, the purge check of general allocations, the static chunk-map lookup of a free, and the C++ operators. --- BENCHMARKS.md | 772 ++-- DESIGN.md | 13 +- README.md | 14 +- assets/benchmarks.svg | 2 +- benchmarks.json | 9290 ++++++++++++++++++++++------------------- 5 files changed, 5333 insertions(+), 4758 deletions(-) diff --git a/BENCHMARKS.md b/BENCHMARKS.md index 736e666..c28399d 100644 --- a/BENCHMARKS.md +++ b/BENCHMARKS.md @@ -8,27 +8,27 @@ Every number on this page, and the figure, comes from [benchmarks.json](benchmar ## Method -- **Machines.** An Apple M4 Max, where the system allocator is libmalloc, and a 32-core AMD EPYC 9354P with Ubuntu 24.04 and glibc 2.39. mimalloc-bench ran on a second, idle machine of the same model. Both Linux machines have transparent huge pages set to `madvise`, and the [machines table](#machines) gives the exact systems. +- **Machines.** An Apple M4 Max, where the system allocator is libmalloc, and an idle 32-core AMD EPYC 9354P with Ubuntu 24.04, glibc 2.39, transparent huge pages set to `madvise` and CPU boost on. The [machines table](#machines) gives the exact systems. - **Versions.** The Rust suites use the latest published crates, mimalloc 0.1.52 (mimalloc 3.3.2), tikv-jemallocator 0.7 (jemalloc 5.3.1) and snmalloc-rs 0.7.6. mimalloc-bench pins mimalloc 1.8.2, so it was rebuilt with mimalloc 3.6.1, the latest release, next to jemalloc 5.4.0 and snmalloc 0.7.6. Rust is 1.100. -- **Runs.** Every Rust workload runs ten times per allocator, in a fresh process each time, with the allocators taking turns in a rotating order. The tables show medians, and bold marks the best median and every median whose 95% bootstrap interval overlaps it. The cold rows are the first pass of each workload and the others the steady state. Each mimalloc-bench program ran three times per allocator, and its table shows the medians of wall time and peak resident memory. -- **Reproducing.** `just bench`, `just bench-apps` and `just mimalloc-bench` run the three sets. `just bench --save PATH` keeps the raw samples, `just bench --load PATH` prints their report again, and `just bench-compare OLD NEW` compares two of them. +- **Runs.** Every Rust workload runs ten times per allocator, in a fresh process each time, with the allocators taking turns in a rotating order. The tables show medians, and bold marks the best median and every median whose 95% bootstrap interval overlaps it. The cold rows are the first pass of each workload and the others the steady state. Each mimalloc-bench program ran ten times per allocator through `scripts/mbrun.py`, which runs the suite's own binaries with their arguments but times them in nanoseconds, rotates the allocators within every run, and repeats a program that finishes in a fraction of a second several times within one sample, so that a timer tick does not decide it. Its table shows the median time of one repetition and the median peak resident memory. The programs that report their own throughput, larson, rptest, xmalloc-test, glibc-thread and redis, are scored by it and converted to a time as mimalloc-bench's `bench.sh` converts it. +- **Reproducing.** `just bench`, `just bench-apps` and `just mbrun` run the three sets, and `just mimalloc-bench` runs mimalloc-bench's own driver. `just bench --save PATH` keeps the raw samples, `just bench --load PATH` prints their report again, and `just bench-compare OLD NEW` compares two of them. ## Summary | Compared with mimalloc | system | bcmalloc | jemalloc | snmalloc | | ---------------------------------- | ------ | -------- | -------- | -------- | -| development suite, macOS, speed | 0.52 | 2.09 | 0.87 | 1.22 | -| development suite, Linux, speed | 0.63 | 1.73 | 0.88 | 1.14 | -| Rust programs, macOS, speed | 0.91 | 1.02 | 0.93 | 1.01 | -| Rust programs, Linux, speed | 0.82 | 1.09 | 1.03 | 1.04 | -| mimalloc-bench, Linux, speed | - | 1.00 | 0.82 | 0.94 | -| mimalloc-bench, Linux, peak memory | - | 1.51 | 1.38 | 1.40 | +| development suite, macOS, speed | 0.52 | 2.09 | 0.86 | 1.24 | +| development suite, Linux, speed | 0.64 | 1.82 | 0.89 | 1.18 | +| Rust programs, macOS, speed | 0.94 | 1.03 | 0.96 | 1.04 | +| Rust programs, Linux, speed | 0.72 | 1.13 | 1.03 | 1.05 | +| mimalloc-bench, Linux, speed | - | 1.02 | 0.82 | 0.94 | +| mimalloc-bench, Linux, peak memory | - | 1.49 | 1.37 | 1.40 | Each figure is mimalloc's time or peak memory divided by the other allocator's, so above 1.00 means faster or smaller. It is the geometric mean over the suite's speed workloads, or over its programs for memory. -bcmalloc is the fastest allocator on both development suites, by a wide margin in most groups, though jemalloc is slightly ahead on the sharing group on Linux. It is the fastest on the Rust programs on both machines. On mimalloc-bench it ties mimalloc for time while holding two thirds of its peak memory, and it is faster than snmalloc and jemalloc. It is not the fastest on every program there. mimalloc is faster on sh6bench and sh8bench, which free thousands of blocks in a row, more than a heap's bins hold, and on alloc-test, glibc-simple, mstress and rocksdb by 3% to 7%. snmalloc is faster on redis, glibc-thread, cfrac and espresso by 1% to 6%, and on xmalloc-test, where jemalloc is faster still. The 0.01 s difference on mleak10 is the resolution of the timer. +bcmalloc is the fastest allocator on both development suites, by a wide margin in most groups, though jemalloc is slightly ahead on the sharing group on Linux and mimalloc on the resizing group on macOS. It is the fastest on the Rust programs on Linux. On macOS it is level with snmalloc, which is faster on the rayon pipeline there, and mimalloc is faster on json. On mimalloc-bench it is the fastest of the four, 2% ahead of mimalloc, and holds two thirds of mimalloc's peak memory, the least of the four. It is not the fastest on every program there. mimalloc is faster on sh6bench by 12%, mstress by 8%, glibc-simple by 5%, sh8bench by 4%, alloc-testN by 2%, and leanN and malloc-large by 1%. On sh6bench the gap closes when every heap takes huge pages, but that costs small programs several times their memory, so bcmalloc keeps small threads on small pages. snmalloc is faster on glibc-thread by 6%, redis by 3%, and cfrac and espresso by 1%. ## Machines @@ -36,66 +36,67 @@ bcmalloc is the fastest allocator on both development suites, by a wide margin i | Suite | Machine | Runs | Date | | ------------------------ | ----------------------------------------------------------------- | ---- | ---------- | | development suite, macOS | Apple M4 Max, macOS 27.0.1 | 10 | 2026-11-14 | -| development suite, Linux | AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 7.0.0 | 10 | 2026-11-14 | +| development suite, Linux | AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 6.8.0 | 10 | 2026-11-14 | | Rust programs, macOS | Apple M4 Max, macOS 27.0.1 | 10 | 2026-11-14 | -| Rust programs, Linux | AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 7.0.0 | 10 | 2026-11-14 | -| mimalloc-bench, Linux | AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 6.8.0 | 3 | 2026-11-14 | +| Rust programs, Linux | AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 6.8.0 | 10 | 2026-11-14 | +| mimalloc-bench, Linux | AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 6.8.0 | 10 | 2026-11-14 | ## mimalloc-bench -The geometric means, then the wall time in seconds and the peak resident memory in MiB of every program, as `time / memory`, with the best of each in bold. lua is left out, because its sources are not part of the suite as built. +The geometric means, then the wall time in seconds and the peak resident memory in MiB of every program, as `time / memory`, with the best of each in bold. lua is left out, because its sources are not part of the suite as built. mimalloc-bench's own driver, `bench.sh` with three runs per allocator and its timer of 10 ms, gives the same picture from the same build: bcmalloc at 1.02 of mimalloc's speed and 1.48 for memory, snmalloc at 0.94 and 1.40, jemalloc at 0.82 and 1.38. | Compared with mimalloc | bcmalloc | mimalloc | snmalloc | jemalloc | | ---------------------- | -------- | -------- | -------- | -------- | -| speed | 1.00 | 1.00 | 0.94 | 0.82 | -| peak resident memory | 1.51 | 1.00 | 1.40 | 1.38 | - -| Program | bcmalloc | mimalloc | snmalloc | jemalloc | -| -------------- | -------------------- | ------------------ | ------------------- | ------------------ | -| cfrac | 3.250 / **3.2** | 3.240 / 4.4 | **3.160** / 3.5 | 3.270 / 5.2 | -| espresso | 3.470 / **3.8** | 3.470 / 10.4 | **3.420** / 4.5 | 3.540 / 6.2 | -| barnes | **2.170** / 63.5 | 2.210 / 67.5 | 2.260 / **58.2** | 2.250 / 59.5 | -| redis | 3.319 / 11.2 | 3.420 / 20.1 | **3.120** / **8.0** | 3.740 / 10.0 | -| larsonN | **1.071** / 342.1 | 1.167 / 306.5 | 1.219 / 415.8 | 1.290 / **260.0** | -| larsonN-sized | **1.030** / 347.9 | 1.126 / 310.4 | 1.183 / 418.0 | 1.161 / **270.1** | -| mstressN | 0.670 / 598.2 | **0.630** / 1030.0 | 0.820 / 813.5 | 1.230 / **511.0** | -| rptestN | **0.199** / 222.8 | 0.237 / 236.0 | 0.215 / 183.0 | 0.511 / **161.0** | -| gs | **0.220** / 41.8 | 0.230 / 55.3 | 0.240 / **36.0** | 0.240 / 36.8 | -| alloc-test1 | 2.640 / 14.2 | **2.500** / 16.2 | 2.590 / 13.8 | 2.580 / **12.8** | -| alloc-testN | 2.460 / **15.8** | **2.300** / 60.3 | 2.310 / 16.2 | 2.330 / 16.2 | -| sh6benchN | 0.060 / 280.1 | **0.050** / 226.4 | 0.080 / 275.0 | 0.090 / **224.3** | -| sh8benchN | 0.170 / 251.3 | **0.140** / 510.5 | 0.190 / 205.3 | 0.270 / **168.2** | -| xmalloc-testN | 0.191 / 103.0 | 0.216 / **66.3** | 0.177 / 128.3 | **0.165** / 141.6 | -| cache-scratch1 | **1.050** / **4.0** | **1.050** / 6.2 | **1.050** / 4.2 | **1.050** / 4.5 | -| cache-scratchN | **0.030** / 4.0 | **0.030** / 6.2 | **0.030** / **3.8** | **0.030** / 4.5 | -| glibc-simple | 1.670 / **2.0** | **1.590** / 4.2 | 1.620 / 2.5 | 1.900 / 4.8 | -| glibc-thread | 0.203 / **10.8** | 0.199 / 88.5 | **0.192** / 21.2 | 0.205 / 14.8 | -| rocksdb | 4.270 / 102.7 | **4.130** / 141.9 | 4.350 / 107.3 | 4.350 / **102.5** | -| leanN | 9.100 / 260.4 | **9.080** / 335.9 | 9.110 / 242.5 | 9.280 / **218.9** | -| linux | **0.150** / **18.0** | 0.170 / 23.7 | **0.150** / 18.5 | 0.160 / 18.5 | -| malloc-large | 1.420 / 579.6 | **1.400** / 588.1 | 3.560 / 650.5 | 14.420 / **429.6** | -| mleak10 | 0.150 / **2.0** | 0.150 / 4.2 | **0.140** / 2.5 | 0.160 / 4.8 | -| mleak100 | **1.500** / **2.0** | **1.500** / 4.2 | **1.500** / 2.5 | 1.610 / 4.8 | -| rbstress1 | **2.790** / 118.8 | 2.820 / 139.2 | 2.820 / **117.3** | 2.800 / 119.0 | -| rbstressN | 3.020 / **163.3** | 3.010 / 192.7 | 3.010 / 209.0 | **2.990** / 201.3 | -| cache-thrash1 | **1.050** / **4.0** | **1.050** / 6.2 | **1.050** / 4.2 | **1.050** / 4.5 | -| cache-thrashN | **0.030** / **4.0** | **0.030** / 6.2 | **0.030** / **4.0** | **0.030** / 4.5 | +| speed | 1.02 | 1.00 | 0.94 | 0.82 | +| peak resident memory | 1.49 | 1.00 | 1.40 | 1.37 | + +| Program | bcmalloc | mimalloc | snmalloc | jemalloc | +| -------------- | --------------------- | --------------------- | ------------------- | ------------------ | +| cfrac | 3.190 / **3.2** | 3.249 / 4.7 | **3.154** / 3.5 | 3.286 / 5.2 | +| espresso | 3.450 / **3.8** | 3.482 / 10.4 | **3.425** / 4.5 | 3.545 / 6.2 | +| barnes | **2.176** / 63.5 | 2.214 / 67.5 | 2.263 / **58.0** | 2.264 / 59.8 | +| redis | 3.240 / 11.2 | 3.510 / 20.1 | **3.140** / **8.0** | 3.750 / 10.0 | +| larsonN | **1.031** / 350.6 | 1.175 / 306.9 | 1.216 / 415.0 | 1.276 / **260.4** | +| larsonN-sized | **0.988** / 355.0 | 1.136 / 308.6 | 1.201 / 413.6 | 1.149 / **271.9** | +| mstressN | 0.691 / 606.2 | **0.637** / 1035.0 | 0.816 / 812.7 | 1.243 / **532.1** | +| rptestN | **0.195** / 228.1 | 0.226 / 225.0 | 0.214 / 169.4 | 0.508 / **159.3** | +| gs | **0.229** / 39.9 | 0.231 / 55.5 | 0.249 / **36.0** | 0.246 / 37.0 | +| alloc-test1 | **2.526** / 16.2 | 2.527 / 16.2 | 2.595 / 13.8 | 2.584 / **12.9** | +| alloc-testN | 2.344 / **15.8** | **2.296** / 60.5 | 2.309 / 16.0 | 2.324 / 16.2 | +| sh6benchN | 0.060 / 281.1 | **0.054** / **226.4** | 0.085 / 275.6 | 0.095 / 226.8 | +| sh8benchN | 0.147 / 273.9 | **0.141** / 510.5 | 0.188 / 206.4 | 0.274 / **170.7** | +| xmalloc-testN | **0.161** / 83.9 | 0.217 / **66.3** | 0.177 / 126.6 | 0.166 / 147.7 | +| cache-scratch1 | **1.059** / **4.1** | **1.059** / 6.2 | **1.059** / 4.2 | 1.060 / 4.5 | +| cache-scratchN | **0.037** / 4.0 | 0.037 / 6.2 | 0.037 / **3.8** | 0.038 / 4.5 | +| cache-thrash1 | **1.059** / **4.0** | **1.059** / 6.2 | **1.059** / 4.2 | 1.060 / 4.5 | +| cache-thrashN | **0.037** / **4.0** | 0.037 / 6.2 | 0.037 / **4.0** | 0.038 / 4.5 | +| glibc-simple | 1.670 / **2.0** | **1.586** / 4.2 | 1.621 / 2.5 | 1.922 / 4.8 | +| glibc-thread | 0.204 / **10.4** | 0.197 / 88.4 | **0.193** / 21.0 | 0.205 / 14.5 | +| rocksdb | **4.170** / 102.9 | 4.191 / 141.9 | 4.373 / 107.0 | 4.358 / **102.7** | +| leanN | 9.170 / 261.6 | **9.107** / 339.3 | 9.125 / 241.4 | 9.287 / **219.6** | +| linux | **9.082** / 171.9 | 9.625 / 187.2 | 9.689 / **165.8** | 11.010 / 167.3 | +| malloc-large | 1.401 / 579.6 | **1.386** / 588.1 | 3.557 / 658.0 | 14.530 / **429.6** | +| mleak10 | 0.153 / **2.0** | 0.154 / 4.2 | **0.153** / 2.5 | 0.169 / 4.7 | +| mleak100 | 1.511 / **2.0** | **1.508** / 4.2 | 1.526 / 2.5 | 1.634 / 4.5 | +| rbstress1 | **2.803** / **118.3** | 2.833 / 139.1 | 2.833 / 119.8 | 2.808 / 119.0 | +| rbstressN | **3.013** / **159.1** | 3.038 / 189.9 | 3.053 / 209.4 | 3.036 / 198.0 | ## Rust programs -Each program is a crate written for its own purpose and driven with a fixed input. They are built on serde_json, regex, syn, a hyper server with its clients, and tokio channels. +Each program is a crate written for its own purpose and driven with a fixed input. They are built on serde_json, regex, syn, a hyper server with eight clients and one with 256, tokio channels, a fjall key-value store and a rayon pipeline. ### macOS | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, all workloads | 0.91 | 1.02 | 1.00 | 0.93 | 1.01 | -| peak resident memory | 1.22 | 0.96 | 1.00 | 1.13 | 1.17 | -| speed, cold | 0.91 | 1.03 | 1.00 | 0.93 | 1.01 | +| speed, all workloads | 0.94 | 1.03 | 1.00 | 0.96 | 1.04 | +| peak resident memory | 1.18 | 0.97 | 1.00 | 1.12 | 1.11 | +| speed, cold | 0.94 | 1.04 | 1.00 | 0.96 | 1.07 | +| latency, p99 | 1.00 | 1.04 | 1.00 | 1.02 | 1.03 | @@ -106,31 +107,44 @@ Median of 10 runs. Bold marks the best median and every median whose 95% bootstr ### apps -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------- | ------ | ---------- | --------- | --------- | ---------- | -| json (MB/s) | 252.1 | 291.3 | **306.0** | 248.9 | 298.6 | -| regex (MB/s) | 1452.0 | **1525.0** | 1515.0 | 1448.0 | **1526.0** | -| syn (MB/s) | 16.3 | **20.4** | 19.6 | 16.1 | 19.5 | -| http (kreq/s) | 218.6 | **227.6** | **225.6** | **225.7** | **225.3** | -| tokio channels (Mmsg/s) | 4.04 | **4.59** | 4.14 | 4.42 | 4.44 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------- | --------- | ------------ | ---------- | ------------ | ------------- | +| json (MB/s) | 271.5 | 310.6 | **322.4** | 265.2 | **314.2** | +| regex (MB/s) | 1460.0 | **1538.0** | **1532.0** | 1458.0 | **1534.0** | +| syn (MB/s) | 16.8 | **21.6** | **20.6** | 16.6 | 20.1 | +| http (kreq/s) | **225.9** | **229.7** | **233.6** | **234.4** | **232.1** | +| tokio channels (Mmsg/s) | 4.03 | **4.51** | 4.10 | 4.38 | 4.41 | +| kv store (ops/s) | 244400.0 | **246200.0** | 246000.0 | **246900.0** | **249500.0** | +| http many (req/s) | 148600.0 | **151800.0** | 148300.0 | **150600.0** | **151500.0** | +| rayon (records/s) | 2570000.0 | 2985000.0 | 2680000.0 | 2717000.0 | **3484000.0** | ### apps, cold -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------- | ------ | ---------- | --------- | --------- | ---------- | -| json (MB/s) | 254.8 | 291.3 | **303.3** | 247.6 | 298.2 | -| regex (MB/s) | 1442.0 | **1522.0** | 1513.0 | 1445.0 | **1520.0** | -| syn (MB/s) | 16.0 | **20.4** | 19.5 | 15.9 | 19.3 | -| http (kreq/s) | 217.3 | **228.1** | **224.0** | **226.7** | **225.8** | -| tokio channels (Mmsg/s) | 4.04 | **4.58** | 4.13 | 4.46 | 4.48 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------- | --------- | ------------ | ------------ | ------------ | ------------- | +| json (MB/s) | 271.9 | **311.1** | **319.8** | 264.7 | **312.9** | +| regex (MB/s) | 1456.0 | **1540.0** | **1532.0** | **1461.0** | **1536.0** | +| syn (MB/s) | 16.4 | **21.5** | 20.5 | 16.5 | 20.0 | +| http (kreq/s) | **222.4** | **236.3** | **228.5** | **228.9** | **230.9** | +| tokio channels (Mmsg/s) | 4.02 | **4.48** | 4.08 | **4.43** | **4.42** | +| kv store (ops/s) | 243500.0 | **248400.0** | **244400.0** | 239800.0 | **248800.0** | +| http many (req/s) | 147800.0 | **150500.0** | 147500.0 | **148700.0** | **151000.0** | +| rayon (records/s) | 2356000.0 | 2741000.0 | 2402000.0 | 2493000.0 | **3691000.0** | + +### apps, latency (p50 / p99 / p999) + +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | +| http many (us) | - / 2138.0 / - | - / 2050.0 / - | - / 2133.0 / - | - / 2081.0 / - | - / 2070.0 / - | ### Summary | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, all workloads | 0.91 | 1.02 | 1.00 | 0.93 | 1.01 | -| peak resident memory | 1.22 | 0.96 | 1.00 | 1.13 | 1.17 | -| speed, cold | 0.91 | 1.03 | 1.00 | 0.93 | 1.01 | +| speed, all workloads | 0.94 | 1.03 | 1.00 | 0.96 | 1.04 | +| peak resident memory | 1.18 | 0.97 | 1.00 | 1.12 | 1.11 | +| speed, cold | 0.94 | 1.04 | 1.00 | 0.96 | 1.07 | +| latency, p99 | 1.00 | 1.04 | 1.00 | 1.02 | 1.03 | @@ -140,9 +154,10 @@ Median of 10 runs. Bold marks the best median and every median whose 95% bootstr | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, all workloads | 0.82 | 1.09 | 1.00 | 1.03 | 1.04 | -| peak resident memory | 2.23 | 1.75 | 1.00 | 1.70 | 1.68 | -| speed, cold | 0.81 | 1.09 | 1.00 | 1.02 | 1.02 | +| speed, all workloads | 0.72 | 1.13 | 1.00 | 1.03 | 1.05 | +| peak resident memory | 1.93 | 1.52 | 1.00 | 1.49 | 1.48 | +| speed, cold | 0.75 | 1.14 | 1.00 | 1.02 | 1.04 | +| latency, p99 | 0.43 | 1.13 | 1.00 | 1.05 | 1.07 | @@ -153,31 +168,44 @@ Median of 10 runs. Bold marks the best median and every median whose 95% bootstr ### apps -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------- | ------ | ---------- | -------- | -------- | -------- | -| json (MB/s) | 131.2 | **193.4** | 188.1 | 171.3 | 182.1 | -| regex (MB/s) | 986.9 | **1049.0** | 1039.0 | 1034.0 | 1045.0 | -| syn (MB/s) | 7.17 | **10.6** | 10.0 | 9.12 | 9.67 | -| http (kreq/s) | 101.2 | **122.6** | 115.6 | 120.6 | 118.1 | -| tokio channels (Mmsg/s) | 1.22 | 1.88 | 1.41 | **1.93** | 1.75 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------- | ----------- | ------------- | ----------- | ----------- | ----------- | +| json (MB/s) | 127.4 | **190.6** | 178.4 | 167.6 | 176.4 | +| regex (MB/s) | 989.3 | **1051.0** | 1036.0 | 1028.0 | 1045.0 | +| syn (MB/s) | 7.11 | **10.6** | 9.85 | 9.05 | 9.67 | +| http (kreq/s) | 100.7 | **120.9** | 114.2 | 118.8 | 117.3 | +| tokio channels (Mmsg/s) | 1.21 | 1.88 | 1.45 | **2.00** | 1.78 | +| kv store (ops/s) | **60990.0** | **62920.0** | **62480.0** | **62130.0** | **63040.0** | +| http many (req/s) | 140100.0 | **324200.0** | 293300.0 | 304200.0 | 309200.0 | +| rayon (records/s) | 690500.0 | **2344000.0** | 1538000.0 | 1533000.0 | 1773000.0 | ### apps, cold -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------- | ------ | ---------- | -------- | --------- | -------- | -| json (MB/s) | 127.8 | **192.6** | 185.3 | 166.8 | 177.0 | -| regex (MB/s) | 978.5 | **1048.0** | 1039.0 | 1025.0 | 1036.0 | -| syn (MB/s) | 7.02 | **10.6** | 9.98 | 8.88 | 9.43 | -| http (kreq/s) | 101.1 | **122.2** | 115.6 | **121.6** | 118.2 | -| tokio channels (Mmsg/s) | 1.23 | 1.88 | 1.42 | **1.93** | 1.75 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------- | -------- | ------------- | ----------- | ----------- | ----------- | +| json (MB/s) | 124.2 | **189.7** | 178.3 | 163.0 | 171.7 | +| regex (MB/s) | 980.8 | **1049.0** | 1039.0 | 1019.0 | 1036.0 | +| syn (MB/s) | 6.96 | **10.5** | 9.72 | 8.84 | 9.41 | +| http (kreq/s) | 100.5 | **120.7** | 113.5 | 119.3 | 117.7 | +| tokio channels (Mmsg/s) | 1.22 | 1.87 | 1.46 | **2.02** | 1.77 | +| kv store (ops/s) | 56760.0 | **62840.0** | **61370.0** | **61220.0** | **60950.0** | +| http many (req/s) | 141300.0 | **323300.0** | 288100.0 | 304900.0 | 307800.0 | +| rayon (records/s) | 944900.0 | **2303000.0** | 1488000.0 | 1443000.0 | 1695000.0 | + +### apps, latency (p50 / p99 / p999) + +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| -------------- | -------------- | -------------- | -------------- | -------------- | -------------- | +| http many (us) | - / 3454.0 / - | - / 1334.0 / - | - / 1502.0 / - | - / 1431.0 / - | - / 1410.0 / - | ### Summary | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, all workloads | 0.82 | 1.09 | 1.00 | 1.03 | 1.04 | -| peak resident memory | 2.23 | 1.75 | 1.00 | 1.70 | 1.68 | -| speed, cold | 0.81 | 1.09 | 1.00 | 1.02 | 1.02 | +| speed, all workloads | 0.72 | 1.13 | 1.00 | 1.03 | 1.05 | +| peak resident memory | 1.93 | 1.52 | 1.00 | 1.49 | 1.48 | +| speed, cold | 0.75 | 1.14 | 1.00 | 1.02 | 1.04 | +| latency, p99 | 0.43 | 1.13 | 1.00 | 1.05 | 1.07 | @@ -191,20 +219,20 @@ Eight groups of synthetic workloads, from single-thread loops to producer and co | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, pair | 0.56 | 3.75 | 1.00 | 0.55 | 1.71 | -| speed, bulk | 0.27 | 1.48 | 1.00 | 0.43 | 0.81 | -| speed, churn | 0.30 | 2.55 | 1.00 | 1.47 | 1.60 | -| speed, sharing | 0.55 | 3.06 | 1.00 | 2.10 | 1.57 | -| speed, false sharing | 0.87 | 1.00 | 1.00 | 0.68 | 1.00 | -| speed, collections | 0.71 | 1.29 | 1.00 | 0.67 | 1.19 | -| speed, resizing | 1.00 | 1.03 | 1.00 | 0.95 | 0.86 | -| speed, large | 0.98 | 1.08 | 1.00 | 0.15 | 0.12 | -| speed, all workloads | 0.52 | 2.09 | 1.00 | 0.87 | 1.22 | -| memory held afterwards | 2.37 | 3.13 | 1.00 | 0.96 | 3.91 | -| peak resident memory | 0.99 | 0.98 | 1.00 | 0.99 | 1.09 | -| speed, mean of groups | 0.59 | 1.68 | 1.00 | 0.68 | 0.90 | -| speed, cold | 0.52 | 2.05 | 1.00 | 0.87 | 1.23 | -| latency, p99 | 0.54 | 4.14 | 1.00 | 2.34 | 1.65 | +| speed, pair | 0.56 | 4.01 | 1.00 | 0.55 | 1.74 | +| speed, bulk | 0.30 | 1.41 | 1.00 | 0.42 | 0.83 | +| speed, churn | 0.30 | 2.61 | 1.00 | 1.47 | 1.59 | +| speed, sharing | 0.54 | 2.84 | 1.00 | 2.06 | 1.56 | +| speed, false sharing | 0.86 | 1.01 | 1.00 | 0.66 | 1.00 | +| speed, collections | 0.71 | 1.33 | 1.00 | 0.66 | 1.19 | +| speed, resizing | 0.89 | 0.93 | 1.00 | 0.93 | 0.90 | +| speed, large | 0.97 | 1.07 | 1.00 | 0.14 | 0.15 | +| speed, all workloads | 0.52 | 2.09 | 1.00 | 0.86 | 1.24 | +| memory held afterwards | 2.36 | 3.48 | 1.00 | 0.96 | 3.91 | +| peak resident memory | 0.99 | 0.97 | 1.00 | 0.98 | 1.08 | +| speed, mean of groups | 0.59 | 1.65 | 1.00 | 0.67 | 0.93 | +| speed, cold | 0.51 | 2.04 | 1.00 | 0.86 | 1.25 | +| latency, p99 | 0.53 | 3.41 | 1.00 | 2.41 | 1.73 | @@ -217,214 +245,214 @@ Median of 10 runs. Bold marks the best median and every median whose 95% bootstr | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | --------------------- | ------ | --------- | -------- | -------- | -------- | -| pair 16 B (Mops/s) | 153.5 | **433.4** | 224.3 | 142.8 | 397.0 | -| pair 64 B (Mops/s) | 137.6 | **405.0** | 219.9 | 142.2 | 386.5 | -| pair 256 B (Mops/s) | 126.0 | **410.5** | 182.3 | 140.0 | 344.2 | -| pair 1 KiB (Mops/s) | 54.2 | **409.8** | 150.8 | 133.1 | 282.1 | -| pair 4 KiB (Mops/s) | 71.7 | **411.3** | 95.6 | 111.8 | 159.8 | -| pair 16 KiB (Mops/s) | 61.2 | **308.7** | 87.5 | 54.7 | 158.1 | -| pair 64 KiB (Mops/s) | 14.5 | **309.1** | 87.9 | 11.4 | 161.7 | -| pair 256 KiB (Mops/s) | 14.3 | **211.5** | 88.6 | 7.75 | 38.9 | -| pair 1 MiB (Mops/s) | 14.2 | **212.6** | 4.06 | 7.77 | 19.4 | +| pair 16 B (Mops/s) | 152.8 | **468.8** | 225.0 | 143.6 | 398.7 | +| pair 64 B (Mops/s) | 138.2 | **400.4** | 220.5 | 143.1 | 388.0 | +| pair 256 B (Mops/s) | 129.0 | **420.9** | 182.4 | 141.0 | 343.7 | +| pair 1 KiB (Mops/s) | 54.4 | **388.6** | 149.5 | 134.4 | 286.4 | +| pair 4 KiB (Mops/s) | 72.3 | **393.5** | 93.8 | 112.0 | 161.1 | +| pair 16 KiB (Mops/s) | 61.2 | **366.9** | 89.1 | 55.4 | 166.2 | +| pair 64 KiB (Mops/s) | 14.4 | **381.0** | 87.6 | 11.5 | 162.6 | +| pair 256 KiB (Mops/s) | 14.1 | **236.7** | 89.3 | 7.75 | 39.5 | +| pair 1 MiB (Mops/s) | 14.3 | **237.7** | 4.04 | 7.84 | 19.6 | ### pair, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | --------------------- | ------ | --------- | -------- | -------- | -------- | -| pair 16 B (Mops/s) | 152.6 | **433.0** | 223.8 | 143.0 | 396.2 | -| pair 64 B (Mops/s) | 137.4 | **405.2** | 219.6 | 142.2 | 386.1 | -| pair 256 B (Mops/s) | 129.0 | **409.4** | 182.1 | 140.0 | 341.8 | -| pair 1 KiB (Mops/s) | 54.2 | **409.8** | 149.7 | 133.6 | 280.8 | -| pair 4 KiB (Mops/s) | 72.7 | **410.8** | 95.0 | 112.0 | 167.5 | -| pair 16 KiB (Mops/s) | 61.0 | **309.6** | 86.9 | 54.9 | 157.1 | -| pair 64 KiB (Mops/s) | 14.6 | **308.5** | 88.2 | 11.3 | 162.5 | -| pair 256 KiB (Mops/s) | 14.3 | **210.1** | 88.6 | 7.54 | 38.9 | -| pair 1 MiB (Mops/s) | 14.3 | **209.7** | 4.05 | 7.71 | 19.6 | +| pair 16 B (Mops/s) | 153.1 | **461.8** | 225.1 | 143.6 | 398.9 | +| pair 64 B (Mops/s) | 138.0 | **401.2** | 220.6 | 143.3 | 387.7 | +| pair 256 B (Mops/s) | 128.2 | **416.3** | 182.0 | 141.0 | 345.5 | +| pair 1 KiB (Mops/s) | 54.2 | **388.8** | 149.6 | 134.4 | 286.5 | +| pair 4 KiB (Mops/s) | 72.5 | **387.0** | 94.6 | 112.0 | 161.8 | +| pair 16 KiB (Mops/s) | 60.9 | **367.8** | 88.7 | 54.9 | 165.8 | +| pair 64 KiB (Mops/s) | 14.4 | **372.8** | 88.8 | 11.4 | 162.8 | +| pair 256 KiB (Mops/s) | 14.2 | **234.6** | 88.5 | 7.56 | 39.3 | +| pair 1 MiB (Mops/s) | 14.1 | **235.7** | 4.02 | 7.81 | 19.7 | ### bulk | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------------- | ------ | --------- | -------- | -------- | -------- | -| bulk 32 B in order (Mops/s) | 86.5 | **306.4** | 172.4 | 66.2 | 211.8 | -| bulk 32 B shuffled (Mops/s) | 39.9 | **191.4** | 169.7 | 60.3 | 160.8 | -| bulk 512 B shuffled (Mops/s) | 10.8 | **101.6** | 63.0 | 35.5 | 29.1 | +| bulk 32 B in order (Mops/s) | 98.3 | **311.7** | 173.8 | 67.0 | 218.7 | +| bulk 32 B shuffled (Mops/s) | 49.5 | **190.4** | 182.6 | 61.1 | 171.1 | +| bulk 512 B shuffled (Mops/s) | 11.8 | **99.6** | 66.7 | 37.3 | 32.9 | ### bulk, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------------- | ------ | --------- | -------- | -------- | -------- | -| bulk 32 B in order (Mops/s) | 82.1 | **242.3** | 152.9 | 62.7 | 188.1 | -| bulk 32 B shuffled (Mops/s) | 39.8 | **173.8** | 150.6 | 58.0 | 147.2 | -| bulk 512 B shuffled (Mops/s) | 10.5 | **55.3** | 43.8 | 25.5 | 25.2 | +| bulk 32 B in order (Mops/s) | 85.6 | **253.9** | 156.9 | 64.4 | 199.1 | +| bulk 32 B shuffled (Mops/s) | 47.5 | **173.8** | 164.4 | 58.6 | 158.7 | +| bulk 512 B shuffled (Mops/s) | 11.2 | **58.5** | 47.9 | 26.9 | 28.4 | ### churn | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ----------------------------------- | ------ | ---------- | -------- | -------- | -------- | -| churn small (Mops/s) | 48.4 | **231.8** | 98.1 | 122.8 | 214.4 | -| churn medium (Mops/s) | 25.9 | **229.2** | 58.5 | 110.2 | 118.6 | -| churn mixed (Mops/s) | 35.5 | **227.9** | 83.2 | 113.0 | 127.8 | -| churn skewed (Mops/s) | 48.9 | **185.3** | 155.2 | 127.6 | 174.0 | -| churn mixed 4 threads (Mops/s) | 38.1 | **885.3** | 289.0 | 442.5 | 436.7 | -| churn mixed 8 threads (Mops/s) | 66.0 | **1730.0** | 422.5 | 865.3 | 810.1 | -| churn mixed 16 threads (Mops/s) | 93.2 | **1952.0** | 595.5 | 1071.0 | 1033.0 | -| churn skewed 8 threads (Mops/s) | 170.0 | **1373.0** | 848.5 | 950.1 | 1239.0 | -| churn mixed oversubscribed (Mops/s) | 120.5 | **2015.0** | 750.4 | 1104.0 | 1073.0 | -| churn large set (Mops/s) | 6.14 | **53.8** | 10.0 | 27.5 | 22.3 | -| churn with work (Mops/s) | 3.15 | **3.42** | 3.38 | 3.36 | 3.40 | +| churn small (Mops/s) | 48.4 | **234.5** | 97.9 | 123.8 | 214.6 | +| churn medium (Mops/s) | 25.9 | **233.2** | 58.7 | 110.8 | 119.9 | +| churn mixed (Mops/s) | 35.7 | **229.9** | 83.8 | 114.2 | 128.4 | +| churn skewed (Mops/s) | 49.1 | **187.3** | 154.4 | 128.8 | 175.3 | +| churn mixed 4 threads (Mops/s) | 39.7 | **894.0** | 307.7 | 444.7 | 427.5 | +| churn mixed 8 threads (Mops/s) | 68.0 | **1766.0** | 429.9 | 865.8 | 798.2 | +| churn mixed 16 threads (Mops/s) | 93.5 | **2259.0** | 609.4 | 1163.0 | 1070.0 | +| churn skewed 8 threads (Mops/s) | 168.8 | **1419.0** | 866.5 | 975.2 | 1312.0 | +| churn mixed oversubscribed (Mops/s) | 124.3 | **2308.0** | 804.0 | 1213.0 | 1134.0 | +| churn large set (Mops/s) | 7.28 | **67.3** | 11.6 | 31.5 | 25.3 | +| churn with work (Mops/s) | 3.17 | **3.43** | **3.39** | 3.37 | **3.43** | ### churn, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ----------------------------------- | ------ | ---------- | -------- | -------- | -------- | -| churn small (Mops/s) | 48.1 | **230.7** | 98.1 | 122.5 | 213.7 | -| churn medium (Mops/s) | 25.9 | **228.0** | 58.6 | 109.7 | 118.8 | -| churn mixed (Mops/s) | 35.3 | **226.9** | 82.9 | 113.2 | 127.4 | -| churn skewed (Mops/s) | 48.1 | **184.2** | 153.1 | 127.5 | 173.3 | -| churn mixed 4 threads (Mops/s) | 37.3 | **876.9** | 294.4 | 441.9 | 434.4 | -| churn mixed 8 threads (Mops/s) | 64.9 | **1703.0** | 436.8 | 863.8 | 809.0 | -| churn mixed 16 threads (Mops/s) | 90.3 | **1900.0** | 614.1 | 1048.0 | 1007.0 | -| churn skewed 8 threads (Mops/s) | 165.5 | **1404.0** | 842.3 | 966.8 | 1254.0 | -| churn mixed oversubscribed (Mops/s) | 93.7 | **1938.0** | 786.0 | 1127.0 | 1043.0 | -| churn large set (Mops/s) | 5.74 | **35.8** | 8.91 | 20.5 | 20.0 | -| churn with work (Mops/s) | 3.15 | **3.41** | 3.38 | 3.35 | 3.40 | +| churn small (Mops/s) | 48.2 | **234.3** | 98.0 | 122.5 | 213.8 | +| churn medium (Mops/s) | 25.9 | **231.8** | 58.6 | 110.6 | 118.6 | +| churn mixed (Mops/s) | 35.6 | **229.3** | 83.5 | 113.9 | 128.8 | +| churn skewed (Mops/s) | 48.3 | **186.5** | 154.1 | 128.8 | 174.8 | +| churn mixed 4 threads (Mops/s) | 39.4 | **883.9** | 320.4 | 444.0 | 427.2 | +| churn mixed 8 threads (Mops/s) | 66.2 | **1719.0** | 434.1 | 866.0 | 800.5 | +| churn mixed 16 threads (Mops/s) | 91.8 | **2127.0** | 642.1 | 1162.0 | 1059.0 | +| churn skewed 8 threads (Mops/s) | 164.3 | **1419.0** | 848.8 | 976.8 | 1311.0 | +| churn mixed oversubscribed (Mops/s) | 90.5 | **2282.0** | 836.0 | 1217.0 | 1110.0 | +| churn large set (Mops/s) | 6.63 | **41.7** | 10.5 | 22.8 | 22.2 | +| churn with work (Mops/s) | 3.16 | **3.42** | 3.40 | 3.37 | **3.42** | ### sharing | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ------------------------------- | ------ | ---------- | -------- | --------- | -------- | -| larson 8 threads (Mops/s) | 36.3 | **1630.0** | 671.1 | 882.0 | 730.3 | -| ring 4 threads (Mops/s) | 111.1 | **526.5** | 103.2 | 435.0 | 172.2 | -| ring 8 threads (Mops/s) | 111.4 | **556.5** | 82.2 | **559.4** | 174.0 | -| channel 1 pair (Mops/s) | 28.9 | **76.2** | 25.6 | 53.4 | 46.8 | -| channel 4 pairs (Mops/s) | 45.2 | 123.1 | 56.9 | **131.3** | 114.3 | -| shared table 8 threads (Mops/s) | 22.2 | **94.6** | 39.1 | 88.6 | 35.7 | -| thread lifecycle (Mops/s) | 36.4 | **196.7** | 102.3 | 44.1 | 190.0 | +| larson 8 threads (Mops/s) | 35.4 | **1643.0** | 668.9 | 884.8 | 730.5 | +| ring 4 threads (Mops/s) | 112.2 | **479.2** | 111.9 | 443.6 | 177.1 | +| ring 8 threads (Mops/s) | 110.1 | 547.4 | 80.6 | **566.5** | 179.3 | +| channel 1 pair (Mops/s) | 28.9 | **60.3** | 25.6 | 54.1 | 43.1 | +| channel 4 pairs (Mops/s) | 47.0 | 113.7 | 59.6 | **131.3** | 119.9 | +| shared table 8 threads (Mops/s) | 22.8 | **97.0** | 39.6 | 83.0 | 36.2 | +| thread lifecycle (Mops/s) | 37.3 | **196.5** | 102.7 | 44.7 | 190.3 | ### sharing, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ------------------------------- | ------ | ---------- | -------- | --------- | --------- | -| larson 8 threads (Mops/s) | 35.6 | **1543.0** | 663.3 | 867.1 | 727.2 | -| ring 4 threads (Mops/s) | 100.0 | **530.2** | 102.8 | 439.5 | 171.4 | -| ring 8 threads (Mops/s) | 110.1 | **546.0** | 78.7 | **543.9** | 175.5 | -| channel 1 pair (Mops/s) | 29.0 | **75.8** | 25.9 | 51.4 | 51.3 | -| channel 4 pairs (Mops/s) | 45.0 | 121.8 | 56.1 | **135.2** | 112.9 | -| shared table 8 threads (Mops/s) | 16.9 | **94.2** | 38.9 | **92.8** | 35.1 | -| thread lifecycle (Mops/s) | 36.2 | **184.7** | 102.1 | 43.8 | **181.9** | +| larson 8 threads (Mops/s) | 35.5 | **1553.0** | 657.3 | 869.7 | 727.1 | +| ring 4 threads (Mops/s) | 97.5 | **472.8** | 108.3 | 439.8 | 177.2 | +| ring 8 threads (Mops/s) | 109.8 | **546.4** | 80.2 | **547.9** | 178.1 | +| channel 1 pair (Mops/s) | 28.7 | **60.3** | 25.8 | 51.3 | 50.9 | +| channel 4 pairs (Mops/s) | 45.4 | 113.8 | 55.8 | **134.1** | 117.6 | +| shared table 8 threads (Mops/s) | 19.8 | **97.4** | 39.3 | 93.0 | 35.7 | +| thread lifecycle (Mops/s) | 35.6 | **187.5** | 102.4 | 44.3 | **182.8** | ### false sharing -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| -------------------------------- | ------- | ----------- | -------- | -------- | ----------- | -| cache scratch 8 threads (Mops/s) | 26420.0 | **31070.0** | 30940.0 | 14320.0 | **31000.0** | -| cache thrash 8 threads (Mops/s) | 27210.0 | **31060.0** | 30910.0 | 30930.0 | 30990.0 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| -------------------------------- | ------- | ----------- | ----------- | ----------- | ----------- | +| cache scratch 8 threads (Mops/s) | 26740.0 | **31060.0** | **30820.0** | 13390.0 | **30960.0** | +| cache thrash 8 threads (Mops/s) | 26560.0 | **31040.0** | **30920.0** | **30890.0** | **30990.0** | ### false sharing, cold -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| -------------------------------- | ------- | ----------- | -------- | -------- | -------- | -| cache scratch 8 threads (Mops/s) | 27750.0 | **31050.0** | 30940.0 | 13100.0 | 31020.0 | -| cache thrash 8 threads (Mops/s) | 27910.0 | **31050.0** | 30950.0 | 30900.0 | 30990.0 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| -------------------------------- | ------- | ----------- | ----------- | ----------- | ----------- | +| cache scratch 8 threads (Mops/s) | 27890.0 | **31060.0** | 30930.0 | 12630.0 | 30970.0 | +| cache thrash 8 threads (Mops/s) | 28290.0 | **31040.0** | **30950.0** | **30890.0** | **31020.0** | ### collections -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ------------------------------- | ------ | --------- | -------- | -------- | -------- | -| hash map (Mops/s) | 7.55 | **14.7** | 11.7 | 13.0 | 13.7 | -| btree map (Mops/s) | 5.12 | **6.71** | 5.67 | 6.24 | 6.33 | -| strings (Mops/s) | 7.56 | 8.79 | 8.77 | 7.61 | **8.89** | -| linked list (Mops/s) | 92.3 | **223.0** | 148.3 | 66.9 | 187.0 | -| binary trees (Mops/s) | 75.2 | **174.6** | 119.3 | 56.2 | 158.2 | -| tree rewrite (Mops/s) | 79.7 | **195.1** | 128.0 | 57.7 | 170.9 | -| binary trees with work (Mops/s) | 54.3 | **91.2** | 75.2 | 43.9 | 85.3 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ------------------------------- | ------ | --------- | -------- | -------- | --------- | +| hash map (Mops/s) | 8.37 | **15.8** | 12.8 | 13.9 | 14.9 | +| btree map (Mops/s) | 5.64 | **7.02** | 6.06 | 6.51 | 6.57 | +| strings (Mops/s) | 7.58 | 8.81 | 8.82 | 7.67 | **8.99** | +| linked list (Mops/s) | 92.9 | **182.9** | 149.8 | 66.4 | **192.5** | +| binary trees (Mops/s) | 75.3 | **204.9** | 120.2 | 56.2 | 157.6 | +| tree rewrite (Mops/s) | 79.3 | **255.6** | 129.0 | 57.9 | 172.2 | +| binary trees with work (Mops/s) | 54.1 | **91.3** | 75.1 | 44.0 | 85.8 | ### collections, cold -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ------------------------------- | ------ | --------- | -------- | -------- | -------- | -| hash map (Mops/s) | 7.40 | **13.9** | 11.2 | 12.7 | 13.6 | -| btree map (Mops/s) | 5.11 | **6.67** | 5.56 | 6.13 | 6.24 | -| strings (Mops/s) | 7.55 | 8.75 | 8.76 | 7.60 | **8.90** | -| linked list (Mops/s) | 89.8 | **212.0** | 143.8 | 65.6 | 178.5 | -| binary trees (Mops/s) | 74.3 | **171.8** | 117.7 | 55.9 | 153.9 | -| tree rewrite (Mops/s) | 79.5 | **196.2** | 128.4 | 57.8 | 171.2 | -| binary trees with work (Mops/s) | 54.4 | **91.7** | 75.1 | 43.8 | 88.6 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ------------------------------- | ------ | --------- | -------- | -------- | --------- | +| hash map (Mops/s) | 8.19 | **14.9** | 12.2 | 13.7 | 14.6 | +| btree map (Mops/s) | 5.54 | **6.90** | 5.97 | 6.34 | 6.55 | +| strings (Mops/s) | 7.59 | 8.78 | 8.80 | 7.65 | **8.95** | +| linked list (Mops/s) | 90.5 | **177.0** | 145.9 | 65.9 | **185.1** | +| binary trees (Mops/s) | 74.3 | **196.1** | 119.3 | 56.0 | 154.8 | +| tree rewrite (Mops/s) | 79.3 | **255.7** | 129.4 | 57.4 | 171.5 | +| binary trees with work (Mops/s) | 54.4 | **91.3** | 75.4 | 44.0 | 88.4 | ### resizing -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------- | ---------- | --------- | --------- | --------- | -------- | -| vec growth (Mops/s) | 857.4 | 675.7 | 630.7 | **947.2** | 826.3 | -| string growth (Mops/s) | **3092.0** | 2984.0 | 3012.0 | 2622.0 | 1806.0 | -| many vectors (Mops/s) | 288.3 | **305.1** | **302.5** | 296.5 | 299.7 | -| realloc random (Mops/s) | 9.10 | **12.9** | 12.3 | 7.72 | 8.47 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------- | --------- | --------- | ---------- | --------- | --------- | +| vec growth (Mops/s) | 871.9 | 680.4 | 641.7 | **967.1** | 870.0 | +| string growth (Mops/s) | 1965.0 | 1937.0 | **3031.0** | 2499.0 | 2114.0 | +| many vectors (Mops/s) | **306.9** | **319.8** | **315.0** | **309.9** | **313.4** | +| realloc random (Mops/s) | 9.11 | **13.3** | 12.5 | 7.76 | 8.50 | ### resizing, cold -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------- | ---------- | --------- | --------- | --------- | -------- | -| vec growth (Mops/s) | 871.8 | 665.8 | 630.5 | **950.4** | 807.9 | -| string growth (Mops/s) | **3057.0** | 2964.0 | 2988.0 | 2365.0 | 1800.0 | -| many vectors (Mops/s) | 284.2 | **303.1** | **300.6** | 292.1 | 297.2 | -| realloc random (Mops/s) | 9.11 | **12.9** | 12.2 | 7.73 | 8.43 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------- | ------ | --------- | ---------- | --------- | --------- | +| vec growth (Mops/s) | 919.9 | 691.9 | 650.3 | **960.3** | 849.5 | +| string growth (Mops/s) | 1962.0 | 1942.0 | **2998.0** | 2291.0 | 2100.0 | +| many vectors (Mops/s) | 298.4 | **318.0** | **312.6** | 305.4 | **313.3** | +| realloc random (Mops/s) | 9.10 | **13.2** | 12.4 | 7.75 | 8.52 | ### large | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| medium blocks (Mops/s) | 1.69 | **2.01** | 1.49 | 1.22 | 0.58 | -| large blocks (Mops/s) | 0.20 | 0.20 | **0.23** | 0.01 | 0.01 | +| medium blocks (Mops/s) | 1.76 | **2.08** | 1.56 | 1.37 | 0.70 | +| large blocks (Mops/s) | 0.21 | 0.21 | **0.25** | 0.01 | 0.01 | ### large, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| medium blocks (Mops/s) | 1.65 | **1.95** | 1.45 | 1.16 | 0.58 | -| large blocks (Mops/s) | 0.16 | 0.16 | **0.19** | 0.01 | 0.01 | +| medium blocks (Mops/s) | 1.72 | **2.04** | 1.50 | 1.31 | 0.68 | +| large blocks (Mops/s) | 0.17 | 0.17 | **0.21** | 0.01 | 0.01 | ### memory -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| --------------------- | --------- | -------- | --------- | -------- | --------- | -| burst retention (MiB) | 21.8 | 7.41 | 260.6 | 266.3 | **5.47** | -| half freed (MiB) | **153.2** | 154.0 | **153.2** | 155.9 | 153.6 | -| phase churn (MiB) | 132.5 | 169.2 | 148.2 | 163.2 | **118.1** | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| --------------------- | ------ | -------- | --------- | -------- | --------- | +| burst retention (MiB) | 22.0 | 7.44 | 260.6 | 266.3 | **5.48** | +| half freed (MiB) | 153.4 | 154.1 | **153.2** | 155.9 | 153.6 | +| phase churn (MiB) | 133.3 | 122.4 | 148.2 | 163.4 | **118.1** | ### latency | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------------- | ------ | -------- | -------- | -------- | -------- | -| latency churn 1 thread (ns) | 16.9 | **3.27** | 7.16 | 7.81 | 5.22 | -| latency churn 8 threads (ns) | 108.1 | **3.91** | 15.6 | 7.81 | 7.17 | -| latency remote frees (ns) | 118.5 | **37.8** | 304.7 | 43.6 | 204.4 | +| latency churn 1 thread (ns) | 16.3 | **3.25** | 7.16 | 7.81 | 5.21 | +| latency churn 8 threads (ns) | 105.1 | **3.27** | 16.3 | 7.81 | 7.17 | +| latency remote frees (ns) | 149.7 | 90.5 | 326.2 | **44.3** | 196.0 | ### latency, latency (p50 / p99 / p999) | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------------- | -------------------- | ------------------- | -------------------- | ------------------ | -------------------- | -| latency churn 1 thread (ns) | 13.0 / 16.9 / 19.5 | 1.95 / 3.27 / 5.20 | 4.56 / 7.16 / 9.12 | 3.91 / 7.81 / 9.77 | 3.27 / 5.22 / 8.46 | -| latency churn 8 threads (ns) | 57.3 / 108.1 / 142.6 | 1.95 / 3.91 / 5.22 | 7.16 / 15.6 / 22.1 | 3.91 / 7.81 / 10.4 | 3.91 / 7.17 / 10.4 | -| latency remote frees (ns) | 29.3 / 118.5 / 369.8 | 1.31 / 37.8 / 313.2 | 6.51 / 304.7 / 597.0 | 7.81 / 43.6 / 74.2 | 6.50 / 204.4 / 946.0 | +| latency churn 1 thread (ns) | 13.0 / 16.3 / 18.2 | 1.31 / 3.25 / 4.56 | 4.56 / 7.16 / 9.11 | 3.91 / 7.81 / 9.77 | 3.27 / 5.21 / 8.45 | +| latency churn 8 threads (ns) | 54.7 / 105.1 / 135.4 | 1.95 / 3.27 / 5.20 | 7.16 / 16.3 / 22.5 | 3.91 / 7.81 / 9.77 | 3.91 / 7.17 / 10.4 | +| latency remote frees (ns) | 29.9 / 149.7 / 369.1 | 1.31 / 90.5 / 379.6 | 7.81 / 326.2 / 583.3 | 7.81 / 44.3 / 71.6 | 6.50 / 196.0 / 840.5 | ### Summary | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, pair | 0.56 | 3.75 | 1.00 | 0.55 | 1.71 | -| speed, bulk | 0.27 | 1.48 | 1.00 | 0.43 | 0.81 | -| speed, churn | 0.30 | 2.55 | 1.00 | 1.47 | 1.60 | -| speed, sharing | 0.55 | 3.06 | 1.00 | 2.10 | 1.57 | -| speed, false sharing | 0.87 | 1.00 | 1.00 | 0.68 | 1.00 | -| speed, collections | 0.71 | 1.29 | 1.00 | 0.67 | 1.19 | -| speed, resizing | 1.00 | 1.03 | 1.00 | 0.95 | 0.86 | -| speed, large | 0.98 | 1.08 | 1.00 | 0.15 | 0.12 | -| speed, all workloads | 0.52 | 2.09 | 1.00 | 0.87 | 1.22 | -| memory held afterwards | 2.37 | 3.13 | 1.00 | 0.96 | 3.91 | -| peak resident memory | 0.99 | 0.98 | 1.00 | 0.99 | 1.09 | -| speed, mean of groups | 0.59 | 1.68 | 1.00 | 0.68 | 0.90 | -| speed, cold | 0.52 | 2.05 | 1.00 | 0.87 | 1.23 | -| latency, p99 | 0.54 | 4.14 | 1.00 | 2.34 | 1.65 | +| speed, pair | 0.56 | 4.01 | 1.00 | 0.55 | 1.74 | +| speed, bulk | 0.30 | 1.41 | 1.00 | 0.42 | 0.83 | +| speed, churn | 0.30 | 2.61 | 1.00 | 1.47 | 1.59 | +| speed, sharing | 0.54 | 2.84 | 1.00 | 2.06 | 1.56 | +| speed, false sharing | 0.86 | 1.01 | 1.00 | 0.66 | 1.00 | +| speed, collections | 0.71 | 1.33 | 1.00 | 0.66 | 1.19 | +| speed, resizing | 0.89 | 0.93 | 1.00 | 0.93 | 0.90 | +| speed, large | 0.97 | 1.07 | 1.00 | 0.14 | 0.15 | +| speed, all workloads | 0.52 | 2.09 | 1.00 | 0.86 | 1.24 | +| memory held afterwards | 2.36 | 3.48 | 1.00 | 0.96 | 3.91 | +| peak resident memory | 0.99 | 0.97 | 1.00 | 0.98 | 1.08 | +| speed, mean of groups | 0.59 | 1.65 | 1.00 | 0.67 | 0.93 | +| speed, cold | 0.51 | 2.04 | 1.00 | 0.86 | 1.25 | +| latency, p99 | 0.53 | 3.41 | 1.00 | 2.41 | 1.73 | @@ -434,20 +462,20 @@ Median of 10 runs. Bold marks the best median and every median whose 95% bootstr | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, pair | 1.06 | 2.90 | 1.00 | 0.65 | 1.72 | -| speed, bulk | 0.13 | 1.15 | 1.00 | 0.33 | 0.56 | -| speed, churn | 0.82 | 2.23 | 1.00 | 1.67 | 1.71 | -| speed, sharing | 0.33 | 2.02 | 1.00 | 2.17 | 1.09 | -| speed, false sharing | 0.90 | 1.00 | 1.00 | 1.00 | 1.00 | -| speed, collections | 0.61 | 1.07 | 1.00 | 0.72 | 0.94 | -| speed, resizing | 1.02 | 1.09 | 1.00 | 0.60 | 0.90 | -| speed, large | 0.44 | 1.10 | 1.00 | 0.08 | 0.23 | -| speed, all workloads | 0.63 | 1.73 | 1.00 | 0.88 | 1.14 | -| memory held afterwards | 11.88 | 2.89 | 1.00 | 1.06 | 1.10 | -| peak resident memory | 2.12 | 1.82 | 1.00 | 1.82 | 1.49 | -| speed, mean of groups | 0.55 | 1.45 | 1.00 | 0.63 | 0.88 | -| speed, cold | 0.62 | 1.73 | 1.00 | 0.86 | 1.08 | -| latency, p99 | 0.91 | 2.98 | 1.00 | 1.64 | 1.96 | +| speed, pair | 1.09 | 3.50 | 1.00 | 0.66 | 1.79 | +| speed, bulk | 0.14 | 1.14 | 1.00 | 0.36 | 0.61 | +| speed, churn | 0.83 | 2.28 | 1.00 | 1.68 | 1.73 | +| speed, sharing | 0.33 | 2.07 | 1.00 | 2.19 | 1.13 | +| speed, false sharing | 0.92 | 1.00 | 1.00 | 1.00 | 1.00 | +| speed, collections | 0.63 | 1.09 | 1.00 | 0.73 | 0.96 | +| speed, resizing | 1.03 | 1.09 | 1.00 | 0.60 | 0.92 | +| speed, large | 0.43 | 1.07 | 1.00 | 0.08 | 0.27 | +| speed, all workloads | 0.64 | 1.82 | 1.00 | 0.89 | 1.18 | +| memory held afterwards | 10.77 | 2.94 | 1.00 | 1.06 | 1.10 | +| peak resident memory | 2.02 | 1.76 | 1.00 | 1.77 | 1.49 | +| speed, mean of groups | 0.56 | 1.49 | 1.00 | 0.64 | 0.91 | +| speed, cold | 0.63 | 1.81 | 1.00 | 0.88 | 1.12 | +| latency, p99 | 0.93 | 3.03 | 1.00 | 1.67 | 1.94 | @@ -458,216 +486,216 @@ Median of 10 runs. Bold marks the best median and every median whose 95% bootstr ### pair -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| --------------------- | ------ | --------- | -------- | -------- | --------- | -| pair 16 B (Mops/s) | 130.0 | 298.6 | 283.7 | 251.8 | **342.7** | -| pair 64 B (Mops/s) | 130.6 | 289.3 | 241.1 | 249.6 | **335.8** | -| pair 256 B (Mops/s) | 130.6 | 284.4 | 211.0 | 241.4 | **303.2** | -| pair 1 KiB (Mops/s) | 130.0 | **291.6** | 140.6 | 215.1 | **279.2** | -| pair 4 KiB (Mops/s) | 55.7 | **290.0** | 60.3 | 153.7 | 190.8 | -| pair 16 KiB (Mops/s) | 54.9 | **185.0** | 55.3 | 54.3 | **186.8** | -| pair 64 KiB (Mops/s) | 54.1 | **203.9** | 55.3 | 4.04 | 189.6 | -| pair 256 KiB (Mops/s) | 57.4 | **130.5** | 55.3 | 4.08 | 20.3 | -| pair 1 MiB (Mops/s) | 57.3 | **130.7** | 4.48 | 4.06 | 9.29 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| --------------------- | ------ | --------- | -------- | -------- | -------- | +| pair 16 B (Mops/s) | 130.5 | **341.5** | 266.5 | 251.8 | 314.7 | +| pair 64 B (Mops/s) | 130.1 | **342.2** | 226.5 | 249.8 | 309.2 | +| pair 256 B (Mops/s) | 130.7 | **342.3** | 201.2 | 241.6 | 329.6 | +| pair 1 KiB (Mops/s) | 126.3 | **342.5** | 142.1 | 185.6 | 297.2 | +| pair 4 KiB (Mops/s) | 55.7 | **342.9** | 58.1 | 154.6 | 194.5 | +| pair 16 KiB (Mops/s) | 54.9 | **252.6** | 54.3 | 54.3 | 194.2 | +| pair 64 KiB (Mops/s) | 54.1 | **252.6** | 55.1 | 4.17 | 196.4 | +| pair 256 KiB (Mops/s) | 57.4 | **139.1** | 54.3 | 4.15 | 20.2 | +| pair 1 MiB (Mops/s) | 57.4 | **135.9** | 4.43 | 4.20 | 9.32 | ### pair, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | --------------------- | ------ | --------- | -------- | -------- | --------- | -| pair 16 B (Mops/s) | 130.5 | 300.8 | 283.4 | 251.6 | **342.6** | -| pair 64 B (Mops/s) | 130.6 | 283.8 | 257.0 | 249.5 | **335.4** | -| pair 256 B (Mops/s) | 130.6 | 293.2 | 211.6 | 241.2 | **303.1** | -| pair 1 KiB (Mops/s) | 130.6 | **292.8** | 140.5 | 216.1 | **279.2** | -| pair 4 KiB (Mops/s) | 55.7 | **289.9** | 60.3 | 153.1 | 190.8 | -| pair 16 KiB (Mops/s) | 54.9 | **185.7** | 55.1 | 54.3 | **186.1** | -| pair 64 KiB (Mops/s) | 54.1 | **206.2** | 55.3 | 4.06 | 188.4 | -| pair 256 KiB (Mops/s) | 57.3 | **134.0** | 55.2 | 4.07 | 20.3 | -| pair 1 MiB (Mops/s) | 56.7 | **132.9** | 4.46 | 4.05 | 9.29 | +| pair 16 B (Mops/s) | 130.6 | **342.3** | 280.5 | 251.7 | **328.2** | +| pair 64 B (Mops/s) | 130.6 | **342.2** | 248.1 | 249.6 | 309.1 | +| pair 256 B (Mops/s) | 130.6 | **341.4** | 213.7 | 241.4 | 329.3 | +| pair 1 KiB (Mops/s) | 126.3 | **342.0** | 141.9 | 196.8 | 297.0 | +| pair 4 KiB (Mops/s) | 55.7 | **342.5** | 58.1 | 157.0 | 194.5 | +| pair 16 KiB (Mops/s) | 54.9 | **250.6** | 54.4 | 54.3 | 194.0 | +| pair 64 KiB (Mops/s) | 54.1 | **251.9** | 54.4 | 4.17 | 196.2 | +| pair 256 KiB (Mops/s) | 57.3 | **130.5** | 54.4 | 4.13 | 20.2 | +| pair 1 MiB (Mops/s) | 56.8 | **130.0** | 4.42 | 4.20 | 9.30 | ### bulk -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ---------------------------- | ------ | --------- | --------- | -------- | -------- | -| bulk 32 B in order (Mops/s) | 22.2 | 172.0 | **190.7** | 52.7 | 125.1 | -| bulk 32 B shuffled (Mops/s) | 9.07 | **105.1** | 87.2 | 44.2 | 62.7 | -| bulk 512 B shuffled (Mops/s) | 7.10 | **59.0** | 42.4 | 11.3 | 16.2 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ---------------------------- | ------ | -------- | --------- | -------- | -------- | +| bulk 32 B in order (Mops/s) | 22.0 | 155.0 | **178.5** | 51.5 | 124.6 | +| bulk 32 B shuffled (Mops/s) | 8.56 | **93.3** | 77.4 | 43.6 | 57.4 | +| bulk 512 B shuffled (Mops/s) | 6.78 | **52.6** | 37.0 | 10.3 | 15.9 | ### bulk, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------------- | ------ | --------- | --------- | -------- | -------- | -| bulk 32 B in order (Mops/s) | 25.9 | **158.8** | **165.4** | 41.8 | 67.7 | -| bulk 32 B shuffled (Mops/s) | 9.97 | **99.4** | 80.6 | 37.0 | 43.7 | -| bulk 512 B shuffled (Mops/s) | 4.82 | **41.4** | 32.1 | 6.38 | 7.62 | +| bulk 32 B in order (Mops/s) | 25.6 | **139.8** | **139.7** | 40.4 | 65.1 | +| bulk 32 B shuffled (Mops/s) | 9.34 | **87.7** | 66.2 | 36.0 | 40.2 | +| bulk 512 B shuffled (Mops/s) | 4.71 | **33.6** | 25.8 | 6.13 | 7.52 | ### churn -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------------------- | -------- | ---------- | -------- | -------- | --------- | -| churn small (Mops/s) | 61.4 | 119.4 | 69.7 | 108.5 | **125.1** | -| churn medium (Mops/s) | 36.3 | **116.0** | 41.6 | 82.0 | 80.8 | -| churn mixed (Mops/s) | 38.7 | **118.0** | 58.1 | 86.8 | 87.9 | -| churn skewed (Mops/s) | 51.6 | **137.8** | 126.2 | 119.8 | 120.8 | -| churn mixed 4 threads (Mops/s) | 149.4 | **466.1** | 126.0 | 340.6 | 342.8 | -| churn mixed 8 threads (Mops/s) | 299.2 | **937.0** | 245.2 | 676.3 | 662.2 | -| churn mixed 16 threads (Mops/s) | 593.0 | **1713.0** | 466.4 | 1333.0 | 1304.0 | -| churn skewed 8 threads (Mops/s) | 394.2 | **1078.0** | 860.1 | 936.2 | 946.0 | -| churn mixed oversubscribed (Mops/s) | 1094.0 | **3185.0** | 1216.0 | 2338.0 | 2423.0 | -| churn large set (Mops/s) | 5.00 | **24.7** | 6.44 | 10.0 | 10.8 | -| churn with work (Mops/s) | **2.01** | **2.11** | **2.16** | 1.95 | **2.08** | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------------------- | ------ | ---------- | -------- | -------- | --------- | +| churn small (Mops/s) | 61.7 | 120.2 | 68.3 | 108.6 | **125.0** | +| churn medium (Mops/s) | 36.9 | **118.1** | 41.2 | 82.2 | 81.0 | +| churn mixed (Mops/s) | 39.2 | **119.1** | 57.1 | 86.6 | 88.5 | +| churn skewed (Mops/s) | 51.6 | **133.1** | 124.6 | 119.9 | 121.2 | +| churn mixed 4 threads (Mops/s) | 152.2 | **473.0** | 125.0 | 336.2 | 342.8 | +| churn mixed 8 threads (Mops/s) | 303.4 | **945.6** | 244.2 | 667.5 | 663.7 | +| churn mixed 16 threads (Mops/s) | 603.0 | **1830.0** | 472.4 | 1313.0 | 1322.0 | +| churn skewed 8 threads (Mops/s) | 387.3 | **1043.0** | 847.4 | 931.9 | 950.7 | +| churn mixed oversubscribed (Mops/s) | 1045.0 | **3439.0** | 1217.0 | 2435.0 | 2510.0 | +| churn large set (Mops/s) | 4.81 | **23.3** | 6.10 | 9.28 | 10.3 | +| churn with work (Mops/s) | 1.88 | **2.09** | 2.06 | 1.94 | 1.95 | ### churn, cold -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ----------------------------------- | ------ | ---------- | -------- | ---------- | --------- | -| churn small (Mops/s) | 61.1 | 119.6 | 69.9 | 108.3 | **125.1** | -| churn medium (Mops/s) | 36.1 | **115.1** | 41.6 | 81.1 | 80.3 | -| churn mixed (Mops/s) | 38.5 | **117.1** | 57.9 | 85.9 | 86.9 | -| churn skewed (Mops/s) | 50.7 | **136.2** | 125.0 | 118.5 | 119.6 | -| churn mixed 4 threads (Mops/s) | 147.4 | **457.8** | 128.9 | 338.1 | 337.4 | -| churn mixed 8 threads (Mops/s) | 290.8 | **913.7** | 248.2 | 671.4 | 656.0 | -| churn mixed 16 threads (Mops/s) | 558.2 | **1554.0** | 478.4 | **1316.0** | 1251.0 | -| churn skewed 8 threads (Mops/s) | 390.5 | **1061.0** | 819.6 | 928.9 | 945.6 | -| churn mixed oversubscribed (Mops/s) | 992.4 | **3182.0** | 1416.0 | 2312.0 | 2406.0 | -| churn large set (Mops/s) | 3.86 | **20.5** | 6.09 | 6.57 | 6.29 | -| churn with work (Mops/s) | 1.93 | **2.18** | **2.06** | 1.96 | **2.04** | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ----------------------------------- | ------ | ---------- | -------- | -------- | --------- | +| churn small (Mops/s) | 61.1 | 120.5 | 68.1 | 108.2 | **124.6** | +| churn medium (Mops/s) | 36.8 | **117.2** | 41.1 | 81.2 | 80.2 | +| churn mixed (Mops/s) | 39.1 | **118.2** | 57.0 | 85.9 | 87.3 | +| churn skewed (Mops/s) | 50.8 | **131.8** | 123.3 | 118.5 | 119.9 | +| churn mixed 4 threads (Mops/s) | 150.4 | **464.0** | 132.8 | 335.3 | 336.6 | +| churn mixed 8 threads (Mops/s) | 293.5 | **923.9** | 241.1 | 662.7 | 660.3 | +| churn mixed 16 threads (Mops/s) | 560.4 | **1741.0** | 461.7 | 1319.0 | 1312.0 | +| churn skewed 8 threads (Mops/s) | 384.4 | **1027.0** | 829.5 | 926.3 | 945.8 | +| churn mixed oversubscribed (Mops/s) | 873.5 | **3355.0** | 1358.0 | 2413.0 | 2506.0 | +| churn large set (Mops/s) | 3.73 | **18.4** | 5.65 | 6.19 | 6.11 | +| churn with work (Mops/s) | 1.89 | **2.09** | 2.06 | 1.95 | 1.96 | ### sharing | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ------------------------------- | ------ | --------- | -------- | --------- | -------- | -| larson 8 threads (Mops/s) | 145.5 | **817.1** | 405.6 | 635.4 | 555.9 | -| ring 4 threads (Mops/s) | 9.68 | 76.4 | 24.0 | **120.0** | 34.2 | -| ring 8 threads (Mops/s) | 17.4 | 152.0 | 47.6 | **234.0** | 68.5 | -| channel 1 pair (Mops/s) | 1.19 | 8.54 | 5.42 | **9.17** | 4.94 | -| channel 4 pairs (Mops/s) | 4.58 | 28.1 | 20.3 | **33.4** | 19.0 | -| shared table 8 threads (Mops/s) | 4.31 | **82.0** | 29.2 | 69.0 | 22.1 | -| thread lifecycle (Mops/s) | 70.8 | **77.0** | 69.8 | 62.5 | 69.0 | +| larson 8 threads (Mops/s) | 144.4 | **795.8** | 405.8 | 604.4 | 548.9 | +| ring 4 threads (Mops/s) | 9.79 | 74.6 | 23.7 | **118.0** | 34.2 | +| ring 8 threads (Mops/s) | 17.5 | 147.6 | 46.8 | **229.2** | 67.7 | +| channel 1 pair (Mops/s) | 1.24 | 9.42 | 5.45 | **10.8** | 5.63 | +| channel 4 pairs (Mops/s) | 4.82 | 33.1 | 20.4 | **38.8** | 21.9 | +| shared table 8 threads (Mops/s) | 4.27 | **78.6** | 28.4 | 67.6 | 21.6 | +| thread lifecycle (Mops/s) | 68.1 | **74.4** | 68.1 | 50.2 | 67.0 | ### sharing, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ------------------------------- | ------ | --------- | -------- | --------- | -------- | -| larson 8 threads (Mops/s) | 142.6 | **802.8** | 418.6 | 622.8 | 545.1 | -| ring 4 threads (Mops/s) | 9.63 | 76.4 | 23.8 | **119.0** | 34.5 | -| ring 8 threads (Mops/s) | 17.2 | 151.1 | 47.2 | **227.9** | 68.7 | -| channel 1 pair (Mops/s) | 1.17 | **8.38** | 5.47 | **8.89** | 5.01 | -| channel 4 pairs (Mops/s) | 4.55 | 28.1 | 20.8 | **32.5** | 19.0 | -| shared table 8 threads (Mops/s) | 4.29 | **81.2** | 28.9 | 68.3 | 21.9 | -| thread lifecycle (Mops/s) | 70.3 | **76.7** | 68.2 | 61.3 | 68.4 | +| larson 8 threads (Mops/s) | 141.8 | **788.9** | 404.9 | 587.4 | 541.2 | +| ring 4 threads (Mops/s) | 9.77 | 74.3 | 23.3 | **115.9** | 34.1 | +| ring 8 threads (Mops/s) | 17.2 | 146.7 | 45.9 | **223.4** | 68.6 | +| channel 1 pair (Mops/s) | 1.26 | 9.52 | 5.39 | **10.8** | 5.56 | +| channel 4 pairs (Mops/s) | 4.80 | 33.1 | 20.8 | **38.5** | 22.0 | +| shared table 8 threads (Mops/s) | 4.25 | **78.2** | 28.4 | 67.0 | 21.6 | +| thread lifecycle (Mops/s) | 68.3 | **74.4** | 67.9 | 49.8 | 66.3 | ### false sharing -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| -------------------------------- | ------- | -------- | ----------- | -------- | ----------- | -| cache scratch 8 threads (Mops/s) | 49250.0 | 59790.0 | **59990.0** | 59900.0 | **59970.0** | -| cache thrash 8 threads (Mops/s) | 59770.0 | 59800.0 | **59990.0** | 59900.0 | **59990.0** | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| -------------------------------- | ------- | -------- | ----------- | ----------- | ----------- | +| cache scratch 8 threads (Mops/s) | 50520.0 | 59930.0 | **60000.0** | 59960.0 | **59990.0** | +| cache thrash 8 threads (Mops/s) | 59790.0 | 59930.0 | **60010.0** | **59990.0** | **59990.0** | ### false sharing, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | -------------------------------- | ------- | -------- | ----------- | -------- | ----------- | -| cache scratch 8 threads (Mops/s) | 42410.0 | 59780.0 | **59960.0** | 59690.0 | **59960.0** | -| cache thrash 8 threads (Mops/s) | 59760.0 | 59790.0 | **59970.0** | 59710.0 | **59960.0** | +| cache scratch 8 threads (Mops/s) | 42420.0 | 59900.0 | **59970.0** | 59810.0 | **59980.0** | +| cache thrash 8 threads (Mops/s) | 59780.0 | 59900.0 | **59960.0** | 59790.0 | **59960.0** | ### collections -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ------------------------------- | ------ | -------- | --------- | -------- | --------- | -| hash map (Mops/s) | 4.08 | **9.48** | 7.89 | 7.06 | 7.56 | -| btree map (Mops/s) | 2.88 | **5.31** | 4.50 | 4.77 | 4.48 | -| strings (Mops/s) | 6.04 | **7.25** | 7.18 | 6.01 | **7.21** | -| linked list (Mops/s) | 85.5 | 161.9 | **164.7** | 78.2 | 129.8 | -| binary trees (Mops/s) | 62.4 | **96.2** | **96.0** | 58.7 | 90.9 | -| tree rewrite (Mops/s) | 37.5 | 104.8 | 101.1 | 55.9 | **107.2** | -| binary trees with work (Mops/s) | 45.2 | **51.5** | 47.7 | 36.1 | 41.9 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ------------------------------- | ------ | --------- | --------- | -------- | -------- | +| hash map (Mops/s) | 3.90 | **8.83** | 7.48 | 6.70 | 7.24 | +| btree map (Mops/s) | 2.79 | **5.18** | 4.40 | 4.72 | 4.49 | +| strings (Mops/s) | 6.04 | **7.18** | **7.19** | 6.04 | **7.19** | +| linked list (Mops/s) | 87.8 | **153.7** | **157.7** | 76.4 | 130.4 | +| binary trees (Mops/s) | 64.1 | **101.7** | 95.2 | 59.4 | 90.3 | +| tree rewrite (Mops/s) | 37.3 | **121.5** | 98.5 | 56.1 | 106.9 | +| binary trees with work (Mops/s) | 45.9 | **50.0** | 47.8 | 36.5 | 41.8 | ### collections, cold -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ------------------------------- | ------ | --------- | --------- | -------- | --------- | -| hash map (Mops/s) | 4.47 | **9.30** | 7.49 | 6.38 | 6.05 | -| btree map (Mops/s) | 3.62 | **5.30** | 4.39 | 4.45 | 4.14 | -| strings (Mops/s) | 5.72 | **7.24** | 7.17 | 5.91 | 7.07 | -| linked list (Mops/s) | 72.8 | **154.5** | **149.3** | 68.2 | 101.3 | -| binary trees (Mops/s) | 57.1 | **92.8** | **95.0** | 56.1 | 85.6 | -| tree rewrite (Mops/s) | 45.4 | 104.5 | 101.4 | 55.8 | **107.5** | -| binary trees with work (Mops/s) | 44.4 | **51.4** | 47.6 | 35.9 | 41.2 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ------------------------------- | ------ | --------- | --------- | -------- | -------- | +| hash map (Mops/s) | 4.30 | **8.69** | 7.06 | 6.15 | 5.82 | +| btree map (Mops/s) | 3.54 | **5.11** | 4.31 | 4.41 | 4.19 | +| strings (Mops/s) | 5.71 | **7.16** | **7.13** | 5.93 | 7.04 | +| linked list (Mops/s) | 73.7 | **145.2** | **144.3** | 67.2 | 101.2 | +| binary trees (Mops/s) | 58.7 | **94.7** | **94.4** | 56.9 | 86.2 | +| tree rewrite (Mops/s) | 45.5 | **121.3** | 98.8 | 55.9 | 106.7 | +| binary trees with work (Mops/s) | 45.1 | **50.0** | 47.7 | 36.2 | 41.0 | ### resizing | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ----------------------- | ---------- | -------- | -------- | -------- | -------- | -| vec growth (Mops/s) | **1820.0** | 1557.0 | 1348.0 | 280.5 | 978.0 | -| string growth (Mops/s) | **1876.0** | 1794.0 | 1791.0 | 1816.0 | 1689.0 | -| many vectors (Mops/s) | **332.2** | 277.6 | 279.2 | 272.3 | 294.9 | -| realloc random (Mops/s) | 5.39 | **10.4** | 8.39 | 5.32 | 7.50 | +| vec growth (Mops/s) | **1820.0** | 1554.0 | 1341.0 | 271.6 | 1024.0 | +| string growth (Mops/s) | **1876.0** | 1791.0 | 1789.0 | 1813.0 | 1703.0 | +| many vectors (Mops/s) | **331.5** | 271.2 | 275.1 | 271.3 | 295.4 | +| realloc random (Mops/s) | 5.38 | **10.2** | 8.33 | 5.29 | 7.49 | ### resizing, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ----------------------- | ---------- | ---------- | -------- | -------- | -------- | -| vec growth (Mops/s) | 1440.0 | **1489.0** | 1310.0 | 273.7 | 793.4 | -| string growth (Mops/s) | **1813.0** | 1771.0 | 1779.0 | 1763.0 | 1630.0 | -| many vectors (Mops/s) | **326.0** | 275.1 | 276.1 | 246.1 | 275.5 | -| realloc random (Mops/s) | 5.39 | **10.3** | 8.39 | 5.30 | 7.45 | +| vec growth (Mops/s) | 1431.0 | **1474.0** | 1286.0 | 265.4 | 825.9 | +| string growth (Mops/s) | **1810.0** | 1764.0 | 1772.0 | 1755.0 | 1636.0 | +| many vectors (Mops/s) | **323.8** | 267.9 | 271.6 | 245.6 | 272.9 | +| realloc random (Mops/s) | 5.38 | **10.2** | 8.33 | 5.26 | 7.45 | ### large | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| medium blocks (Mops/s) | 0.22 | **1.22** | 1.04 | 0.66 | 0.53 | -| large blocks (Mops/s) | 0.10 | **0.11** | 0.10 | 0.00 | 0.01 | +| medium blocks (Mops/s) | 0.21 | **1.18** | 1.04 | 0.64 | 0.58 | +| large blocks (Mops/s) | 0.10 | **0.10** | 0.10 | 0.00 | 0.01 | ### large, cold | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| medium blocks (Mops/s) | 0.22 | **1.20** | 1.00 | 0.55 | 0.49 | -| large blocks (Mops/s) | 0.04 | **0.09** | **0.07** | 0.00 | 0.01 | +| medium blocks (Mops/s) | 0.21 | **1.15** | 0.99 | 0.53 | 0.53 | +| large blocks (Mops/s) | 0.03 | **0.09** | 0.07 | 0.00 | 0.01 | ### memory | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | --------------------- | --------- | -------- | -------- | -------- | --------- | -| burst retention (MiB) | **0.20** | 10.7 | 260.1 | 269.1 | 261.3 | -| half freed (MiB) | 183.2 | 157.4 | 156.0 | 157.0 | **153.4** | -| phase churn (MiB) | **133.3** | 196.2 | 197.0 | 156.9 | 149.7 | +| burst retention (MiB) | **0.26** | 10.8 | 260.3 | 269.0 | 261.3 | +| half freed (MiB) | 183.3 | 157.5 | 156.0 | 157.0 | **153.3** | +| phase churn (MiB) | **133.3** | 184.5 | 197.0 | 159.0 | 149.7 | ### latency | Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------------- | ------ | -------- | -------- | --------- | -------- | -| latency churn 1 thread (ns) | 19.2 | **6.72** | 11.4 | 18.2 | 7.50 | -| latency churn 8 threads (ns) | 19.7 | **6.88** | 31.5 | 18.6 | 8.45 | -| latency remote frees (ns) | 566.7 | 134.8 | 457.3 | **109.9** | 347.0 | +| latency churn 1 thread (ns) | 19.4 | **6.88** | 11.6 | 18.2 | 7.66 | +| latency churn 8 threads (ns) | 20.2 | **7.03** | 32.8 | 18.6 | 8.75 | +| latency remote frees (ns) | 563.9 | 132.8 | 465.9 | **112.5** | 361.9 | ### latency, latency (p50 / p99 / p999) -| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | -| ---------------------------- | --------------------- | -------------------- | --------------------- | -------------------- | -------------------- | -| latency churn 1 thread (ns) | 11.6 / 19.2 / 64.4 | 3.91 / 6.72 / 9.53 | 7.34 / 11.4 / 17.2 | 4.53 / 18.2 / 23.1 | 5.07 / 7.50 / 15.6 | -| latency churn 8 threads (ns) | 12.0 / 19.7 / 59.4 | 4.06 / 6.88 / 10.0 | 12.6 / 31.5 / 51.6 | 5.17 / 18.6 / 23.6 | 5.00 / 8.45 / 20.0 | -| latency remote frees (ns) | 185.9 / 566.7 / 752.2 | 20.2 / 134.8 / 198.0 | 101.3 / 457.3 / 650.0 | 41.2 / 109.9 / 161.3 | 26.6 / 347.0 / 459.9 | +| Workload | system | bcmalloc | mimalloc | jemalloc | snmalloc | +| ---------------------------- | --------------------- | -------------------- | -------------------- | -------------------- | -------------------- | +| latency churn 1 thread (ns) | 11.6 / 19.4 / 68.0 | 3.91 / 6.88 / 9.23 | 7.34 / 11.6 / 17.7 | 4.45 / 18.2 / 23.1 | 5.00 / 7.66 / 15.6 | +| latency churn 8 threads (ns) | 12.0 / 20.2 / 63.3 | 3.92 / 7.03 / 10.2 | 12.8 / 32.8 / 54.1 | 5.16 / 18.6 / 23.8 | 5.16 / 8.75 / 20.3 | +| latency remote frees (ns) | 141.1 / 563.9 / 795.5 | 21.1 / 132.8 / 200.3 | 99.2 / 465.9 / 662.0 | 41.9 / 112.5 / 170.9 | 26.7 / 361.9 / 478.8 | ### Summary | Compared with mimalloc | system | bcmalloc | mimalloc | jemalloc | snmalloc | | ---------------------- | ------ | -------- | -------- | -------- | -------- | -| speed, pair | 1.06 | 2.90 | 1.00 | 0.65 | 1.72 | -| speed, bulk | 0.13 | 1.15 | 1.00 | 0.33 | 0.56 | -| speed, churn | 0.82 | 2.23 | 1.00 | 1.67 | 1.71 | -| speed, sharing | 0.33 | 2.02 | 1.00 | 2.17 | 1.09 | -| speed, false sharing | 0.90 | 1.00 | 1.00 | 1.00 | 1.00 | -| speed, collections | 0.61 | 1.07 | 1.00 | 0.72 | 0.94 | -| speed, resizing | 1.02 | 1.09 | 1.00 | 0.60 | 0.90 | -| speed, large | 0.44 | 1.10 | 1.00 | 0.08 | 0.23 | -| speed, all workloads | 0.63 | 1.73 | 1.00 | 0.88 | 1.14 | -| memory held afterwards | 11.88 | 2.89 | 1.00 | 1.06 | 1.10 | -| peak resident memory | 2.12 | 1.82 | 1.00 | 1.82 | 1.49 | -| speed, mean of groups | 0.55 | 1.45 | 1.00 | 0.63 | 0.88 | -| speed, cold | 0.62 | 1.73 | 1.00 | 0.86 | 1.08 | -| latency, p99 | 0.91 | 2.98 | 1.00 | 1.64 | 1.96 | +| speed, pair | 1.09 | 3.50 | 1.00 | 0.66 | 1.79 | +| speed, bulk | 0.14 | 1.14 | 1.00 | 0.36 | 0.61 | +| speed, churn | 0.83 | 2.28 | 1.00 | 1.68 | 1.73 | +| speed, sharing | 0.33 | 2.07 | 1.00 | 2.19 | 1.13 | +| speed, false sharing | 0.92 | 1.00 | 1.00 | 1.00 | 1.00 | +| speed, collections | 0.63 | 1.09 | 1.00 | 0.73 | 0.96 | +| speed, resizing | 1.03 | 1.09 | 1.00 | 0.60 | 0.92 | +| speed, large | 0.43 | 1.07 | 1.00 | 0.08 | 0.27 | +| speed, all workloads | 0.64 | 1.82 | 1.00 | 0.89 | 1.18 | +| memory held afterwards | 10.77 | 2.94 | 1.00 | 1.06 | 1.10 | +| peak resident memory | 2.02 | 1.76 | 1.00 | 1.77 | 1.49 | +| speed, mean of groups | 0.56 | 1.49 | 1.00 | 0.64 | 0.91 | +| speed, cold | 0.63 | 1.81 | 1.00 | 0.88 | 1.12 | +| latency, p99 | 0.93 | 3.03 | 1.00 | 1.67 | 1.94 | diff --git a/DESIGN.md b/DESIGN.md index 0595484..cb55422 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -35,7 +35,7 @@ bcmalloc is built from techniques that other allocators have proven, put togethe ## 2. Background -Rust gives a global allocator a small contract[^globalalloc]. A small C library in the repository also exposes the allocator as malloc and free, for preloading into C programs. A C free carries no size, so it reads the block's class, or a huge block's length, from the chunk map described below. +Rust gives a global allocator a small contract[^globalalloc]. A small C library in the repository also exposes the allocator as malloc and free, for preloading into C programs. A C free carries no size, so it reads the block's class, or a huge block's length, from the chunk map described below. The library defines C++'s operators new and delete as well, as the preload libraries of mimalloc, snmalloc and jemalloc do, so that a C++ program's allocations skip the runtime's operator and its call through the dynamic linker. A new that cannot allocate must run the program's new-handler and throw std::bad_alloc, and no C++ exception may unwind through a Rust frame, so the throwing forms are a few instructions of assembly that call the allocator and, when it fails, jump to the C++ runtime's own operator, which retries, runs the handler and throws with nothing of the library left on the stack. - Every free carries the layout that the block was allocated with. - The allocator must never unwind, and it must not allocate while it allocates. A lot of the standard library allocates, so the allocator stays on the thread-local storage and atomics that are documented not to. @@ -79,6 +79,7 @@ A few parts of the OS interface differ between the supported platforms, and the - Single-chunk slabs of a big heap come from the huge-page zone. They fill quickly and pack next to each other. - A slab of several chunks holds few large blocks and may stay mostly untouched, so it comes from the huge-page zone only once the heap has filled a slab of its class. - A block of whole chunks is usually a buffer or an arena that the program fills. It comes from the huge-page zone when its heap is big, and always when it spans 2 MiB or more. +- A process counts as big once its slabs and blocks of whole chunks take up 64 MiB. In a big process, a heap's slabs of any class it has filled come from the huge-page zone whatever the heap's size. Many threads that each use a little of a large heap would otherwise fault their slabs in a page at a time, all at once, while a small program never gets that far and keeps its footprint. ![The part of each NUMA node split into a small-page zone and a huge-page zone, with the slabs and runs of a small heap and of a big heap placed in them](assets/zones.svg) @@ -151,12 +152,14 @@ A heap is a thread's private view of the region. For each size class it keeps a **Figure 8.** A heap's bins. Allocating pops the top pointer and freeing pushes one. An empty bin is refilled to half from the front slab's bitmap, and a full bin gives its older half back. -The fast path of an allocation is a table lookup for the bin and a pop. The fast path of a free is one load from the chunk map, whose entry names the owning heap and the bin, and a push. Neither uses an atomic instruction or touches the block, and in the C library malloc compiles to 20 instructions and free to 27. The bins are the thread caches of jemalloc and the per-CPU arrays of TCMalloc[^jemalloc][^tcmalloc]. Because a bin is a stack, a block that was just freed is the next one handed out, while it is still in the cache. +The fast path of an allocation is a table lookup for the bin and a pop. The fast path of a free is one load from the chunk map, whose entry names the owning heap and the bin, and a push. Neither uses an atomic instruction or touches the block, and in the C library on x86-64 malloc compiles to 19 instructions and free to 30, with no stack frame and with jumps to the slow paths. A free reads where the chunk map is from the allocator's static, not from the heap, so that its load of the map entry does not wait for the thread-local load. The bins are the thread caches of jemalloc and the per-CPU arrays of TCMalloc[^jemalloc][^tcmalloc]. Because a bin is a stack, a block that was just freed is the next one handed out, while it is still in the cache. Each bin is a range of pointer slots in the region, with its top pointer kept next to the bin's two limits. Whether the bin is empty or full is a comparison of the low 16 bits of the top pointer with a limit, because a bin spans at most 16 KiB. The thread finds its heap in one thread-local load. On Apple silicon it reads the slot straight from the thread's key table through the thread pointer register, which is the load that the system's own lookup does, without the call. Creating the key stores a marker through the public interface and reads it back through the register, and the key is refused if the two disagree, so a change in the operating system's layout shows up as a failed allocation and not as corruption. Elsewhere the heap pointer sits in an ordinary thread-local. **Refills and flushes.** An empty bin first looks at the heap's inbox, where other threads send blocks home, and then fills half its capacity from the front slab with room. Blocks come out of each slab in address order, and the bin hands them out in the same order, so a run of allocations walks memory upwards. A slab that runs out moves to the full list. A full bin gives back its older half, and blocks that follow each other in one slab go back with one look at the slab and one write per bitmap word. +**Spilled batches.** A bin that overflows at its largest capacity, for a class the heap also refills, does not give its older blocks back to their slabs. It copies up to 510 of them into a batch, a 4 KiB block of the heap's own that holds pointers, and keeps the batch on a list for the class. A refill of that class that finds nothing in the inbox copies the newest batch back into the bin before it goes to a slab. A program that allocates and frees a class in waves bigger than the bin then moves pointers in bulk, where it would return every block to its slab's bitmap and collect it again. The batches of a heap hold at most 1 MiB of blocks. A burst that outgrows that is not one a refill takes back, and its batches would keep a few blocks of every slab it freed in use, so the class's batches go back to their slabs and the class spills again only after its next refill. A batch nobody takes back goes to the slabs at the heap's next maintenance step. Messages and batches themselves never spill. + **Sizing.** A bin starts with room for about 32 KiB of blocks of its class, at least 8 and at most 128 pointers, and a bin for a class above 8 KiB with room for about 64 KiB, between 1 and 8 pointers. When a class alternates between running dry and overflowing, which is a sign that its bursts are bigger than the bin, the bin doubles, up to 2048 pointers for classes of up to 64 bytes and about 128 KiB of blocks for the others, within a budget of 2 MiB for the whole heap. A bin that has not missed for a while is halved again. This is how TCMalloc sizes its per-CPU caches[^tcmalloc]. A program that builds and drops trees of a few thousand nodes then keeps them all in the bin, and a quiet class holds little. **Heap lifetime.** A heap is a slot in the region and not a property of a thread. When a thread exits, its heap empties its bins and outboxes and goes back to the pool with all its slabs, and the next thread to start takes it. A thread that is about to go quiet can call `Bcmalloc::flush_thread` to hand back what its heap keeps, as jemalloc's thread cache flush does. @@ -167,7 +170,7 @@ A free reads the chunk map entry of the block, which names the heap that owns it **Small blocks that own their cache lines.** If the class size is a multiple of the cache line, 64 bytes on x86-64 and 128 bytes on Apple silicon, and at most 256 bytes, the block goes into the freeing thread's own bin and can be handed out again there. The block cannot share a line with any other block, because blocks start at multiples of their size. A thread that reuses it therefore never writes next to a block that its owner still uses, which is the false sharing that Hoard's rule of returning blocks to their owner exists to prevent[^hoard]. jemalloc and TCMalloc reuse any freed block in the freeing thread[^jemalloc][^tcmalloc]. bcmalloc does so only for these few lines, because a larger block costs more where it was freed than at home. Its owner wrote it and probably still holds its lines, and a thread on another core that reuses it pulls every line it writes across the interconnect. On a machine with several L3 caches, keeping blocks of up to 8 KiB where they were freed halved the throughput of a benchmark that allocates on one core and frees on another. -**Every other block goes home.** It is appended to an outbox for its owner. A heap keeps 16 outboxes, chosen by the owner's id, so up to 16 destinations fill messages side by side. A message is a 512-byte block of the sender's own that holds 62 pointers. When it is full, holds 64 KiB of blocks, or must make room for another destination, the sender pushes it onto the owner's inbox with one compare-and-swap. A message with a single block sends the block itself instead, tagged in its link. snmalloc returns remote frees to their owner the same way, as messages batched per destination[^snmalloc]. A message itself is kept by the heap that reads it, whatever its size, because that heap has just read its lines and reuses it for messages of its own. +**Every other block goes home.** It is appended to an outbox for its owner. A heap keeps 32 outboxes, chosen by the owner's id, so up to 32 destinations fill messages side by side. When a bin gives back blocks that belong to another heap, the blocks that follow and have the same owner go into its outbox together, one copy per message, and blocks of one slab need no second look at the chunk map because slabs are aligned to their size. A message is a 512-byte block of the sender's own that holds 62 pointers. When it is full, holds 64 KiB of blocks, or must make room for another destination, the sender pushes it onto the owner's inbox with one compare-and-swap. A message with a single block sends the block itself instead, tagged in its link. snmalloc returns remote frees to their owner the same way, as messages batched per destination[^snmalloc]. A message itself is kept by the heap that reads it, whatever its size, because that heap has just read its lines and reuses it for messages of its own. ![A consumer thread sends blocks to the producer that owns them. The blocks go into an outbox message, the message goes onto the producer's inbox with one compare-and-swap, and the producer files the pointers into its bins](assets/messages.svg) @@ -175,7 +178,7 @@ A free reads the chunk map entry of the block, which names the heap that owns it The messages carry pointers and are not lists threaded through the blocks. A list would make the sender write into each freed block, whose cache line usually sits in the owner's core, and the owner would then read every block in turn to find the next. With messages, the only memory that moves between cores is the message itself, one line per eight blocks. -The inbox is a stack that any thread pushes onto and that only its owner empties, with one swap. Nothing is ever popped by anyone else, so the stack cannot suffer the ABA problem. The owner reads it when a bin runs dry, which is when it needs blocks, and also when a bin overflows and before it starts a message of its own, so that a thread that only frees still gets its messages back. It files each pointer into its bin, or into its slab if the bin is full. The chunk map tells it the class of each block. The message itself is then freed like any other block. +The inbox is a stack that any thread pushes onto and that only its owner empties, with one swap. Nothing is ever popped by anyone else, so the stack cannot suffer the ABA problem. The owner reads it when a bin runs dry, which is when it needs blocks, and also when a bin overflows and before it starts a message of its own, so that a thread that only frees still gets its messages back. It files each pointer into its bin, or into its slab if the bin is full. A message records the class of its blocks while they are all of one class, and the owner then copies as many as fit into the bin at once. Otherwise the chunk map tells it the class of each block. The message itself is then freed like any other block. Two properties make this safe. A block in a message still counts as in use in its slab, so the slab cannot be released and its chunk map entry cannot change while the block is on its way. And a heap slot outlives its threads. A heap whose thread has exited keeps its inbox, and the next thread to claim the slot, or a call to `trim`, reads it. @@ -197,7 +200,7 @@ A heap keeps up to four freed blocks of whole chunks of at most 8 MiB, still cla A program that frees a gigabyte and then runs for a month should not keep the gigabyte. The allocator hands free chunks back to the operating system on a clock, and it needs three small pieces of state to do that safely. -Every bitmap word has a timestamp, which is the latest time that a chunk in it was freed. A second bitmap marks the chunks that were freed since they were last given back. A third marks the chunks whose pages are already gone. The clock runs from paths that are slow anyway, which are refills, slab releases and huge frees. When it is due, and a flag says that some chunk may be waiting, one thread makes a pass over the words. A word whose newest free is at least 10 ms old has its idle chunks claimed with a compare-and-swap on the used word, the same operation that allocation uses, so a chunk in use can never be handed to the kernel. The pass advises the kernel about each claimed run, marks it as given back, and releases it. A program that stays quiet pays nothing, and a busy one pays a clock read now and then. +Every bitmap word has a timestamp, which is the latest time that a chunk in it was freed. A second bitmap marks the chunks that were freed since they were last given back. A third marks the chunks whose pages are already gone. The clock runs from paths that are slow anyway, which are refills, slab releases and huge frees, and from allocations of more than 8 KiB, which check a flag, so that a program that goes quiet after a burst and lives off its bins still gives the burst's memory back. When it is due, and a flag says that some chunk may be waiting, one thread makes a pass over the words. A word whose newest free is at least 10 ms old has its idle chunks claimed with a compare-and-swap on the used word, the same operation that allocation uses, so a chunk in use can never be handed to the kernel. The pass advises the kernel about each claimed run, marks it as given back, and releases it. A program that stays quiet pays nothing, and a busy one pays a clock read now and then. In the huge-page zone, a pass only takes a 2 MiB page whose 32 chunks are all free. Giving back part of a huge page would split it into small pages and lose the TLB reach it was there for. Temeraire releases whole huge pages for the same reason[^temeraire], and mimalloc's default on Linux is to purge no less than 2 MiB[^mimalloc-thp]. The placement rule of section 4 is what makes whole pages come free, because allocations crowd into pages that are already in use. The small-page zone gives chunks back one at a time. In the huge-page zone a word also waits ten times as long, 100 ms, before its pages go back. A huge page that is given back and used again costs a fault that clears 2 MiB, which a program that frees and allocates big blocks in turn would otherwise pay every time. jemalloc lets dirty pages decay over seconds for the same reason[^jemalloc]. diff --git a/README.md b/README.md index e01abe9..0b802f3 100644 --- a/README.md +++ b/README.md @@ -95,15 +95,15 @@ If the operating system refuses the default reservation, the global allocator re | Compared with mimalloc | system | bcmalloc | jemalloc | snmalloc | | ---------------------------------- | ------ | -------- | -------- | -------- | -| development suite, macOS, speed | 0.52 | 2.09 | 0.87 | 1.22 | -| development suite, Linux, speed | 0.63 | 1.73 | 0.88 | 1.14 | -| Rust programs, macOS, speed | 0.91 | 1.02 | 0.93 | 1.01 | -| Rust programs, Linux, speed | 0.82 | 1.09 | 1.03 | 1.04 | -| mimalloc-bench, Linux, speed | - | 1.00 | 0.82 | 0.94 | -| mimalloc-bench, Linux, peak memory | - | 1.51 | 1.38 | 1.40 | +| development suite, macOS, speed | 0.52 | 2.09 | 0.86 | 1.24 | +| development suite, Linux, speed | 0.64 | 1.82 | 0.89 | 1.18 | +| Rust programs, macOS, speed | 0.94 | 1.03 | 0.96 | 1.04 | +| Rust programs, Linux, speed | 0.72 | 1.13 | 1.03 | 1.05 | +| mimalloc-bench, Linux, speed | - | 1.02 | 0.82 | 0.94 | +| mimalloc-bench, Linux, peak memory | - | 1.49 | 1.37 | 1.40 | -The development suite has 51 synthetic workloads and is what the allocator is tuned against. The Rust programs, built on serde_json, regex, syn, hyper and tokio, and the C programs of mimalloc-bench are never tuned against. Figures are relative to mimalloc, and above 1.00 is better, faster or less memory. [BENCHMARKS.md](https://github.com/clabby/bcmalloc/blob/main/BENCHMARKS.md) has the method, the machines, every table, and the programs where bcmalloc is not the fastest. +The development suite has 51 synthetic workloads and is what the allocator is tuned against. The Rust programs, built on serde_json, regex, syn, hyper, tokio, fjall and rayon, and the C programs of mimalloc-bench are never tuned against. Figures are relative to mimalloc, and above 1.00 is better, faster or less memory. [BENCHMARKS.md](https://github.com/clabby/bcmalloc/blob/main/BENCHMARKS.md) has the method, the machines, every table, and the programs where bcmalloc is not the fastest. ## Limits diff --git a/assets/benchmarks.svg b/assets/benchmarks.svg index 1f5e47c..c2dd10e 100644 --- a/assets/benchmarks.svg +++ b/assets/benchmarks.svg @@ -7,4 +7,4 @@ text{font-family:ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, san .grid{stroke:var(--line);stroke-width:1}.even{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:4 4} .dot{fill-opacity:.55;stroke:none}.mean{stroke-width:3;fill:none} .c-mimalloc{fill:#8250df;stroke:#8250df}.c-snmalloc{fill:#1a7f37;stroke:#1a7f37}.c-jemalloc{fill:#bc4c00;stroke:#bc4c00}.c-tcmalloc{fill:#9a6700;stroke:#9a6700}.c-system{fill:#6e7781;stroke:#6e7781} -How bcmalloc compares, workload by workloadEach dot is one workload: bcmalloc's speed divided by the other allocator's, on a log scale. Right of the dashed line,bcmalloc is faster. The bar is the geometric mean. Medians of every run, from benchmarks.json.4× slower2× slowereven2× faster4× faster8× faster16× fasterDevelopment suite, macOS45 workloadsagainst mimalloc2.09× faster on 43 of 45against snmalloc1.71× faster on 43 of 45against jemalloc2.41× faster on 42 of 45against system4.03× faster on 43 of 45Development suite, Linux45 workloadsagainst mimalloc1.73× faster on 39 of 45against snmalloc1.52× faster on 36 of 45against jemalloc1.96× faster on 38 of 45against system2.75× faster on 42 of 45Rust programs, macOS5 workloadsagainst mimalloc1.02× faster on 4 of 5against snmalloc1.01× faster on 3 of 5against jemalloc1.10× faster on 5 of 5against system1.12× faster on 5 of 5Rust programs, Linux5 workloadsagainst mimalloc1.09× faster on 5 of 5against snmalloc1.05× faster on 5 of 5against jemalloc1.06× faster on 4 of 5against system1.34× faster on 5 of 5Mimalloc-bench, Linux28 workloadsagainst mimalloc1.00× faster on 9 of 28against snmalloc1.06× faster on 12 of 28against jemalloc1.22× faster on 20 of 28Dots beyond the ends of the axis sit at the ends. Workloads that measure memory are left out, and so is the latency group. +How bcmalloc compares, workload by workloadEach dot is one workload: bcmalloc's speed divided by the other allocator's, on a log scale. Right of the dashed line,bcmalloc is faster. The bar is the geometric mean. Medians of every run, from benchmarks.json.4× slower2× slowereven2× faster4× faster8× faster16× fasterDevelopment suite, macOS45 workloadsagainst mimalloc2.09× faster on 42 of 45against snmalloc1.69× faster on 40 of 45against jemalloc2.42× faster on 41 of 45against system4.05× faster on 43 of 45Development suite, Linux45 workloadsagainst mimalloc1.82× faster on 39 of 45against snmalloc1.55× faster on 40 of 45against jemalloc2.04× faster on 37 of 45against system2.84× faster on 42 of 45Rust programs, macOS8 workloadsagainst mimalloc1.03× faster on 6 of 8against snmalloc0.99× faster on 4 of 8against jemalloc1.08× faster on 6 of 8against system1.10× faster on 8 of 8Rust programs, Linux8 workloadsagainst mimalloc1.13× faster on 8 of 8against snmalloc1.08× faster on 7 of 8against jemalloc1.10× faster on 7 of 8against system1.56× faster on 8 of 8Mimalloc-bench, Linux28 workloadsagainst mimalloc1.02× faster on 17 of 28against snmalloc1.09× faster on 18 of 28against jemalloc1.25× faster on 27 of 28Dots beyond the ends of the axis sit at the ends. Workloads that measure memory are left out, and so is the latency group. diff --git a/benchmarks.json b/benchmarks.json index ed2440e..eb8ce1f 100644 --- a/benchmarks.json +++ b/benchmarks.json @@ -26,33 +26,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 433.0, - "lo": 430.2, - "hi": 434.4, + "median": 461.8, + "lo": 455.1, + "hi": 467.6, "peak_mib": 1.7 }, "jemalloc": { - "median": 143.0, - "lo": 142.8, - "hi": 143.3, + "median": 143.6, + "lo": 143.4, + "hi": 143.9, "peak_mib": 1.7 }, "mimalloc": { - "median": 223.8, - "lo": 223.0, - "hi": 224.5, + "median": 225.1, + "lo": 223.5, + "hi": 225.9, "peak_mib": 1.7 }, "snmalloc": { - "median": 396.2, - "lo": 392.8, - "hi": 397.9, + "median": 398.9, + "lo": 393.1, + "hi": 399.3, "peak_mib": 1.5 }, "system": { - "median": 152.6, - "lo": 146.9, - "hi": 158.0, + "median": 153.1, + "lo": 147.6, + "hi": 157.6, "peak_mib": 1.3 } } @@ -61,33 +61,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 433.4, - "lo": 432.7, - "hi": 436.8, + "median": 468.8, + "lo": 461.4, + "hi": 477.0, "peak_mib": 1.7 }, "jemalloc": { - "median": 142.8, - "lo": 142.7, - "hi": 145.6, + "median": 143.6, + "lo": 143.3, + "hi": 144.1, "peak_mib": 1.7 }, "mimalloc": { - "median": 224.3, - "lo": 224.0, - "hi": 224.7, + "median": 225.0, + "lo": 223.0, + "hi": 225.9, "peak_mib": 1.7 }, "snmalloc": { - "median": 397.0, - "lo": 394.8, - "hi": 397.5, + "median": 398.7, + "lo": 394.4, + "hi": 399.4, "peak_mib": 1.5 }, "system": { - "median": 153.5, - "lo": 151.7, - "hi": 155.3, + "median": 152.8, + "lo": 150.4, + "hi": 157.6, "peak_mib": 1.3 } } @@ -105,33 +105,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 405.2, - "lo": 392.1, - "hi": 410.6, + "median": 401.2, + "lo": 398.5, + "hi": 402.0, "peak_mib": 1.7 }, "jemalloc": { - "median": 142.2, - "lo": 142.1, - "hi": 142.4, + "median": 143.3, + "lo": 142.8, + "hi": 143.4, "peak_mib": 1.7 }, "mimalloc": { - "median": 219.6, - "lo": 219.1, - "hi": 220.1, + "median": 220.6, + "lo": 219.0, + "hi": 221.8, "peak_mib": 1.7 }, "snmalloc": { - "median": 386.1, - "lo": 384.6, - "hi": 387.0, + "median": 387.7, + "lo": 386.3, + "hi": 389.0, "peak_mib": 1.5 }, "system": { - "median": 137.4, - "lo": 136.1, - "hi": 137.9, + "median": 138.0, + "lo": 135.1, + "hi": 139.7, "peak_mib": 1.3 } } @@ -140,33 +140,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 405.0, - "lo": 392.1, - "hi": 411.2, + "median": 400.4, + "lo": 399.9, + "hi": 401.4, "peak_mib": 1.7 }, "jemalloc": { - "median": 142.2, - "lo": 142.0, - "hi": 143.9, + "median": 143.1, + "lo": 143.0, + "hi": 143.5, "peak_mib": 1.7 }, "mimalloc": { - "median": 219.9, - "lo": 219.5, - "hi": 220.4, + "median": 220.5, + "lo": 219.0, + "hi": 221.6, "peak_mib": 1.7 }, "snmalloc": { - "median": 386.5, - "lo": 385.6, - "hi": 387.1, + "median": 388.0, + "lo": 386.5, + "hi": 388.9, "peak_mib": 1.5 }, "system": { - "median": 137.6, - "lo": 136.5, - "hi": 138.2, + "median": 138.2, + "lo": 137.3, + "hi": 141.3, "peak_mib": 1.3 } } @@ -184,33 +184,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 409.4, - "lo": 408.0, - "hi": 411.0, - "peak_mib": 1.8 + "median": 416.3, + "lo": 404.2, + "hi": 431.1, + "peak_mib": 1.7 }, "jemalloc": { - "median": 140.0, - "lo": 139.9, + "median": 141.0, + "lo": 140.6, "hi": 141.2, "peak_mib": 1.7 }, "mimalloc": { - "median": 182.1, - "lo": 180.7, - "hi": 185.7, + "median": 182.0, + "lo": 181.1, + "hi": 187.7, "peak_mib": 1.7 }, "snmalloc": { - "median": 341.8, - "lo": 339.6, - "hi": 344.1, + "median": 345.5, + "lo": 343.6, + "hi": 348.5, "peak_mib": 1.5 }, "system": { - "median": 129.0, - "lo": 126.9, - "hi": 129.9, + "median": 128.2, + "lo": 125.3, + "hi": 130.7, "peak_mib": 1.3 } } @@ -219,33 +219,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 410.5, - "lo": 409.3, - "hi": 412.7, - "peak_mib": 1.8 + "median": 420.9, + "lo": 410.4, + "hi": 430.5, + "peak_mib": 1.7 }, "jemalloc": { - "median": 140.0, - "lo": 139.8, - "hi": 140.8, + "median": 141.0, + "lo": 140.8, + "hi": 141.4, "peak_mib": 1.7 }, "mimalloc": { - "median": 182.3, - "lo": 180.6, - "hi": 184.7, + "median": 182.4, + "lo": 181.3, + "hi": 184.3, "peak_mib": 1.7 }, "snmalloc": { - "median": 344.2, - "lo": 342.4, - "hi": 345.2, + "median": 343.7, + "lo": 339.0, + "hi": 346.5, "peak_mib": 1.5 }, "system": { - "median": 126.0, - "lo": 120.9, - "hi": 127.6, + "median": 129.0, + "lo": 127.1, + "hi": 130.6, "peak_mib": 1.3 } } @@ -263,33 +263,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 409.8, - "lo": 408.5, - "hi": 411.5, + "median": 388.8, + "lo": 384.7, + "hi": 398.7, "peak_mib": 1.7 }, "jemalloc": { - "median": 133.6, - "lo": 133.3, - "hi": 134.9, + "median": 134.4, + "lo": 133.6, + "hi": 134.6, "peak_mib": 1.7 }, "mimalloc": { - "median": 149.7, - "lo": 148.8, - "hi": 151.9, + "median": 149.6, + "lo": 148.0, + "hi": 152.1, "peak_mib": 1.7 }, "snmalloc": { - "median": 280.8, - "lo": 274.8, - "hi": 288.2, + "median": 286.5, + "lo": 281.6, + "hi": 293.1, "peak_mib": 1.5 }, "system": { - "median": 54.22, - "lo": 54.06, - "hi": 54.35, + "median": 54.25, + "lo": 53.58, + "hi": 54.54, "peak_mib": 1.3 } } @@ -298,33 +298,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 409.8, - "lo": 404.5, - "hi": 411.8, + "median": 388.6, + "lo": 386.6, + "hi": 399.6, "peak_mib": 1.7 }, "jemalloc": { - "median": 133.1, - "lo": 133.1, - "hi": 133.4, + "median": 134.4, + "lo": 134.1, + "hi": 135.8, "peak_mib": 1.7 }, "mimalloc": { - "median": 150.8, - "lo": 148.8, - "hi": 152.2, + "median": 149.5, + "lo": 147.4, + "hi": 150.9, "peak_mib": 1.7 }, "snmalloc": { - "median": 282.1, - "lo": 276.1, - "hi": 286.1, + "median": 286.4, + "lo": 283.3, + "hi": 295.2, "peak_mib": 1.5 }, "system": { - "median": 54.21, - "lo": 54.12, - "hi": 54.43, + "median": 54.38, + "lo": 54.14, + "hi": 54.78, "peak_mib": 1.3 } } @@ -342,33 +342,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 410.8, - "lo": 408.9, - "hi": 422.8, - "peak_mib": 1.8 + "median": 387.0, + "lo": 384.7, + "hi": 395.5, + "peak_mib": 1.7 }, "jemalloc": { "median": 112.0, - "lo": 111.9, - "hi": 112.3, + "lo": 110.6, + "hi": 112.5, "peak_mib": 1.7 }, "mimalloc": { - "median": 94.97, - "lo": 94.81, - "hi": 97.67, + "median": 94.62, + "lo": 93.75, + "hi": 95.3, "peak_mib": 1.7 }, "snmalloc": { - "median": 167.5, - "lo": 156.8, - "hi": 169.6, + "median": 161.8, + "lo": 160.1, + "hi": 164.5, "peak_mib": 1.5 }, "system": { - "median": 72.66, - "lo": 72.2, - "hi": 73.01, + "median": 72.5, + "lo": 72.25, + "hi": 72.97, "peak_mib": 1.3 } } @@ -377,33 +377,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 411.3, - "lo": 408.8, - "hi": 422.9, - "peak_mib": 1.8 + "median": 393.5, + "lo": 386.3, + "hi": 400.6, + "peak_mib": 1.7 }, "jemalloc": { - "median": 111.8, - "lo": 111.2, - "hi": 112.1, + "median": 112.0, + "lo": 111.6, + "hi": 113.0, "peak_mib": 1.7 }, "mimalloc": { - "median": 95.59, - "lo": 93.7, - "hi": 97.51, + "median": 93.75, + "lo": 92.61, + "hi": 95.63, "peak_mib": 1.7 }, "snmalloc": { - "median": 159.8, - "lo": 157.0, - "hi": 166.0, + "median": 161.1, + "lo": 159.7, + "hi": 165.7, "peak_mib": 1.5 }, "system": { - "median": 71.73, - "lo": 71.55, - "hi": 72.11, + "median": 72.27, + "lo": 71.58, + "hi": 72.81, "peak_mib": 1.3 } } @@ -421,33 +421,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 309.6, - "lo": 308.4, - "hi": 322.0, + "median": 367.8, + "lo": 367.0, + "hi": 394.8, "peak_mib": 1.8 }, "jemalloc": { - "median": 54.93, - "lo": 53.74, - "hi": 55.04, + "median": 54.91, + "lo": 54.16, + "hi": 55.83, "peak_mib": 1.7 }, "mimalloc": { - "median": 86.9, - "lo": 86.58, - "hi": 88.78, + "median": 88.65, + "lo": 87.3, + "hi": 90.66, "peak_mib": 1.7 }, "snmalloc": { - "median": 157.1, - "lo": 154.0, - "hi": 160.3, + "median": 165.8, + "lo": 163.6, + "hi": 169.8, "peak_mib": 1.5 }, "system": { - "median": 60.95, - "lo": 60.13, - "hi": 61.33, + "median": 60.85, + "lo": 57.18, + "hi": 61.21, "peak_mib": 1.3 } } @@ -456,33 +456,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 308.7, - "lo": 308.3, - "hi": 311.8, + "median": 366.9, + "lo": 366.2, + "hi": 398.7, "peak_mib": 1.8 }, "jemalloc": { - "median": 54.73, - "lo": 54.05, - "hi": 55.12, + "median": 55.42, + "lo": 54.96, + "hi": 56.02, "peak_mib": 1.7 }, "mimalloc": { - "median": 87.54, - "lo": 86.88, - "hi": 89.9, + "median": 89.08, + "lo": 87.54, + "hi": 90.87, "peak_mib": 1.7 }, "snmalloc": { - "median": 158.1, - "lo": 151.5, - "hi": 160.8, + "median": 166.2, + "lo": 162.1, + "hi": 169.5, "peak_mib": 1.5 }, "system": { - "median": 61.16, - "lo": 60.17, - "hi": 61.37, + "median": 61.2, + "lo": 60.9, + "hi": 61.56, "peak_mib": 1.3 } } @@ -500,33 +500,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 308.5, - "lo": 307.3, - "hi": 332.1, + "median": 372.8, + "lo": 367.0, + "hi": 403.8, "peak_mib": 1.8 }, "jemalloc": { - "median": 11.32, - "lo": 11.14, - "hi": 11.34, + "median": 11.41, + "lo": 11.36, + "hi": 11.45, "peak_mib": 1.7 }, "mimalloc": { - "median": 88.15, - "lo": 86.72, - "hi": 90.89, + "median": 88.83, + "lo": 86.49, + "hi": 90.63, "peak_mib": 1.7 }, "snmalloc": { - "median": 162.5, - "lo": 157.4, - "hi": 168.6, + "median": 162.8, + "lo": 160.8, + "hi": 165.5, "peak_mib": 1.5 }, "system": { - "median": 14.6, - "lo": 14.41, - "hi": 14.75, + "median": 14.41, + "lo": 14.22, + "hi": 14.72, "peak_mib": 1.4 } } @@ -535,33 +535,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 309.1, - "lo": 307.9, - "hi": 333.4, + "median": 381.0, + "lo": 366.8, + "hi": 403.4, "peak_mib": 1.8 }, "jemalloc": { - "median": 11.42, - "lo": 11.21, - "hi": 11.46, + "median": 11.52, + "lo": 11.48, + "hi": 11.59, "peak_mib": 1.7 }, "mimalloc": { - "median": 87.9, - "lo": 87.09, - "hi": 90.6, + "median": 87.63, + "lo": 87.18, + "hi": 90.94, "peak_mib": 1.7 }, "snmalloc": { - "median": 161.7, - "lo": 157.5, + "median": 162.6, + "lo": 158.1, "hi": 169.3, "peak_mib": 1.5 }, "system": { - "median": 14.51, - "lo": 14.4, - "hi": 14.72, + "median": 14.36, + "lo": 14.17, + "hi": 14.61, "peak_mib": 1.4 } } @@ -579,33 +579,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 210.1, - "lo": 208.8, - "hi": 210.5, + "median": 234.6, + "lo": 227.8, + "hi": 237.4, "peak_mib": 1.8 }, "jemalloc": { - "median": 7.545, - "lo": 7.516, - "hi": 7.579, + "median": 7.558, + "lo": 7.461, + "hi": 7.603, "peak_mib": 1.7 }, "mimalloc": { - "median": 88.6, - "lo": 87.34, - "hi": 90.32, + "median": 88.55, + "lo": 86.51, + "hi": 91.23, "peak_mib": 1.7 }, "snmalloc": { - "median": 38.89, - "lo": 38.34, - "hi": 39.12, + "median": 39.34, + "lo": 39.05, + "hi": 39.82, "peak_mib": 1.5 }, "system": { - "median": 14.28, - "lo": 14.25, - "hi": 14.51, + "median": 14.21, + "lo": 14.06, + "hi": 14.74, "peak_mib": 1.4 } } @@ -614,32 +614,32 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 211.5, - "lo": 209.5, - "hi": 211.8, + "median": 236.7, + "lo": 225.1, + "hi": 237.7, "peak_mib": 1.8 }, "jemalloc": { "median": 7.755, - "lo": 7.427, - "hi": 7.785, + "lo": 7.492, + "hi": 7.806, "peak_mib": 1.7 }, "mimalloc": { - "median": 88.62, - "lo": 87.22, - "hi": 90.81, + "median": 89.27, + "lo": 87.07, + "hi": 91.85, "peak_mib": 1.7 }, "snmalloc": { - "median": 38.93, - "lo": 38.41, - "hi": 39.67, + "median": 39.53, + "lo": 39.18, + "hi": 39.91, "peak_mib": 1.5 }, "system": { - "median": 14.28, - "lo": 14.24, + "median": 14.11, + "lo": 14.07, "hi": 14.45, "peak_mib": 1.4 } @@ -658,33 +658,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 209.7, - "lo": 209.1, - "hi": 210.3, + "median": 235.7, + "lo": 227.3, + "hi": 237.5, "peak_mib": 1.8 }, "jemalloc": { - "median": 7.714, - "lo": 7.66, - "hi": 7.773, + "median": 7.81, + "lo": 7.736, + "hi": 7.855, "peak_mib": 1.7 }, "mimalloc": { - "median": 4.053, - "lo": 4.032, - "hi": 4.071, + "median": 4.022, + "lo": 3.984, + "hi": 4.06, "peak_mib": 1.7 }, "snmalloc": { - "median": 19.59, - "lo": 19.36, - "hi": 19.66, + "median": 19.74, + "lo": 19.22, + "hi": 19.79, "peak_mib": 1.5 }, "system": { - "median": 14.28, - "lo": 14.07, - "hi": 14.5, + "median": 14.07, + "lo": 14.03, + "hi": 14.77, "peak_mib": 1.4 } } @@ -693,33 +693,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 212.6, - "lo": 211.2, - "hi": 212.7, + "median": 237.7, + "lo": 235.6, + "hi": 242.3, "peak_mib": 1.8 }, "jemalloc": { - "median": 7.768, - "lo": 7.688, - "hi": 7.792, + "median": 7.839, + "lo": 7.793, + "hi": 7.854, "peak_mib": 1.7 }, "mimalloc": { - "median": 4.061, - "lo": 4.034, - "hi": 4.076, + "median": 4.042, + "lo": 3.97, + "hi": 4.087, "peak_mib": 1.7 }, "snmalloc": { - "median": 19.42, - "lo": 19.37, - "hi": 19.61, + "median": 19.62, + "lo": 19.31, + "hi": 19.73, "peak_mib": 1.5 }, "system": { - "median": 14.23, - "lo": 14.1, - "hi": 14.5, + "median": 14.28, + "lo": 13.99, + "hi": 14.75, "peak_mib": 1.4 } } @@ -737,33 +737,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 242.3, - "lo": 218.8, - "hi": 252.6, - "peak_mib": 49.1 + "median": 253.9, + "lo": 251.2, + "hi": 258.5, + "peak_mib": 49.0 }, "jemalloc": { - "median": 62.67, - "lo": 62.3, - "hi": 63.58, + "median": 64.37, + "lo": 64.19, + "hi": 65.33, "peak_mib": 48.4 }, "mimalloc": { - "median": 152.9, - "lo": 150.6, - "hi": 153.8, + "median": 156.9, + "lo": 154.8, + "hi": 160.8, "peak_mib": 47.6 }, "snmalloc": { - "median": 188.1, - "lo": 187.2, - "hi": 192.4, + "median": 199.1, + "lo": 195.6, + "hi": 200.5, "peak_mib": 49.4 }, "system": { - "median": 82.11, - "lo": 80.74, - "hi": 84.28, + "median": 85.63, + "lo": 83.66, + "hi": 87.27, "peak_mib": 62.1 } } @@ -772,33 +772,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 306.4, - "lo": 303.3, - "hi": 311.3, - "peak_mib": 49.1 + "median": 311.7, + "lo": 308.4, + "hi": 312.3, + "peak_mib": 49.0 }, "jemalloc": { - "median": 66.24, - "lo": 65.94, - "hi": 66.38, + "median": 67.05, + "lo": 66.46, + "hi": 67.46, "peak_mib": 48.4 }, "mimalloc": { - "median": 172.4, - "lo": 172.2, - "hi": 173.0, + "median": 173.8, + "lo": 173.6, + "hi": 175.3, "peak_mib": 47.6 }, "snmalloc": { - "median": 211.8, - "lo": 210.0, - "hi": 214.9, + "median": 218.7, + "lo": 217.0, + "hi": 219.3, "peak_mib": 49.4 }, "system": { - "median": 86.54, - "lo": 84.97, - "hi": 98.51, + "median": 98.29, + "lo": 90.43, + "hi": 99.64, "peak_mib": 62.1 } } @@ -817,32 +817,32 @@ "results": { "bcmalloc": { "median": 173.8, - "lo": 172.2, - "hi": 176.2, - "peak_mib": 48.0 + "lo": 172.8, + "hi": 175.5, + "peak_mib": 48.3 }, "jemalloc": { - "median": 57.96, - "lo": 57.48, - "hi": 58.73, + "median": 58.65, + "lo": 58.05, + "hi": 59.33, "peak_mib": 48.4 }, "mimalloc": { - "median": 150.6, - "lo": 148.3, - "hi": 152.5, + "median": 164.4, + "lo": 158.5, + "hi": 165.4, "peak_mib": 47.6 }, "snmalloc": { - "median": 147.2, - "lo": 144.0, - "hi": 150.1, - "peak_mib": 49.45 + "median": 158.7, + "lo": 155.0, + "hi": 160.7, + "peak_mib": 49.4 }, "system": { - "median": 39.8, - "lo": 38.97, - "hi": 40.8, + "median": 47.46, + "lo": 46.82, + "hi": 48.49, "peak_mib": 62.1 } } @@ -851,33 +851,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 191.4, - "lo": 188.7, - "hi": 197.4, - "peak_mib": 48.0 + "median": 190.4, + "lo": 189.8, + "hi": 194.3, + "peak_mib": 48.3 }, "jemalloc": { - "median": 60.26, - "lo": 59.92, - "hi": 60.87, + "median": 61.15, + "lo": 60.75, + "hi": 62.12, "peak_mib": 48.4 }, "mimalloc": { - "median": 169.7, - "lo": 166.0, - "hi": 171.6, + "median": 182.6, + "lo": 177.3, + "hi": 183.6, "peak_mib": 47.6 }, "snmalloc": { - "median": 160.8, - "lo": 158.8, - "hi": 167.0, - "peak_mib": 49.45 + "median": 171.1, + "lo": 165.8, + "hi": 174.4, + "peak_mib": 49.4 }, "system": { - "median": 39.91, - "lo": 39.11, - "hi": 41.93, + "median": 49.52, + "lo": 47.3, + "hi": 49.95, "peak_mib": 62.1 } } @@ -895,33 +895,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 55.31, - "lo": 54.89, - "hi": 57.52, - "peak_mib": 268.6 + "median": 58.45, + "lo": 56.87, + "hi": 61.03, + "peak_mib": 268.5 }, "jemalloc": { - "median": 25.54, - "lo": 25.4, - "hi": 26.12, + "median": 26.89, + "lo": 26.59, + "hi": 27.21, "peak_mib": 272.2 }, "mimalloc": { - "median": 43.82, - "lo": 43.22, - "hi": 45.1, - "peak_mib": 269.5 + "median": 47.89, + "lo": 45.89, + "hi": 48.44, + "peak_mib": 269.4 }, "snmalloc": { - "median": 25.25, - "lo": 24.73, - "hi": 26.07, + "median": 28.4, + "lo": 27.81, + "hi": 28.76, "peak_mib": 267.8 }, "system": { - "median": 10.5, - "lo": 10.33, - "hi": 10.69, + "median": 11.25, + "lo": 11.03, + "hi": 11.32, "peak_mib": 285.8 } } @@ -930,33 +930,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 101.6, - "lo": 100.3, - "hi": 102.9, - "peak_mib": 268.6 + "median": 99.61, + "lo": 98.6, + "hi": 99.87, + "peak_mib": 268.5 }, "jemalloc": { - "median": 35.53, - "lo": 35.21, - "hi": 36.23, + "median": 37.34, + "lo": 37.22, + "hi": 37.76, "peak_mib": 272.2 }, "mimalloc": { - "median": 63.05, - "lo": 62.61, - "hi": 63.63, - "peak_mib": 269.5 + "median": 66.72, + "lo": 65.46, + "hi": 67.63, + "peak_mib": 269.4 }, "snmalloc": { - "median": 29.08, - "lo": 28.54, - "hi": 30.08, + "median": 32.87, + "lo": 29.64, + "hi": 33.18, "peak_mib": 267.8 }, "system": { - "median": 10.77, - "lo": 10.59, - "hi": 11.47, + "median": 11.78, + "lo": 11.54, + "hi": 11.91, "peak_mib": 285.8 } } @@ -974,33 +974,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 230.7, - "lo": 229.7, - "hi": 231.0, + "median": 234.3, + "lo": 233.4, + "hi": 234.9, "peak_mib": 2.2 }, "jemalloc": { "median": 122.5, - "lo": 121.6, - "hi": 122.9, + "lo": 122.0, + "hi": 124.5, "peak_mib": 2.1 }, "mimalloc": { - "median": 98.09, - "lo": 97.77, - "hi": 98.31, + "median": 98.05, + "lo": 97.86, + "hi": 98.52, "peak_mib": 2.2 }, "snmalloc": { - "median": 213.7, - "lo": 213.5, - "hi": 214.8, + "median": 213.8, + "lo": 211.2, + "hi": 215.6, "peak_mib": 1.9 }, "system": { - "median": 48.12, - "lo": 47.81, - "hi": 48.22, + "median": 48.22, + "lo": 47.76, + "hi": 48.48, "peak_mib": 1.9 } } @@ -1009,33 +1009,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 231.8, - "lo": 230.7, - "hi": 232.3, + "median": 234.5, + "lo": 233.6, + "hi": 234.8, "peak_mib": 2.2 }, "jemalloc": { - "median": 122.8, - "lo": 122.3, - "hi": 124.8, + "median": 123.8, + "lo": 123.3, + "hi": 124.5, "peak_mib": 2.1 }, "mimalloc": { - "median": 98.06, - "lo": 97.94, - "hi": 98.65, + "median": 97.92, + "lo": 96.42, + "hi": 98.58, "peak_mib": 2.2 }, "snmalloc": { - "median": 214.4, - "lo": 213.9, - "hi": 215.0, + "median": 214.6, + "lo": 212.7, + "hi": 215.6, "peak_mib": 1.9 }, "system": { - "median": 48.38, - "lo": 48.24, - "hi": 48.46, + "median": 48.44, + "lo": 48.11, + "hi": 48.83, "peak_mib": 1.9 } } @@ -1053,33 +1053,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 228.0, - "lo": 227.2, - "hi": 228.5, - "peak_mib": 5.4 + "median": 231.8, + "lo": 230.1, + "hi": 232.9, + "peak_mib": 5.5 }, "jemalloc": { - "median": 109.7, - "lo": 109.6, - "hi": 111.7, + "median": 110.6, + "lo": 110.2, + "hi": 112.8, "peak_mib": 5.0 }, "mimalloc": { - "median": 58.57, - "lo": 58.35, - "hi": 58.73, + "median": 58.62, + "lo": 58.4, + "hi": 58.77, "peak_mib": 5.3 }, "snmalloc": { - "median": 118.8, - "lo": 117.6, - "hi": 119.4, - "peak_mib": 5.4 + "median": 118.6, + "lo": 118.5, + "hi": 119.6, + "peak_mib": 5.35 }, "system": { - "median": 25.86, - "lo": 25.8, - "hi": 25.95, + "median": 25.91, + "lo": 25.78, + "hi": 25.99, "peak_mib": 4.6 } } @@ -1088,33 +1088,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 229.2, - "lo": 228.2, - "hi": 229.8, - "peak_mib": 5.4 + "median": 233.2, + "lo": 232.1, + "hi": 233.6, + "peak_mib": 5.5 }, "jemalloc": { - "median": 110.2, + "median": 110.8, "lo": 109.9, - "hi": 112.2, + "hi": 112.1, "peak_mib": 5.0 }, "mimalloc": { - "median": 58.55, - "lo": 58.44, - "hi": 58.72, + "median": 58.72, + "lo": 58.63, + "hi": 58.77, "peak_mib": 5.3 }, "snmalloc": { - "median": 118.6, - "lo": 117.7, - "hi": 119.8, - "peak_mib": 5.4 + "median": 119.9, + "lo": 118.8, + "hi": 120.7, + "peak_mib": 5.35 }, "system": { "median": 25.94, - "lo": 25.82, - "hi": 26.04, + "lo": 25.9, + "hi": 26.11, "peak_mib": 4.6 } } @@ -1132,33 +1132,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 226.9, - "lo": 226.2, - "hi": 227.8, + "median": 229.3, + "lo": 228.3, + "hi": 230.1, "peak_mib": 4.7 }, "jemalloc": { - "median": 113.2, - "lo": 112.9, - "hi": 115.8, + "median": 113.9, + "lo": 113.5, + "hi": 115.5, "peak_mib": 4.5 }, "mimalloc": { - "median": 82.88, - "lo": 82.38, - "hi": 82.99, + "median": 83.5, + "lo": 83.15, + "hi": 84.08, "peak_mib": 4.5 }, "snmalloc": { - "median": 127.4, - "lo": 126.1, - "hi": 128.8, + "median": 128.8, + "lo": 127.2, + "hi": 129.6, "peak_mib": 4.4 }, "system": { - "median": 35.32, - "lo": 35.17, - "hi": 35.38, + "median": 35.57, + "lo": 35.41, + "hi": 35.68, "peak_mib": 4.2 } } @@ -1167,33 +1167,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 227.9, - "lo": 227.3, - "hi": 229.0, + "median": 229.9, + "lo": 229.7, + "hi": 230.8, "peak_mib": 4.7 }, "jemalloc": { - "median": 113.0, - "lo": 112.8, - "hi": 114.2, + "median": 114.2, + "lo": 114.1, + "hi": 116.0, "peak_mib": 4.5 }, "mimalloc": { - "median": 83.2, - "lo": 83.01, - "hi": 83.38, + "median": 83.76, + "lo": 83.17, + "hi": 84.0, "peak_mib": 4.5 }, "snmalloc": { - "median": 127.8, - "lo": 127.2, - "hi": 128.7, + "median": 128.4, + "lo": 127.7, + "hi": 129.7, "peak_mib": 4.4 }, "system": { - "median": 35.49, - "lo": 35.41, - "hi": 35.57, + "median": 35.67, + "lo": 35.55, + "hi": 35.92, "peak_mib": 4.2 } } @@ -1211,33 +1211,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 184.2, - "lo": 183.4, - "hi": 184.8, - "peak_mib": 5.1 + "median": 186.5, + "lo": 185.6, + "hi": 187.4, + "peak_mib": 5.2 }, "jemalloc": { - "median": 127.5, - "lo": 127.2, - "hi": 127.9, + "median": 128.8, + "lo": 128.5, + "hi": 129.6, "peak_mib": 4.8 }, "mimalloc": { - "median": 153.1, - "lo": 152.8, - "hi": 153.9, + "median": 154.1, + "lo": 153.6, + "hi": 155.1, "peak_mib": 4.0 }, "snmalloc": { - "median": 173.3, - "lo": 173.0, - "hi": 174.1, + "median": 174.8, + "lo": 174.3, + "hi": 175.1, "peak_mib": 4.2 }, "system": { - "median": 48.07, - "lo": 47.87, - "hi": 48.21, + "median": 48.32, + "lo": 48.12, + "hi": 48.73, "peak_mib": 4.2 } } @@ -1246,33 +1246,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 185.3, - "lo": 184.6, - "hi": 186.2, - "peak_mib": 5.1 + "median": 187.3, + "lo": 186.6, + "hi": 187.9, + "peak_mib": 5.2 }, "jemalloc": { - "median": 127.6, - "lo": 127.0, - "hi": 128.1, + "median": 128.8, + "lo": 128.6, + "hi": 130.4, "peak_mib": 4.8 }, "mimalloc": { - "median": 155.2, - "lo": 154.3, - "hi": 155.7, + "median": 154.4, + "lo": 153.7, + "hi": 155.1, "peak_mib": 4.0 }, "snmalloc": { - "median": 174.0, - "lo": 173.3, - "hi": 174.5, + "median": 175.3, + "lo": 174.8, + "hi": 175.5, "peak_mib": 4.2 }, "system": { - "median": 48.93, - "lo": 48.72, - "hi": 49.14, + "median": 49.08, + "lo": 48.85, + "hi": 49.46, "peak_mib": 4.2 } } @@ -1290,34 +1290,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 876.9, - "lo": 875.5, - "hi": 878.9, + "median": 883.9, + "lo": 882.6, + "hi": 886.8, "peak_mib": 14.2 }, "jemalloc": { - "median": 441.9, - "lo": 440.1, - "hi": 443.6, + "median": 444.0, + "lo": 443.7, + "hi": 445.8, "peak_mib": 13.4 }, "mimalloc": { - "median": 294.4, - "lo": 286.2, - "hi": 306.1, - "peak_mib": 14.2 + "median": 320.4, + "lo": 307.7, + "hi": 320.8, + "peak_mib": 14.1 }, "snmalloc": { - "median": 434.4, - "lo": 428.5, - "hi": 443.4, + "median": 427.2, + "lo": 426.2, + "hi": 429.6, "peak_mib": 13.4 }, "system": { - "median": 37.29, - "lo": 35.93, - "hi": 37.53, - "peak_mib": 19.65 + "median": 39.43, + "lo": 37.5, + "hi": 39.72, + "peak_mib": 18.6 } } }, @@ -1325,34 +1325,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 885.3, - "lo": 883.1, - "hi": 886.2, + "median": 894.0, + "lo": 893.4, + "hi": 894.7, "peak_mib": 14.2 }, "jemalloc": { - "median": 442.5, - "lo": 442.1, - "hi": 443.1, + "median": 444.7, + "lo": 443.9, + "hi": 445.1, "peak_mib": 13.4 }, "mimalloc": { - "median": 289.0, - "lo": 282.9, - "hi": 298.5, - "peak_mib": 14.2 + "median": 307.7, + "lo": 291.6, + "hi": 316.8, + "peak_mib": 14.1 }, "snmalloc": { - "median": 436.7, - "lo": 434.7, - "hi": 442.4, + "median": 427.5, + "lo": 426.0, + "hi": 429.4, "peak_mib": 13.4 }, "system": { - "median": 38.15, - "lo": 36.7, - "hi": 42.33, - "peak_mib": 19.65 + "median": 39.7, + "lo": 38.95, + "hi": 40.36, + "peak_mib": 18.6 } } } @@ -1369,34 +1369,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1703.0, - "lo": 1699.0, - "hi": 1709.0, - "peak_mib": 26.6 + "median": 1719.0, + "lo": 1715.0, + "hi": 1722.0, + "peak_mib": 26.7 }, "jemalloc": { - "median": 863.8, - "lo": 860.8, - "hi": 865.2, + "median": 866.0, + "lo": 863.2, + "hi": 869.1, "peak_mib": 25.2 }, "mimalloc": { - "median": 436.8, - "lo": 430.6, - "hi": 440.5, - "peak_mib": 45.75 + "median": 434.1, + "lo": 424.4, + "hi": 441.8, + "peak_mib": 43.95 }, "snmalloc": { - "median": 809.0, - "lo": 805.7, - "hi": 812.4, + "median": 800.5, + "lo": 798.2, + "hi": 810.4, "peak_mib": 25.2 }, "system": { - "median": 64.93, - "lo": 64.71, - "hi": 67.93, - "peak_mib": 27.6 + "median": 66.24, + "lo": 65.31, + "hi": 68.02, + "peak_mib": 27.25 } } }, @@ -1404,34 +1404,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1730.0, - "lo": 1719.0, - "hi": 1753.0, - "peak_mib": 26.6 + "median": 1766.0, + "lo": 1688.0, + "hi": 1770.0, + "peak_mib": 26.7 }, "jemalloc": { - "median": 865.3, - "lo": 861.7, - "hi": 867.0, + "median": 865.8, + "lo": 860.5, + "hi": 868.2, "peak_mib": 25.2 }, "mimalloc": { - "median": 422.5, - "lo": 420.5, - "hi": 428.9, - "peak_mib": 45.75 + "median": 429.9, + "lo": 423.4, + "hi": 433.5, + "peak_mib": 43.95 }, "snmalloc": { - "median": 810.1, - "lo": 808.7, - "hi": 816.1, + "median": 798.2, + "lo": 790.3, + "hi": 806.2, "peak_mib": 25.2 }, "system": { - "median": 65.96, - "lo": 65.56, - "hi": 68.63, - "peak_mib": 27.6 + "median": 68.02, + "lo": 66.55, + "hi": 69.11, + "peak_mib": 27.25 } } } @@ -1448,34 +1448,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1900.0, - "lo": 1820.0, - "hi": 1952.0, - "peak_mib": 51.5 + "median": 2127.0, + "lo": 2049.0, + "hi": 2284.0, + "peak_mib": 51.2 }, "jemalloc": { - "median": 1048.0, - "lo": 1010.0, - "hi": 1085.0, + "median": 1162.0, + "lo": 1136.0, + "hi": 1172.0, "peak_mib": 48.6 }, "mimalloc": { - "median": 614.1, - "lo": 604.8, - "hi": 629.1, - "peak_mib": 78.15 + "median": 642.1, + "lo": 627.4, + "hi": 653.4, + "peak_mib": 79.25 }, "snmalloc": { - "median": 1007.0, - "lo": 988.8, - "hi": 1023.0, - "peak_mib": 48.3 + "median": 1059.0, + "lo": 1054.0, + "hi": 1078.0, + "peak_mib": 48.35 }, "system": { - "median": 90.28, - "lo": 88.79, - "hi": 91.32, - "peak_mib": 216.7 + "median": 91.79, + "lo": 90.85, + "hi": 92.26, + "peak_mib": 191.4 } } }, @@ -1483,34 +1483,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1952.0, - "lo": 1905.0, - "hi": 2047.0, - "peak_mib": 51.5 + "median": 2259.0, + "lo": 2072.0, + "hi": 2382.0, + "peak_mib": 51.2 }, "jemalloc": { - "median": 1071.0, - "lo": 1045.0, - "hi": 1088.0, + "median": 1163.0, + "lo": 1127.0, + "hi": 1174.0, "peak_mib": 48.6 }, "mimalloc": { - "median": 595.5, - "lo": 588.7, - "hi": 607.0, - "peak_mib": 78.15 + "median": 609.4, + "lo": 595.4, + "hi": 613.8, + "peak_mib": 79.25 }, "snmalloc": { - "median": 1033.0, - "lo": 1017.0, - "hi": 1050.0, - "peak_mib": 48.3 + "median": 1070.0, + "lo": 1049.0, + "hi": 1093.0, + "peak_mib": 48.35 }, "system": { - "median": 93.18, - "lo": 90.92, - "hi": 95.55, - "peak_mib": 216.7 + "median": 93.5, + "lo": 92.54, + "hi": 97.17, + "peak_mib": 191.4 } } } @@ -1527,34 +1527,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1404.0, - "lo": 1388.0, - "hi": 1410.0, - "peak_mib": 30.7 + "median": 1419.0, + "lo": 1416.0, + "hi": 1420.0, + "peak_mib": 31.3 }, "jemalloc": { - "median": 966.8, - "lo": 959.7, - "hi": 971.7, - "peak_mib": 25.35 + "median": 976.8, + "lo": 974.1, + "hi": 980.1, + "peak_mib": 25.3 }, "mimalloc": { - "median": 842.3, - "lo": 821.4, - "hi": 865.6, - "peak_mib": 35.1 + "median": 848.8, + "lo": 833.0, + "hi": 868.4, + "peak_mib": 34.65 }, "snmalloc": { - "median": 1254.0, - "lo": 1249.0, - "hi": 1293.0, - "peak_mib": 29.05 + "median": 1311.0, + "lo": 1288.0, + "hi": 1317.0, + "peak_mib": 29.3 }, "system": { - "median": 165.5, - "lo": 164.5, - "hi": 167.1, - "peak_mib": 18.55 + "median": 164.3, + "lo": 161.3, + "hi": 166.8, + "peak_mib": 18.7 } } }, @@ -1562,34 +1562,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1373.0, - "lo": 1361.0, - "hi": 1408.0, - "peak_mib": 30.7 + "median": 1419.0, + "lo": 1367.0, + "hi": 1429.0, + "peak_mib": 31.3 }, "jemalloc": { - "median": 950.1, - "lo": 946.8, - "hi": 964.5, - "peak_mib": 25.35 + "median": 975.2, + "lo": 972.6, + "hi": 979.6, + "peak_mib": 25.3 }, "mimalloc": { - "median": 848.5, - "lo": 811.4, - "hi": 895.0, - "peak_mib": 35.1 + "median": 866.5, + "lo": 843.4, + "hi": 889.4, + "peak_mib": 34.65 }, "snmalloc": { - "median": 1239.0, - "lo": 1230.0, - "hi": 1259.0, - "peak_mib": 29.05 + "median": 1312.0, + "lo": 1276.0, + "hi": 1316.0, + "peak_mib": 29.3 }, "system": { - "median": 170.0, - "lo": 167.5, + "median": 168.8, + "lo": 164.6, "hi": 171.3, - "peak_mib": 18.55 + "peak_mib": 18.7 } } } @@ -1606,34 +1606,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1938.0, - "lo": 1890.0, - "hi": 2143.0, - "peak_mib": 183.0 + "median": 2282.0, + "lo": 2207.0, + "hi": 2419.0, + "peak_mib": 201.6 }, "jemalloc": { - "median": 1127.0, - "lo": 1061.0, - "hi": 1152.0, - "peak_mib": 166.8 + "median": 1217.0, + "lo": 1147.0, + "hi": 1240.0, + "peak_mib": 166.7 }, "mimalloc": { - "median": 786.0, - "lo": 760.6, - "hi": 821.7, - "peak_mib": 259.3 + "median": 836.0, + "lo": 823.9, + "hi": 869.2, + "peak_mib": 256.9 }, "snmalloc": { - "median": 1043.0, - "lo": 1026.0, - "hi": 1060.0, - "peak_mib": 168.3 + "median": 1110.0, + "lo": 1099.0, + "hi": 1117.0, + "peak_mib": 168.4 }, "system": { - "median": 93.7, - "lo": 91.47, - "hi": 114.6, - "peak_mib": 977.7 + "median": 90.47, + "lo": 88.57, + "hi": 93.99, + "peak_mib": 1148.0 } } }, @@ -1641,34 +1641,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 2015.0, - "lo": 1962.0, - "hi": 2155.0, - "peak_mib": 183.0 + "median": 2308.0, + "lo": 2264.0, + "hi": 2502.0, + "peak_mib": 201.6 }, "jemalloc": { - "median": 1104.0, - "lo": 1053.0, - "hi": 1121.0, - "peak_mib": 166.8 + "median": 1213.0, + "lo": 1147.0, + "hi": 1225.0, + "peak_mib": 166.7 }, "mimalloc": { - "median": 750.4, - "lo": 733.9, - "hi": 763.4, - "peak_mib": 259.3 + "median": 804.0, + "lo": 796.5, + "hi": 809.5, + "peak_mib": 256.9 }, "snmalloc": { - "median": 1073.0, - "lo": 1063.0, - "hi": 1098.0, - "peak_mib": 168.3 + "median": 1134.0, + "lo": 1123.0, + "hi": 1145.0, + "peak_mib": 168.4 }, "system": { - "median": 120.5, - "lo": 110.7, - "hi": 184.5, - "peak_mib": 977.7 + "median": 124.3, + "lo": 104.1, + "hi": 177.8, + "peak_mib": 1148.0 } } } @@ -1685,33 +1685,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 35.78, - "lo": 35.0, - "hi": 36.04, + "median": 41.73, + "lo": 40.64, + "hi": 42.51, "peak_mib": 2111.0 }, "jemalloc": { - "median": 20.53, - "lo": 20.15, - "hi": 20.89, + "median": 22.75, + "lo": 22.47, + "hi": 23.14, "peak_mib": 2142.0 }, "mimalloc": { - "median": 8.908, - "lo": 8.808, - "hi": 9.051, - "peak_mib": 2561.0 + "median": 10.47, + "lo": 10.37, + "hi": 10.5, + "peak_mib": 2560.0 }, "snmalloc": { - "median": 20.03, - "lo": 19.69, - "hi": 20.23, + "median": 22.2, + "lo": 22.1, + "hi": 22.6, "peak_mib": 2167.0 }, "system": { - "median": 5.739, - "lo": 5.715, - "hi": 5.825, + "median": 6.632, + "lo": 6.47, + "hi": 7.23, "peak_mib": 3663.0 } } @@ -1720,33 +1720,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 53.79, - "lo": 52.19, - "hi": 54.29, + "median": 67.27, + "lo": 63.54, + "hi": 67.71, "peak_mib": 2111.0 }, "jemalloc": { - "median": 27.5, - "lo": 26.5, - "hi": 27.82, + "median": 31.53, + "lo": 30.81, + "hi": 32.06, "peak_mib": 2142.0 }, "mimalloc": { - "median": 10.0, - "lo": 9.919, - "hi": 10.16, - "peak_mib": 2561.0 + "median": 11.61, + "lo": 11.55, + "hi": 11.63, + "peak_mib": 2560.0 }, "snmalloc": { - "median": 22.26, - "lo": 21.87, - "hi": 22.49, + "median": 25.3, + "lo": 25.0, + "hi": 25.45, "peak_mib": 2167.0 }, "system": { - "median": 6.14, - "lo": 6.114, - "hi": 6.191, + "median": 7.275, + "lo": 7.171, + "hi": 7.61, "peak_mib": 3663.0 } } @@ -1764,33 +1764,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 3.414, - "lo": 3.412, - "hi": 3.417, + "median": 3.423, + "lo": 3.421, + "hi": 3.431, "peak_mib": 4.8 }, "jemalloc": { - "median": 3.354, - "lo": 3.353, - "hi": 3.358, + "median": 3.371, + "lo": 3.366, + "hi": 3.38, "peak_mib": 4.4 }, "mimalloc": { - "median": 3.376, - "lo": 3.369, - "hi": 3.378, + "median": 3.395, + "lo": 3.384, + "hi": 3.4, "peak_mib": 4.5 }, "snmalloc": { - "median": 3.404, - "lo": 3.402, - "hi": 3.406, + "median": 3.416, + "lo": 3.412, + "hi": 3.424, "peak_mib": 4.4 }, "system": { - "median": 3.148, - "lo": 3.141, - "hi": 3.149, + "median": 3.16, + "lo": 3.156, + "hi": 3.164, "peak_mib": 4.1 } } @@ -1799,33 +1799,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 3.415, - "lo": 3.412, - "hi": 3.418, + "median": 3.431, + "lo": 3.422, + "hi": 3.435, "peak_mib": 4.8 }, "jemalloc": { - "median": 3.357, - "lo": 3.355, - "hi": 3.36, + "median": 3.368, + "lo": 3.367, + "hi": 3.374, "peak_mib": 4.4 }, "mimalloc": { - "median": 3.379, - "lo": 3.373, - "hi": 3.383, + "median": 3.39, + "lo": 3.385, + "hi": 3.427, "peak_mib": 4.5 }, "snmalloc": { - "median": 3.405, - "lo": 3.403, - "hi": 3.407, + "median": 3.426, + "lo": 3.415, + "hi": 3.433, "peak_mib": 4.4 }, "system": { - "median": 3.151, - "lo": 3.144, - "hi": 3.154, + "median": 3.165, + "lo": 3.159, + "hi": 3.173, "peak_mib": 4.1 } } @@ -1843,34 +1843,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1543.0, - "lo": 1524.0, - "hi": 1551.0, + "median": 1553.0, + "lo": 1535.0, + "hi": 1562.0, "peak_mib": 16.9 }, "jemalloc": { - "median": 867.1, - "lo": 862.8, - "hi": 868.6, - "peak_mib": 12.3 + "median": 869.7, + "lo": 860.9, + "hi": 873.4, + "peak_mib": 12.4 }, "mimalloc": { - "median": 663.3, - "lo": 654.8, - "hi": 677.0, + "median": 657.3, + "lo": 653.2, + "hi": 664.4, "peak_mib": 15.8 }, "snmalloc": { - "median": 727.2, - "lo": 720.1, - "hi": 730.3, - "peak_mib": 17.85 + "median": 727.1, + "lo": 722.8, + "hi": 728.3, + "peak_mib": 18.0 }, "system": { - "median": 35.6, - "lo": 35.43, - "hi": 36.36, - "peak_mib": 12.05 + "median": 35.54, + "lo": 35.14, + "hi": 35.73, + "peak_mib": 11.05 } } }, @@ -1878,34 +1878,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1630.0, - "lo": 1617.0, - "hi": 1645.0, + "median": 1643.0, + "lo": 1620.0, + "hi": 1649.0, "peak_mib": 16.9 }, "jemalloc": { - "median": 882.0, - "lo": 881.0, - "hi": 884.3, - "peak_mib": 12.3 + "median": 884.8, + "lo": 866.7, + "hi": 886.6, + "peak_mib": 12.4 }, "mimalloc": { - "median": 671.1, - "lo": 660.7, - "hi": 677.3, + "median": 668.9, + "lo": 662.8, + "hi": 681.8, "peak_mib": 15.8 }, "snmalloc": { - "median": 730.3, - "lo": 728.0, - "hi": 734.6, - "peak_mib": 17.85 + "median": 730.5, + "lo": 727.4, + "hi": 733.0, + "peak_mib": 18.0 }, "system": { - "median": 36.33, - "lo": 35.66, - "hi": 36.63, - "peak_mib": 12.05 + "median": 35.43, + "lo": 35.07, + "hi": 35.88, + "peak_mib": 11.05 } } } @@ -1922,34 +1922,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 530.2, - "lo": 512.5, - "hi": 534.8, - "peak_mib": 7.45 + "median": 472.8, + "lo": 460.9, + "hi": 475.7, + "peak_mib": 7.4 }, "jemalloc": { - "median": 439.5, - "lo": 435.1, - "hi": 440.7, - "peak_mib": 7.15 + "median": 439.8, + "lo": 433.0, + "hi": 441.2, + "peak_mib": 7.4 }, "mimalloc": { - "median": 102.8, - "lo": 89.9, - "hi": 107.1, - "peak_mib": 5.35 + "median": 108.3, + "lo": 95.66, + "hi": 112.1, + "peak_mib": 5.25 }, "snmalloc": { - "median": 171.4, - "lo": 166.8, - "hi": 175.0, + "median": 177.2, + "lo": 173.7, + "hi": 178.1, "peak_mib": 4.2 }, "system": { - "median": 99.98, - "lo": 92.37, - "hi": 105.5, - "peak_mib": 3.7 + "median": 97.48, + "lo": 92.69, + "hi": 104.0, + "peak_mib": 3.6 } } }, @@ -1957,34 +1957,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 526.5, - "lo": 513.6, - "hi": 536.1, - "peak_mib": 7.45 + "median": 479.2, + "lo": 472.6, + "hi": 483.0, + "peak_mib": 7.4 }, "jemalloc": { - "median": 435.0, - "lo": 429.1, - "hi": 444.0, - "peak_mib": 7.15 + "median": 443.6, + "lo": 441.0, + "hi": 446.2, + "peak_mib": 7.4 }, "mimalloc": { - "median": 103.2, - "lo": 93.58, - "hi": 110.0, - "peak_mib": 5.35 + "median": 111.9, + "lo": 107.8, + "hi": 113.4, + "peak_mib": 5.25 }, "snmalloc": { - "median": 172.2, - "lo": 167.9, - "hi": 176.3, + "median": 177.1, + "lo": 173.3, + "hi": 177.6, "peak_mib": 4.2 }, "system": { - "median": 111.1, - "lo": 97.59, - "hi": 112.2, - "peak_mib": 3.7 + "median": 112.2, + "lo": 110.0, + "hi": 114.7, + "peak_mib": 3.6 } } } @@ -2001,34 +2001,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 546.0, - "lo": 543.3, - "hi": 550.2, - "peak_mib": 14.75 + "median": 546.4, + "lo": 533.1, + "hi": 556.9, + "peak_mib": 14.85 }, "jemalloc": { - "median": 543.9, - "lo": 540.0, - "hi": 546.5, - "peak_mib": 17.6 + "median": 547.9, + "lo": 545.0, + "hi": 555.3, + "peak_mib": 17.8 }, "mimalloc": { - "median": 78.66, - "lo": 77.79, - "hi": 80.45, - "peak_mib": 9.4 + "median": 80.2, + "lo": 76.39, + "hi": 81.98, + "peak_mib": 9.3 }, "snmalloc": { - "median": 175.5, - "lo": 173.6, - "hi": 178.2, + "median": 178.1, + "lo": 175.3, + "hi": 179.5, "peak_mib": 7.0 }, "system": { - "median": 110.1, - "lo": 108.2, - "hi": 111.7, - "peak_mib": 7.05 + "median": 109.8, + "lo": 109.1, + "hi": 111.9, + "peak_mib": 6.85 } } }, @@ -2036,34 +2036,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 556.5, - "lo": 553.6, - "hi": 566.6, - "peak_mib": 14.75 + "median": 547.4, + "lo": 535.6, + "hi": 557.4, + "peak_mib": 14.85 }, "jemalloc": { - "median": 559.4, - "lo": 553.5, - "hi": 563.0, - "peak_mib": 17.6 + "median": 566.5, + "lo": 558.0, + "hi": 571.7, + "peak_mib": 17.8 }, "mimalloc": { - "median": 82.22, - "lo": 79.66, - "hi": 83.38, - "peak_mib": 9.4 + "median": 80.62, + "lo": 78.68, + "hi": 84.12, + "peak_mib": 9.3 }, "snmalloc": { - "median": 174.0, - "lo": 171.6, - "hi": 175.6, + "median": 179.3, + "lo": 176.2, + "hi": 180.8, "peak_mib": 7.0 }, "system": { - "median": 111.4, - "lo": 110.5, - "hi": 113.1, - "peak_mib": 7.05 + "median": 110.1, + "lo": 109.2, + "hi": 112.6, + "peak_mib": 6.85 } } } @@ -2080,34 +2080,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 75.84, - "lo": 75.48, - "hi": 76.53, - "peak_mib": 3.1 + "median": 60.28, + "lo": 59.83, + "hi": 60.83, + "peak_mib": 3.0 }, "jemalloc": { - "median": 51.37, - "lo": 51.2, - "hi": 51.51, - "peak_mib": 3.65 + "median": 51.3, + "lo": 51.11, + "hi": 51.68, + "peak_mib": 3.95 }, "mimalloc": { - "median": 25.91, - "lo": 25.68, - "hi": 25.99, + "median": 25.82, + "lo": 25.76, + "hi": 26.15, "peak_mib": 2.3 }, "snmalloc": { - "median": 51.33, - "lo": 50.68, - "hi": 51.56, - "peak_mib": 2.45 + "median": 50.88, + "lo": 43.68, + "hi": 51.69, + "peak_mib": 2.4 }, "system": { - "median": 29.0, - "lo": 28.81, - "hi": 29.12, - "peak_mib": 2.05 + "median": 28.74, + "lo": 28.56, + "hi": 29.02, + "peak_mib": 2.0 } } }, @@ -2115,34 +2115,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 76.21, - "lo": 75.37, - "hi": 77.27, - "peak_mib": 3.1 + "median": 60.33, + "lo": 59.78, + "hi": 60.98, + "peak_mib": 3.0 }, "jemalloc": { - "median": 53.4, - "lo": 53.16, - "hi": 54.03, - "peak_mib": 3.65 + "median": 54.13, + "lo": 53.56, + "hi": 54.74, + "peak_mib": 3.95 }, "mimalloc": { - "median": 25.58, + "median": 25.6, "lo": 25.5, - "hi": 25.8, + "hi": 25.66, "peak_mib": 2.3 }, "snmalloc": { - "median": 46.8, - "lo": 43.77, - "hi": 51.39, - "peak_mib": 2.45 + "median": 43.07, + "lo": 41.38, + "hi": 50.76, + "peak_mib": 2.4 }, "system": { "median": 28.9, - "lo": 28.59, - "hi": 29.14, - "peak_mib": 2.05 + "lo": 28.62, + "hi": 29.12, + "peak_mib": 2.0 } } } @@ -2159,34 +2159,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 121.8, - "lo": 111.8, - "hi": 124.8, + "median": 113.8, + "lo": 109.5, + "hi": 117.2, "peak_mib": 6.6 }, "jemalloc": { - "median": 135.2, - "lo": 132.1, - "hi": 138.5, - "peak_mib": 9.5 + "median": 134.1, + "lo": 132.8, + "hi": 134.8, + "peak_mib": 9.35 }, "mimalloc": { - "median": 56.14, - "lo": 54.38, - "hi": 60.31, + "median": 55.76, + "lo": 53.73, + "hi": 59.76, "peak_mib": 4.3 }, "snmalloc": { - "median": 112.9, - "lo": 111.3, - "hi": 117.3, - "peak_mib": 4.4 + "median": 117.6, + "lo": 113.8, + "hi": 119.5, + "peak_mib": 4.5 }, "system": { - "median": 45.02, - "lo": 44.34, - "hi": 46.0, - "peak_mib": 3.5 + "median": 45.44, + "lo": 44.95, + "hi": 46.59, + "peak_mib": 3.6 } } }, @@ -2194,34 +2194,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 123.1, - "lo": 115.6, - "hi": 125.8, + "median": 113.7, + "lo": 111.7, + "hi": 118.9, "peak_mib": 6.6 }, "jemalloc": { "median": 131.3, - "lo": 130.3, - "hi": 133.0, - "peak_mib": 9.5 + "lo": 130.1, + "hi": 132.1, + "peak_mib": 9.35 }, "mimalloc": { - "median": 56.9, - "lo": 53.8, - "hi": 61.07, + "median": 59.61, + "lo": 57.22, + "hi": 64.09, "peak_mib": 4.3 }, "snmalloc": { - "median": 114.3, - "lo": 111.4, - "hi": 116.3, - "peak_mib": 4.4 + "median": 119.9, + "lo": 116.7, + "hi": 122.8, + "peak_mib": 4.5 }, "system": { - "median": 45.24, - "lo": 44.81, - "hi": 47.9, - "peak_mib": 3.5 + "median": 46.95, + "lo": 44.89, + "hi": 49.74, + "peak_mib": 3.6 } } } @@ -2238,34 +2238,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 94.25, - "lo": 93.12, - "hi": 96.62, - "peak_mib": 50.7 + "median": 97.38, + "lo": 95.45, + "hi": 98.14, + "peak_mib": 51.7 }, "jemalloc": { - "median": 92.76, - "lo": 90.01, - "hi": 93.59, - "peak_mib": 44.2 + "median": 93.04, + "lo": 92.36, + "hi": 94.29, + "peak_mib": 45.7 }, "mimalloc": { - "median": 38.92, - "lo": 38.76, - "hi": 39.24, - "peak_mib": 26.45 + "median": 39.33, + "lo": 38.97, + "hi": 39.69, + "peak_mib": 26.4 }, "snmalloc": { - "median": 35.13, - "lo": 34.84, - "hi": 35.92, - "peak_mib": 43.85 + "median": 35.74, + "lo": 35.19, + "hi": 36.56, + "peak_mib": 45.45 }, "system": { - "median": 16.86, - "lo": 14.95, - "hi": 17.83, - "peak_mib": 28.9 + "median": 19.76, + "lo": 17.33, + "hi": 20.65, + "peak_mib": 29.0 } } }, @@ -2273,34 +2273,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 94.6, - "lo": 93.51, - "hi": 95.87, - "peak_mib": 50.7 + "median": 96.99, + "lo": 95.37, + "hi": 99.73, + "peak_mib": 51.7 }, "jemalloc": { - "median": 88.6, - "lo": 82.23, - "hi": 90.96, - "peak_mib": 44.2 + "median": 82.96, + "lo": 73.31, + "hi": 94.74, + "peak_mib": 45.7 }, "mimalloc": { - "median": 39.11, - "lo": 38.94, - "hi": 39.34, - "peak_mib": 26.45 + "median": 39.61, + "lo": 39.4, + "hi": 40.15, + "peak_mib": 26.4 }, "snmalloc": { - "median": 35.72, - "lo": 35.22, - "hi": 36.17, - "peak_mib": 43.85 + "median": 36.23, + "lo": 35.68, + "hi": 36.97, + "peak_mib": 45.45 }, "system": { - "median": 22.22, - "lo": 21.44, - "hi": 23.25, - "peak_mib": 28.9 + "median": 22.83, + "lo": 21.98, + "hi": 23.57, + "peak_mib": 29.0 } } } @@ -2317,33 +2317,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 184.7, - "lo": 183.0, - "hi": 191.2, + "median": 187.5, + "lo": 183.2, + "hi": 188.3, "peak_mib": 9.9 }, "jemalloc": { - "median": 43.79, - "lo": 41.55, - "hi": 46.43, + "median": 44.31, + "lo": 42.16, + "hi": 46.55, "peak_mib": 6.2 }, "mimalloc": { - "median": 102.1, - "lo": 101.2, - "hi": 102.3, - "peak_mib": 6.8 + "median": 102.4, + "lo": 99.34, + "hi": 102.9, + "peak_mib": 6.7 }, "snmalloc": { - "median": 181.9, - "lo": 174.1, - "hi": 188.0, + "median": 182.8, + "lo": 174.2, + "hi": 187.9, "peak_mib": 5.0 }, "system": { - "median": 36.17, - "lo": 35.42, - "hi": 36.34, + "median": 35.61, + "lo": 34.83, + "hi": 37.39, "peak_mib": 2.8 } } @@ -2352,33 +2352,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 196.7, - "lo": 193.8, + "median": 196.5, + "lo": 194.5, "hi": 197.9, "peak_mib": 9.9 }, "jemalloc": { - "median": 44.1, - "lo": 41.65, - "hi": 46.66, + "median": 44.73, + "lo": 42.75, + "hi": 46.61, "peak_mib": 6.2 }, "mimalloc": { - "median": 102.3, - "lo": 101.6, - "hi": 102.8, - "peak_mib": 6.8 + "median": 102.7, + "lo": 98.85, + "hi": 103.3, + "peak_mib": 6.7 }, "snmalloc": { - "median": 190.0, - "lo": 186.4, - "hi": 190.9, + "median": 190.3, + "lo": 186.9, + "hi": 192.0, "peak_mib": 5.0 }, "system": { - "median": 36.39, - "lo": 35.99, - "hi": 37.55, + "median": 37.29, + "lo": 36.21, + "hi": 38.53, "peak_mib": 2.8 } } @@ -2396,33 +2396,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 31050.0, + "median": 31060.0, "lo": 31040.0, - "hi": 31090.0, + "hi": 31100.0, "peak_mib": 2.7 }, "jemalloc": { - "median": 13100.0, - "lo": 12860.0, - "hi": 14190.0, + "median": 12630.0, + "lo": 12180.0, + "hi": 13590.0, "peak_mib": 3.2 }, "mimalloc": { - "median": 30940.0, - "lo": 30870.0, - "hi": 30970.0, - "peak_mib": 2.3 + "median": 30930.0, + "lo": 30610.0, + "hi": 30990.0, + "peak_mib": 2.25 }, "snmalloc": { - "median": 31020.0, - "lo": 30990.0, - "hi": 31030.0, - "peak_mib": 2.1 + "median": 30970.0, + "lo": 30960.0, + "hi": 31000.0, + "peak_mib": 2.0 }, "system": { - "median": 27750.0, - "lo": 27180.0, - "hi": 28560.0, + "median": 27890.0, + "lo": 27130.0, + "hi": 28320.0, "peak_mib": 1.7 } } @@ -2431,33 +2431,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 31070.0, - "lo": 30990.0, + "median": 31060.0, + "lo": 30860.0, "hi": 31090.0, "peak_mib": 2.7 }, "jemalloc": { - "median": 14320.0, - "lo": 14070.0, - "hi": 22710.0, + "median": 13390.0, + "lo": 12880.0, + "hi": 15790.0, "peak_mib": 3.2 }, "mimalloc": { - "median": 30940.0, - "lo": 30760.0, - "hi": 30970.0, - "peak_mib": 2.3 + "median": 30820.0, + "lo": 30550.0, + "hi": 30930.0, + "peak_mib": 2.25 }, "snmalloc": { - "median": 31000.0, - "lo": 30950.0, - "hi": 31030.0, - "peak_mib": 2.1 + "median": 30960.0, + "lo": 30740.0, + "hi": 31020.0, + "peak_mib": 2.0 }, "system": { - "median": 26420.0, - "lo": 26140.0, - "hi": 27020.0, + "median": 26740.0, + "lo": 26250.0, + "hi": 27050.0, "peak_mib": 1.7 } } @@ -2475,33 +2475,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 31050.0, - "lo": 31040.0, - "hi": 31090.0, + "median": 31040.0, + "lo": 30850.0, + "hi": 31070.0, "peak_mib": 2.6 }, "jemalloc": { - "median": 30900.0, - "lo": 30860.0, - "hi": 30930.0, - "peak_mib": 3.25 + "median": 30890.0, + "lo": 30870.0, + "hi": 30920.0, + "peak_mib": 3.3 }, "mimalloc": { "median": 30950.0, - "lo": 30940.0, - "hi": 30980.0, + "lo": 30760.0, + "hi": 30970.0, "peak_mib": 2.2 }, "snmalloc": { - "median": 30990.0, - "lo": 30980.0, - "hi": 31020.0, + "median": 31020.0, + "lo": 30790.0, + "hi": 31050.0, "peak_mib": 2.0 }, "system": { - "median": 27910.0, - "lo": 27330.0, - "hi": 28950.0, + "median": 28290.0, + "lo": 27510.0, + "hi": 28680.0, "peak_mib": 1.7 } } @@ -2510,33 +2510,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 31060.0, - "lo": 31040.0, - "hi": 31090.0, + "median": 31040.0, + "lo": 30880.0, + "hi": 31070.0, "peak_mib": 2.6 }, "jemalloc": { - "median": 30930.0, - "lo": 30860.0, - "hi": 30960.0, - "peak_mib": 3.25 + "median": 30890.0, + "lo": 30750.0, + "hi": 30920.0, + "peak_mib": 3.3 }, "mimalloc": { - "median": 30910.0, - "lo": 30840.0, - "hi": 30950.0, + "median": 30920.0, + "lo": 30570.0, + "hi": 30960.0, "peak_mib": 2.2 }, "snmalloc": { "median": 30990.0, - "lo": 30970.0, + "lo": 30860.0, "hi": 31010.0, "peak_mib": 2.0 }, "system": { - "median": 27210.0, - "lo": 26730.0, - "hi": 27850.0, + "median": 26560.0, + "lo": 25980.0, + "hi": 26770.0, "peak_mib": 1.7 } } @@ -2554,34 +2554,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 13.91, - "lo": 13.88, - "hi": 13.96, - "peak_mib": 153.6 + "median": 14.87, + "lo": 14.77, + "hi": 15.08, + "peak_mib": 153.3 }, "jemalloc": { - "median": 12.66, - "lo": 12.44, - "hi": 12.69, + "median": 13.67, + "lo": 13.49, + "hi": 13.67, "peak_mib": 161.0 }, "mimalloc": { - "median": 11.23, - "lo": 11.12, - "hi": 11.26, + "median": 12.19, + "lo": 12.1, + "hi": 12.26, "peak_mib": 162.7 }, "snmalloc": { - "median": 13.56, - "lo": 13.46, - "hi": 13.65, + "median": 14.59, + "lo": 14.12, + "hi": 14.74, "peak_mib": 185.8 }, "system": { - "median": 7.398, - "lo": 7.381, - "hi": 7.422, - "peak_mib": 199.1 + "median": 8.185, + "lo": 8.068, + "hi": 8.229, + "peak_mib": 199.2 } } }, @@ -2589,34 +2589,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 14.71, - "lo": 14.61, - "hi": 14.77, - "peak_mib": 153.6 + "median": 15.79, + "lo": 15.45, + "hi": 15.89, + "peak_mib": 153.3 }, "jemalloc": { - "median": 12.96, - "lo": 12.75, - "hi": 13.01, + "median": 13.92, + "lo": 13.61, + "hi": 14.01, "peak_mib": 161.0 }, "mimalloc": { - "median": 11.66, - "lo": 11.61, - "hi": 11.7, + "median": 12.75, + "lo": 12.63, + "hi": 12.8, "peak_mib": 162.7 }, "snmalloc": { - "median": 13.73, - "lo": 13.69, - "hi": 13.77, + "median": 14.87, + "lo": 14.85, + "hi": 15.01, "peak_mib": 185.8 }, "system": { - "median": 7.555, - "lo": 7.479, - "hi": 7.615, - "peak_mib": 199.1 + "median": 8.368, + "lo": 8.313, + "hi": 8.414, + "peak_mib": 199.2 } } } @@ -2633,34 +2633,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 6.674, - "lo": 6.575, - "hi": 6.701, - "peak_mib": 35.5 + "median": 6.9, + "lo": 6.851, + "hi": 6.918, + "peak_mib": 35.6 }, "jemalloc": { - "median": 6.133, - "lo": 6.083, - "hi": 6.172, - "peak_mib": 36.65 + "median": 6.345, + "lo": 6.331, + "hi": 6.358, + "peak_mib": 36.6 }, "mimalloc": { - "median": 5.557, - "lo": 5.517, - "hi": 5.612, + "median": 5.973, + "lo": 5.827, + "hi": 5.987, "peak_mib": 37.6 }, "snmalloc": { - "median": 6.238, - "lo": 6.172, - "hi": 6.262, + "median": 6.552, + "lo": 6.4, + "hi": 6.561, "peak_mib": 37.9 }, "system": { - "median": 5.114, - "lo": 5.078, - "hi": 5.178, - "peak_mib": 35.0 + "median": 5.539, + "lo": 5.356, + "hi": 5.599, + "peak_mib": 37.85 } } }, @@ -2668,34 +2668,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 6.715, - "lo": 6.687, - "hi": 6.771, - "peak_mib": 35.5 + "median": 7.018, + "lo": 6.975, + "hi": 7.034, + "peak_mib": 35.6 }, "jemalloc": { - "median": 6.243, - "lo": 6.2, - "hi": 6.276, - "peak_mib": 36.65 + "median": 6.51, + "lo": 6.486, + "hi": 6.524, + "peak_mib": 36.6 }, "mimalloc": { - "median": 5.674, - "lo": 5.655, - "hi": 5.723, + "median": 6.063, + "lo": 5.999, + "hi": 6.105, "peak_mib": 37.6 }, "snmalloc": { - "median": 6.325, - "lo": 6.286, - "hi": 6.393, + "median": 6.574, + "lo": 6.366, + "hi": 6.621, "peak_mib": 37.9 }, "system": { - "median": 5.116, - "lo": 5.066, - "hi": 5.184, - "peak_mib": 35.0 + "median": 5.642, + "lo": 5.63, + "hi": 5.656, + "peak_mib": 37.85 } } } @@ -2712,33 +2712,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 8.752, - "lo": 8.725, - "hi": 8.799, - "peak_mib": 14.5 + "median": 8.782, + "lo": 8.744, + "hi": 8.812, + "peak_mib": 14.8 }, "jemalloc": { - "median": 7.604, - "lo": 7.569, - "hi": 7.626, - "peak_mib": 15.9 + "median": 7.65, + "lo": 7.605, + "hi": 7.681, + "peak_mib": 16.0 }, "mimalloc": { - "median": 8.761, - "lo": 8.753, - "hi": 8.781, + "median": 8.797, + "lo": 8.738, + "hi": 8.823, "peak_mib": 15.7 }, "snmalloc": { - "median": 8.9, - "lo": 8.861, - "hi": 8.941, + "median": 8.952, + "lo": 8.865, + "hi": 8.978, "peak_mib": 18.0 }, "system": { - "median": 7.553, - "lo": 7.53, - "hi": 7.583, + "median": 7.586, + "lo": 7.54, + "hi": 7.61, "peak_mib": 15.4 } } @@ -2747,33 +2747,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 8.787, - "lo": 8.73, - "hi": 8.817, - "peak_mib": 14.5 + "median": 8.808, + "lo": 8.774, + "hi": 8.834, + "peak_mib": 14.8 }, "jemalloc": { - "median": 7.607, - "lo": 7.6, - "hi": 7.631, - "peak_mib": 15.9 + "median": 7.671, + "lo": 7.652, + "hi": 7.704, + "peak_mib": 16.0 }, "mimalloc": { - "median": 8.766, - "lo": 8.755, - "hi": 8.782, + "median": 8.819, + "lo": 8.77, + "hi": 8.845, "peak_mib": 15.7 }, "snmalloc": { - "median": 8.894, - "lo": 8.879, - "hi": 8.923, + "median": 8.987, + "lo": 8.932, + "hi": 9.019, "peak_mib": 18.0 }, "system": { - "median": 7.56, - "lo": 7.54, - "hi": 7.592, + "median": 7.577, + "lo": 7.517, + "hi": 7.6, "peak_mib": 15.4 } } @@ -2791,33 +2791,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 212.0, - "lo": 205.0, - "hi": 213.1, + "median": 177.0, + "lo": 150.3, + "hi": 208.1, "peak_mib": 25.6 }, "jemalloc": { - "median": 65.61, - "lo": 65.29, - "hi": 66.11, + "median": 65.91, + "lo": 65.54, + "hi": 66.13, "peak_mib": 33.0 }, "mimalloc": { - "median": 143.8, - "lo": 143.6, - "hi": 144.3, + "median": 145.9, + "lo": 145.6, + "hi": 146.5, "peak_mib": 32.3 }, "snmalloc": { - "median": 178.5, - "lo": 176.9, - "hi": 180.1, - "peak_mib": 33.5 + "median": 185.1, + "lo": 183.2, + "hi": 186.1, + "peak_mib": 33.4 }, "system": { - "median": 89.8, - "lo": 89.54, - "hi": 90.11, + "median": 90.48, + "lo": 89.56, + "hi": 90.97, "peak_mib": 32.0 } } @@ -2826,33 +2826,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 223.0, - "lo": 214.3, - "hi": 223.6, + "median": 182.9, + "lo": 153.6, + "hi": 215.5, "peak_mib": 25.6 }, "jemalloc": { - "median": 66.87, - "lo": 66.47, - "hi": 67.3, + "median": 66.39, + "lo": 66.03, + "hi": 67.05, "peak_mib": 33.0 }, "mimalloc": { - "median": 148.3, - "lo": 147.9, - "hi": 148.5, + "median": 149.8, + "lo": 149.5, + "hi": 149.9, "peak_mib": 32.3 }, "snmalloc": { - "median": 187.0, - "lo": 184.2, - "hi": 189.0, - "peak_mib": 33.5 + "median": 192.5, + "lo": 190.1, + "hi": 193.7, + "peak_mib": 33.4 }, "system": { - "median": 92.29, - "lo": 92.12, - "hi": 92.55, + "median": 92.86, + "lo": 91.77, + "hi": 93.15, "peak_mib": 32.0 } } @@ -2870,33 +2870,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 171.8, - "lo": 171.2, - "hi": 172.2, - "peak_mib": 4.0 + "median": 196.1, + "lo": 195.1, + "hi": 197.1, + "peak_mib": 4.5 }, "jemalloc": { - "median": 55.85, - "lo": 55.58, - "hi": 56.02, + "median": 56.03, + "lo": 55.6, + "hi": 56.46, "peak_mib": 3.8 }, "mimalloc": { - "median": 117.7, - "lo": 115.2, - "hi": 118.7, + "median": 119.3, + "lo": 119.0, + "hi": 119.8, "peak_mib": 3.7 }, "snmalloc": { - "median": 153.9, - "lo": 151.7, - "hi": 155.7, + "median": 154.8, + "lo": 153.9, + "hi": 156.0, "peak_mib": 4.4 }, "system": { - "median": 74.3, - "lo": 73.78, - "hi": 74.52, + "median": 74.32, + "lo": 69.96, + "hi": 75.04, "peak_mib": 3.4 } } @@ -2905,33 +2905,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 174.6, - "lo": 173.3, - "hi": 175.2, - "peak_mib": 4.0 + "median": 204.9, + "lo": 203.7, + "hi": 205.4, + "peak_mib": 4.5 }, "jemalloc": { - "median": 56.17, - "lo": 55.92, - "hi": 56.45, + "median": 56.22, + "lo": 55.74, + "hi": 56.91, "peak_mib": 3.8 }, "mimalloc": { - "median": 119.3, - "lo": 117.9, - "hi": 119.8, + "median": 120.2, + "lo": 119.9, + "hi": 120.6, "peak_mib": 3.7 }, "snmalloc": { - "median": 158.2, - "lo": 156.1, - "hi": 159.6, + "median": 157.6, + "lo": 156.0, + "hi": 160.1, "peak_mib": 4.4 }, "system": { - "median": 75.16, - "lo": 74.82, - "hi": 75.38, + "median": 75.26, + "lo": 70.66, + "hi": 75.41, "peak_mib": 3.4 } } @@ -2949,33 +2949,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 196.2, - "lo": 194.4, - "hi": 197.7, - "peak_mib": 4.0 + "median": 255.7, + "lo": 254.6, + "hi": 257.0, + "peak_mib": 4.5 }, "jemalloc": { - "median": 57.78, - "lo": 57.63, - "hi": 58.03, + "median": 57.39, + "lo": 56.89, + "hi": 57.89, "peak_mib": 3.8 }, "mimalloc": { - "median": 128.4, - "lo": 128.0, - "hi": 128.6, + "median": 129.4, + "lo": 129.2, + "hi": 130.4, "peak_mib": 3.8 }, "snmalloc": { - "median": 171.2, - "lo": 170.0, - "hi": 171.5, - "peak_mib": 3.5 + "median": 171.5, + "lo": 170.6, + "hi": 172.0, + "peak_mib": 3.55 }, "system": { - "median": 79.48, - "lo": 78.55, - "hi": 79.72, + "median": 79.26, + "lo": 78.63, + "hi": 79.74, "peak_mib": 3.4 } } @@ -2984,33 +2984,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 195.1, - "lo": 193.6, - "hi": 196.6, - "peak_mib": 4.0 + "median": 255.6, + "lo": 254.5, + "hi": 255.9, + "peak_mib": 4.5 }, "jemalloc": { - "median": 57.67, - "lo": 57.34, - "hi": 57.92, + "median": 57.87, + "lo": 57.43, + "hi": 58.17, "peak_mib": 3.8 }, "mimalloc": { - "median": 128.0, - "lo": 127.6, - "hi": 128.3, + "median": 129.0, + "lo": 128.4, + "hi": 129.4, "peak_mib": 3.8 }, "snmalloc": { - "median": 170.9, - "lo": 170.3, - "hi": 171.1, - "peak_mib": 3.5 + "median": 172.2, + "lo": 171.8, + "hi": 172.4, + "peak_mib": 3.55 }, "system": { - "median": 79.73, - "lo": 79.51, - "hi": 79.89, + "median": 79.34, + "lo": 78.96, + "hi": 79.67, "peak_mib": 3.4 } } @@ -3028,33 +3028,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 91.73, - "lo": 91.48, - "hi": 91.81, - "peak_mib": 4.9 + "median": 91.34, + "lo": 91.17, + "hi": 91.59, + "peak_mib": 5.3 }, "jemalloc": { - "median": 43.81, - "lo": 43.77, - "hi": 43.93, - "peak_mib": 5.8 + "median": 44.04, + "lo": 43.96, + "hi": 44.11, + "peak_mib": 5.9 }, "mimalloc": { - "median": 75.13, - "lo": 74.84, - "hi": 75.21, + "median": 75.44, + "lo": 75.21, + "hi": 75.59, "peak_mib": 5.7 }, "snmalloc": { - "median": 88.62, - "lo": 88.35, - "hi": 88.74, + "median": 88.37, + "lo": 87.7, + "hi": 88.75, "peak_mib": 7.4 }, "system": { - "median": 54.37, - "lo": 54.24, - "hi": 54.42, + "median": 54.41, + "lo": 54.25, + "hi": 54.76, "peak_mib": 5.4 } } @@ -3063,33 +3063,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 91.15, - "lo": 90.95, - "hi": 91.69, - "peak_mib": 4.9 + "median": 91.33, + "lo": 91.05, + "hi": 91.52, + "peak_mib": 5.3 }, "jemalloc": { - "median": 43.92, - "lo": 43.81, - "hi": 43.96, - "peak_mib": 5.8 + "median": 43.97, + "lo": 43.87, + "hi": 44.15, + "peak_mib": 5.9 }, "mimalloc": { - "median": 75.22, - "lo": 75.07, - "hi": 75.27, + "median": 75.13, + "lo": 75.08, + "hi": 75.52, "peak_mib": 5.7 }, "snmalloc": { - "median": 85.26, - "lo": 85.02, - "hi": 85.43, + "median": 85.76, + "lo": 85.43, + "hi": 86.2, "peak_mib": 7.4 }, "system": { - "median": 54.32, - "lo": 53.87, - "hi": 54.4, + "median": 54.11, + "lo": 53.85, + "hi": 54.71, "peak_mib": 5.4 } } @@ -3107,33 +3107,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 665.8, - "lo": 662.6, - "hi": 678.0, - "peak_mib": 12.1 + "median": 691.9, + "lo": 681.9, + "hi": 699.0, + "peak_mib": 12.0 }, "jemalloc": { - "median": 950.4, - "lo": 900.6, - "hi": 998.8, + "median": 960.3, + "lo": 938.3, + "hi": 986.6, "peak_mib": 16.8 }, "mimalloc": { - "median": 630.5, - "lo": 629.6, - "hi": 632.5, + "median": 650.3, + "lo": 642.8, + "hi": 653.6, "peak_mib": 17.5 }, "snmalloc": { - "median": 807.9, - "lo": 771.1, - "hi": 822.6, + "median": 849.5, + "lo": 799.6, + "hi": 894.1, "peak_mib": 14.6 }, "system": { - "median": 871.8, - "lo": 832.6, - "hi": 887.4, + "median": 919.9, + "lo": 874.2, + "hi": 935.5, "peak_mib": 501.5 } } @@ -3142,33 +3142,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 675.7, - "lo": 664.5, - "hi": 683.4, - "peak_mib": 12.1 + "median": 680.4, + "lo": 669.9, + "hi": 706.3, + "peak_mib": 12.0 }, "jemalloc": { - "median": 947.2, - "lo": 903.3, - "hi": 994.0, + "median": 967.1, + "lo": 946.2, + "hi": 994.5, "peak_mib": 16.8 }, "mimalloc": { - "median": 630.7, - "lo": 630.1, - "hi": 633.8, + "median": 641.7, + "lo": 636.5, + "hi": 650.0, "peak_mib": 17.5 }, "snmalloc": { - "median": 826.3, - "lo": 763.3, - "hi": 855.0, + "median": 870.0, + "lo": 782.0, + "hi": 936.0, "peak_mib": 14.6 }, "system": { - "median": 857.4, - "lo": 848.4, - "hi": 889.2, + "median": 871.9, + "lo": 845.6, + "hi": 898.2, "peak_mib": 501.5 } } @@ -3186,33 +3186,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 2964.0, - "lo": 2944.0, - "hi": 2971.0, + "median": 1942.0, + "lo": 1938.0, + "hi": 1946.0, "peak_mib": 9.9 }, "jemalloc": { - "median": 2365.0, - "lo": 2327.0, - "hi": 2487.0, + "median": 2291.0, + "lo": 2257.0, + "hi": 2333.0, "peak_mib": 8.9 }, "mimalloc": { - "median": 2988.0, - "lo": 2972.0, - "hi": 3005.0, + "median": 2998.0, + "lo": 2989.0, + "hi": 3011.0, "peak_mib": 9.7 }, "snmalloc": { - "median": 1800.0, - "lo": 1798.0, - "hi": 1806.0, + "median": 2100.0, + "lo": 2091.0, + "hi": 2123.0, "peak_mib": 8.8 }, "system": { - "median": 3057.0, - "lo": 3043.0, - "hi": 3071.0, + "median": 1962.0, + "lo": 1959.0, + "hi": 1967.0, "peak_mib": 7.4 } } @@ -3221,33 +3221,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 2984.0, - "lo": 2962.0, - "hi": 2998.0, + "median": 1937.0, + "lo": 1927.0, + "hi": 1951.0, "peak_mib": 9.9 }, "jemalloc": { - "median": 2622.0, - "lo": 2483.0, - "hi": 2821.0, + "median": 2499.0, + "lo": 2375.0, + "hi": 2842.0, "peak_mib": 8.9 }, "mimalloc": { - "median": 3012.0, - "lo": 2987.0, - "hi": 3045.0, + "median": 3031.0, + "lo": 3017.0, + "hi": 3052.0, "peak_mib": 9.7 }, "snmalloc": { - "median": 1806.0, - "lo": 1802.0, - "hi": 1818.0, + "median": 2114.0, + "lo": 2092.0, + "hi": 2127.0, "peak_mib": 8.8 }, "system": { - "median": 3092.0, - "lo": 3062.0, - "hi": 3109.0, + "median": 1965.0, + "lo": 1962.0, + "hi": 1973.0, "peak_mib": 7.4 } } @@ -3265,33 +3265,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 303.1, - "lo": 301.2, - "hi": 303.9, - "peak_mib": 19.3 + "median": 318.0, + "lo": 313.4, + "hi": 327.5, + "peak_mib": 20.1 }, "jemalloc": { - "median": 292.1, - "lo": 289.5, - "hi": 294.5, + "median": 305.4, + "lo": 302.7, + "hi": 310.6, "peak_mib": 18.6 }, "mimalloc": { - "median": 300.6, - "lo": 299.8, - "hi": 304.3, + "median": 312.6, + "lo": 308.2, + "hi": 317.6, "peak_mib": 18.0 }, "snmalloc": { - "median": 297.2, - "lo": 295.9, - "hi": 298.3, + "median": 313.3, + "lo": 309.3, + "hi": 318.0, "peak_mib": 19.3 }, "system": { - "median": 284.2, - "lo": 282.3, - "hi": 286.3, + "median": 298.4, + "lo": 294.4, + "hi": 308.2, "peak_mib": 33.5 } } @@ -3300,33 +3300,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 305.1, - "lo": 303.2, - "hi": 306.2, - "peak_mib": 19.3 + "median": 319.8, + "lo": 310.4, + "hi": 329.3, + "peak_mib": 20.1 }, "jemalloc": { - "median": 296.5, - "lo": 295.0, - "hi": 298.0, + "median": 309.9, + "lo": 307.5, + "hi": 317.2, "peak_mib": 18.6 }, "mimalloc": { - "median": 302.5, - "lo": 301.8, - "hi": 306.4, + "median": 315.0, + "lo": 312.8, + "hi": 318.4, "peak_mib": 18.0 }, "snmalloc": { - "median": 299.7, - "lo": 298.1, - "hi": 300.2, + "median": 313.4, + "lo": 312.0, + "hi": 320.3, "peak_mib": 19.3 }, "system": { - "median": 288.3, - "lo": 287.2, - "hi": 291.3, + "median": 306.9, + "lo": 300.3, + "hi": 312.2, "peak_mib": 33.5 } } @@ -3344,33 +3344,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 12.89, - "lo": 12.82, - "hi": 13.0, - "peak_mib": 20.0 + "median": 13.23, + "lo": 13.19, + "hi": 13.29, + "peak_mib": 20.1 }, "jemalloc": { - "median": 7.729, - "lo": 7.663, - "hi": 7.781, - "peak_mib": 16.2 + "median": 7.747, + "lo": 7.714, + "hi": 7.766, + "peak_mib": 16.1 }, "mimalloc": { - "median": 12.18, - "lo": 12.12, - "hi": 12.31, + "median": 12.44, + "lo": 12.35, + "hi": 12.59, "peak_mib": 16.6 }, "snmalloc": { - "median": 8.427, - "lo": 8.369, - "hi": 8.479, + "median": 8.515, + "lo": 8.477, + "hi": 8.56, "peak_mib": 13.9 }, "system": { - "median": 9.106, - "lo": 9.044, - "hi": 9.134, + "median": 9.097, + "lo": 9.087, + "hi": 9.131, "peak_mib": 15.8 } } @@ -3379,33 +3379,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 12.86, - "lo": 12.8, - "hi": 12.95, - "peak_mib": 20.0 + "median": 13.26, + "lo": 13.23, + "hi": 13.38, + "peak_mib": 20.1 }, "jemalloc": { - "median": 7.721, - "lo": 7.692, - "hi": 7.773, - "peak_mib": 16.2 + "median": 7.76, + "lo": 7.685, + "hi": 7.807, + "peak_mib": 16.1 }, "mimalloc": { - "median": 12.26, - "lo": 12.15, - "hi": 12.32, + "median": 12.46, + "lo": 12.38, + "hi": 12.5, "peak_mib": 16.6 }, "snmalloc": { - "median": 8.474, - "lo": 8.404, - "hi": 8.551, + "median": 8.501, + "lo": 8.468, + "hi": 8.592, "peak_mib": 13.9 }, "system": { - "median": 9.099, - "lo": 9.03, - "hi": 9.142, + "median": 9.109, + "lo": 9.097, + "hi": 9.137, "peak_mib": 15.8 } } @@ -3423,33 +3423,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1.946, - "lo": 1.93, - "hi": 1.993, - "peak_mib": 61.0 + "median": 2.045, + "lo": 2.03, + "hi": 2.062, + "peak_mib": 60.8 }, "jemalloc": { - "median": 1.159, - "lo": 1.146, - "hi": 1.183, + "median": 1.315, + "lo": 1.309, + "hi": 1.322, "peak_mib": 58.0 }, "mimalloc": { - "median": 1.448, - "lo": 1.438, - "hi": 1.457, + "median": 1.502, + "lo": 1.488, + "hi": 1.523, "peak_mib": 124.6 }, "snmalloc": { - "median": 0.5755, - "lo": 0.564, - "hi": 0.581, - "peak_mib": 63.4 + "median": 0.6765, + "lo": 0.67, + "hi": 0.694, + "peak_mib": 63.3 }, "system": { - "median": 1.648, - "lo": 1.626, - "hi": 1.662, + "median": 1.724, + "lo": 1.712, + "hi": 1.747, "peak_mib": 57.6 } } @@ -3458,33 +3458,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 2.014, - "lo": 1.982, - "hi": 2.052, - "peak_mib": 61.0 + "median": 2.085, + "lo": 1.976, + "hi": 2.104, + "peak_mib": 60.8 }, "jemalloc": { - "median": 1.216, - "lo": 1.196, - "hi": 1.221, + "median": 1.373, + "lo": 1.356, + "hi": 1.389, "peak_mib": 58.0 }, "mimalloc": { - "median": 1.493, - "lo": 1.486, - "hi": 1.504, + "median": 1.565, + "lo": 1.538, + "hi": 1.581, "peak_mib": 124.6 }, "snmalloc": { - "median": 0.5795, - "lo": 0.5685, - "hi": 0.587, - "peak_mib": 63.4 + "median": 0.705, + "lo": 0.685, + "hi": 0.7075, + "peak_mib": 63.3 }, "system": { - "median": 1.689, - "lo": 1.683, - "hi": 1.695, + "median": 1.763, + "lo": 1.74, + "hi": 1.777, "peak_mib": 57.6 } } @@ -3502,10 +3502,10 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 0.1615, - "lo": 0.159, - "hi": 0.169, - "peak_mib": 23.2 + "median": 0.174, + "lo": 0.1725, + "hi": 0.175, + "peak_mib": 23.1 }, "jemalloc": { "median": 0.006, @@ -3514,21 +3514,21 @@ "peak_mib": 23.1 }, "mimalloc": { - "median": 0.1935, - "lo": 0.189, - "hi": 0.196, + "median": 0.2055, + "lo": 0.2035, + "hi": 0.209, "peak_mib": 18.0 }, "snmalloc": { - "median": 0.009, - "lo": 0.0085, - "hi": 0.009, + "median": 0.012, + "lo": 0.011, + "hi": 0.012, "peak_mib": 18.8 }, "system": { - "median": 0.1625, - "lo": 0.159, - "hi": 0.166, + "median": 0.172, + "lo": 0.169, + "hi": 0.1755, "peak_mib": 22.4 } } @@ -3537,10 +3537,10 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 0.1985, - "lo": 0.1935, - "hi": 0.208, - "peak_mib": 23.2 + "median": 0.2135, + "lo": 0.21, + "hi": 0.2155, + "peak_mib": 23.1 }, "jemalloc": { "median": 0.006, @@ -3549,21 +3549,21 @@ "peak_mib": 23.1 }, "mimalloc": { - "median": 0.231, - "lo": 0.227, - "hi": 0.236, + "median": 0.2505, + "lo": 0.244, + "hi": 0.253, "peak_mib": 18.0 }, "snmalloc": { - "median": 0.009, - "lo": 0.009, - "hi": 0.01, + "median": 0.012, + "lo": 0.012, + "hi": 0.012, "peak_mib": 18.8 }, "system": { - "median": 0.1975, - "lo": 0.192, - "hi": 0.2015, + "median": 0.209, + "lo": 0.205, + "hi": 0.211, "peak_mib": 22.4 } } @@ -3581,9 +3581,9 @@ "unit": "MiB", "results": { "bcmalloc": { - "median": 7.406, - "lo": 7.406, - "hi": 7.406, + "median": 7.438, + "lo": 7.438, + "hi": 7.446, "peak_mib": 264.5 }, "jemalloc": { @@ -3599,16 +3599,16 @@ "peak_mib": 262.3 }, "snmalloc": { - "median": 5.469, + "median": 5.477, "lo": 5.469, "hi": 5.5, "peak_mib": 262.9 }, "system": { - "median": 21.78, - "lo": 21.78, - "hi": 21.78, - "peak_mib": 262.5 + "median": 21.99, + "lo": 21.99, + "hi": 22.0, + "peak_mib": 262.4 } } } @@ -3625,10 +3625,10 @@ "unit": "MiB", "results": { "bcmalloc": { - "median": 154.0, - "lo": 154.0, - "hi": 154.0, - "peak_mib": 155.8 + "median": 154.1, + "lo": 154.1, + "hi": 154.2, + "peak_mib": 155.9 }, "jemalloc": { "median": 155.9, @@ -3649,10 +3649,10 @@ "peak_mib": 155.0 }, "system": { - "median": 153.2, - "lo": 153.2, - "hi": 153.2, - "peak_mib": 154.5 + "median": 153.4, + "lo": 153.4, + "hi": 153.4, + "peak_mib": 154.7 } } } @@ -3669,16 +3669,16 @@ "unit": "MiB", "results": { "bcmalloc": { - "median": 169.2, - "lo": 169.2, - "hi": 169.3, + "median": 122.4, + "lo": 122.4, + "hi": 122.4, "peak_mib": 281.6 }, "jemalloc": { - "median": 163.2, - "lo": 162.0, - "hi": 164.7, - "peak_mib": 244.4 + "median": 163.4, + "lo": 163.1, + "hi": 163.7, + "peak_mib": 243.1 }, "mimalloc": { "median": 148.2, @@ -3693,10 +3693,10 @@ "peak_mib": 198.6 }, "system": { - "median": 132.5, - "lo": 132.3, - "hi": 134.4, - "peak_mib": 269.5 + "median": 133.3, + "lo": 132.5, + "hi": 134.7, + "peak_mib": 271.5 } } } @@ -3713,10 +3713,10 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 1.953, + "median": 1.312, "lo": 1.312, - "hi": 1.953, - "peak_mib": 10.75 + "hi": 1.312, + "peak_mib": 10.8 }, "jemalloc": { "median": 3.906, @@ -3732,9 +3732,9 @@ }, "snmalloc": { "median": 3.266, - "lo": 3.266, + "lo": 3.25, "hi": 3.266, - "peak_mib": 10.35 + "peak_mib": 10.3 }, "system": { "median": 13.02, @@ -3748,33 +3748,33 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 3.266, - "lo": 3.266, - "hi": 3.266, - "peak_mib": 10.75 + "median": 3.25, + "lo": 3.25, + "hi": 3.25, + "peak_mib": 10.8 }, "jemalloc": { "median": 7.812, - "lo": 7.812, + "lo": 7.172, "hi": 7.812, "peak_mib": 10.4 }, "mimalloc": { "median": 7.156, "lo": 7.156, - "hi": 7.813, + "hi": 7.804, "peak_mib": 10.5 }, "snmalloc": { - "median": 5.219, - "lo": 5.219, - "hi": 5.86, - "peak_mib": 10.35 + "median": 5.211, + "lo": 5.203, + "hi": 5.219, + "peak_mib": 10.3 }, "system": { - "median": 16.92, - "lo": 16.92, - "hi": 17.9, + "median": 16.28, + "lo": 16.27, + "hi": 17.26, "peak_mib": 12.4 } } @@ -3783,33 +3783,33 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 5.203, - "lo": 5.203, - "hi": 5.531, - "peak_mib": 10.75 + "median": 4.562, + "lo": 4.562, + "hi": 4.562, + "peak_mib": 10.8 }, "jemalloc": { "median": 9.766, - "lo": 9.766, - "hi": 10.74, + "lo": 9.446, + "hi": 9.766, "peak_mib": 10.4 }, "mimalloc": { - "median": 9.125, - "lo": 9.125, - "hi": 10.74, + "median": 9.109, + "lo": 8.469, + "hi": 10.41, "peak_mib": 10.5 }, "snmalloc": { - "median": 8.461, + "median": 8.453, "lo": 8.453, - "hi": 8.789, - "peak_mib": 10.35 + "hi": 8.461, + "peak_mib": 10.3 }, "system": { - "median": 19.53, - "lo": 19.53, - "hi": 26.04, + "median": 18.23, + "lo": 18.23, + "hi": 24.42, "peak_mib": 12.4 } } @@ -3839,10 +3839,10 @@ "peak_mib": 61.0 }, "mimalloc": { - "median": 7.156, + "median": 7.164, "lo": 7.156, - "hi": 7.164, - "peak_mib": 82.4 + "hi": 7.172, + "peak_mib": 82.3 }, "snmalloc": { "median": 3.906, @@ -3851,10 +3851,10 @@ "peak_mib": 74.7 }, "system": { - "median": 57.3, - "lo": 55.98, - "hi": 57.94, - "peak_mib": 87.4 + "median": 54.69, + "lo": 54.69, + "hi": 56.0, + "peak_mib": 87.25 } } }, @@ -3862,9 +3862,9 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 3.906, + "median": 3.266, "lo": 3.266, - "hi": 3.906, + "hi": 3.586, "peak_mib": 83.7 }, "jemalloc": { @@ -3874,10 +3874,10 @@ "peak_mib": 61.0 }, "mimalloc": { - "median": 15.63, - "lo": 15.3, + "median": 16.27, + "lo": 15.63, "hi": 16.27, - "peak_mib": 82.4 + "peak_mib": 82.3 }, "snmalloc": { "median": 7.172, @@ -3886,10 +3886,10 @@ "peak_mib": 74.7 }, "system": { - "median": 108.1, + "median": 105.1, "lo": 104.2, - "hi": 109.4, - "peak_mib": 87.4 + "hi": 109.7, + "peak_mib": 87.25 } } }, @@ -3897,34 +3897,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 5.219, - "lo": 5.219, - "hi": 5.219, + "median": 5.203, + "lo": 5.203, + "hi": 5.211, "peak_mib": 83.7 }, "jemalloc": { - "median": 10.41, + "median": 9.766, "lo": 9.766, - "hi": 10.41, + "hi": 10.09, "peak_mib": 61.0 }, "mimalloc": { - "median": 22.14, - "lo": 21.48, - "hi": 22.46, - "peak_mib": 82.4 + "median": 22.46, + "lo": 21.81, + "hi": 24.09, + "peak_mib": 82.3 }, "snmalloc": { - "median": 10.41, + "median": 10.42, "lo": 9.766, "hi": 10.42, "peak_mib": 74.7 }, "system": { - "median": 142.6, - "lo": 140.3, - "hi": 154.3, - "peak_mib": 87.4 + "median": 135.4, + "lo": 131.5, + "hi": 147.8, + "peak_mib": 87.25 } } } @@ -3943,32 +3943,32 @@ "bcmalloc": { "median": 1.312, "lo": 1.312, - "hi": 1.312, - "peak_mib": 54.85 + "hi": 1.953, + "peak_mib": 55.1 }, "jemalloc": { "median": 7.812, - "lo": 6.531, + "lo": 7.812, "hi": 7.812, - "peak_mib": 51.05 + "peak_mib": 51.1 }, "mimalloc": { - "median": 6.515, - "lo": 6.5, - "hi": 6.531, - "peak_mib": 43.2 + "median": 7.812, + "lo": 6.531, + "hi": 7.812, + "peak_mib": 43.3 }, "snmalloc": { "median": 6.5, - "lo": 5.219, + "lo": 6.5, "hi": 6.5, "peak_mib": 47.0 }, "system": { - "median": 29.3, - "lo": 27.34, - "hi": 31.89, - "peak_mib": 66.8 + "median": 29.94, + "lo": 28.64, + "hi": 35.16, + "peak_mib": 138.0 } } }, @@ -3976,34 +3976,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 37.75, - "lo": 36.44, - "hi": 39.7, - "peak_mib": 54.85 + "median": 90.48, + "lo": 89.84, + "hi": 93.09, + "peak_mib": 55.1 }, "jemalloc": { - "median": 43.61, - "lo": 42.97, - "hi": 44.27, - "peak_mib": 51.05 + "median": 44.28, + "lo": 44.28, + "hi": 45.56, + "peak_mib": 51.1 }, "mimalloc": { - "median": 304.7, - "lo": 291.7, - "hi": 309.9, - "peak_mib": 43.2 + "median": 326.2, + "lo": 321.6, + "hi": 332.7, + "peak_mib": 43.3 }, "snmalloc": { - "median": 204.4, - "lo": 186.2, - "hi": 218.8, + "median": 196.0, + "lo": 171.9, + "hi": 204.4, "peak_mib": 47.0 }, "system": { - "median": 118.5, - "lo": 114.6, - "hi": 141.9, - "peak_mib": 66.8 + "median": 149.7, + "lo": 128.9, + "hi": 220.1, + "peak_mib": 138.0 } } }, @@ -4011,34 +4011,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 313.2, - "lo": 311.2, - "hi": 315.8, - "peak_mib": 54.85 + "median": 379.6, + "lo": 373.0, + "hi": 382.8, + "peak_mib": 55.1 }, "jemalloc": { - "median": 74.22, - "lo": 72.92, - "hi": 77.47, - "peak_mib": 51.05 + "median": 71.59, + "lo": 70.31, + "hi": 72.94, + "peak_mib": 51.1 }, "mimalloc": { - "median": 597.0, - "lo": 578.1, - "hi": 619.8, - "peak_mib": 43.2 + "median": 583.3, + "lo": 571.6, + "hi": 591.8, + "peak_mib": 43.3 }, "snmalloc": { - "median": 946.0, - "lo": 920.6, - "hi": 993.5, + "median": 840.5, + "lo": 815.1, + "hi": 885.4, "peak_mib": 47.0 }, "system": { - "median": 369.8, - "lo": 333.3, - "hi": 475.3, - "peak_mib": 66.8 + "median": 369.1, + "lo": 302.7, + "hi": 481.8, + "peak_mib": 138.0 } } } @@ -4049,7 +4049,7 @@ { "suite": "dev", "machine": "linux", - "description": "AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 7.0.0", + "description": "AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 6.8.0", "date": "2026-11-14", "samples": 10, "baseline": "mimalloc", @@ -4072,34 +4072,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 300.8, - "lo": 286.9, - "hi": 304.4, - "peak_mib": 2.65 + "median": 342.3, + "lo": 341.1, + "hi": 342.7, + "peak_mib": 3.0 }, "jemalloc": { - "median": 251.6, - "lo": 251.4, - "hi": 251.7, - "peak_mib": 2.8 + "median": 251.7, + "lo": 251.7, + "hi": 251.8, + "peak_mib": 3.0 }, "mimalloc": { - "median": 283.4, - "lo": 282.2, - "hi": 284.0, - "peak_mib": 6.3 + "median": 280.5, + "lo": 272.2, + "hi": 285.0, + "peak_mib": 6.2 }, "snmalloc": { - "median": 342.6, - "lo": 341.9, - "hi": 342.9, - "peak_mib": 4.1 + "median": 328.2, + "lo": 314.4, + "hi": 342.7, + "peak_mib": 4.0 }, "system": { - "median": 130.5, - "lo": 130.2, - "hi": 130.6, - "peak_mib": 2.65 + "median": 130.6, + "lo": 130.6, + "hi": 130.7, + "peak_mib": 3.0 } } }, @@ -4107,34 +4107,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 298.6, - "lo": 293.0, - "hi": 301.5, - "peak_mib": 2.65 + "median": 341.5, + "lo": 341.2, + "hi": 342.3, + "peak_mib": 3.0 }, "jemalloc": { "median": 251.8, - "lo": 251.6, - "hi": 251.8, - "peak_mib": 2.8 + "lo": 251.8, + "hi": 251.9, + "peak_mib": 3.0 }, "mimalloc": { - "median": 283.7, - "lo": 282.0, - "hi": 284.4, - "peak_mib": 6.3 + "median": 266.5, + "lo": 266.5, + "hi": 266.6, + "peak_mib": 6.2 }, "snmalloc": { - "median": 342.7, - "lo": 341.9, - "hi": 343.1, - "peak_mib": 4.1 + "median": 314.7, + "lo": 314.5, + "hi": 314.8, + "peak_mib": 4.0 }, "system": { - "median": 130.0, - "lo": 125.8, - "hi": 130.6, - "peak_mib": 2.65 + "median": 130.5, + "lo": 126.3, + "hi": 130.7, + "peak_mib": 3.0 } } } @@ -4151,34 +4151,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 283.8, - "lo": 276.7, - "hi": 298.6, - "peak_mib": 2.65 + "median": 342.2, + "lo": 341.5, + "hi": 342.6, + "peak_mib": 3.0 }, "jemalloc": { - "median": 249.5, - "lo": 248.9, - "hi": 249.5, - "peak_mib": 2.8 + "median": 249.6, + "lo": 249.6, + "hi": 249.7, + "peak_mib": 3.0 }, "mimalloc": { - "median": 257.0, - "lo": 241.0, - "hi": 257.5, - "peak_mib": 6.3 + "median": 248.1, + "lo": 243.4, + "hi": 256.2, + "peak_mib": 6.2 }, "snmalloc": { - "median": 335.4, - "lo": 334.8, - "hi": 335.9, + "median": 309.1, + "lo": 309.0, + "hi": 334.7, "peak_mib": 4.0 }, "system": { "median": 130.6, - "lo": 128.6, + "lo": 130.6, "hi": 130.6, - "peak_mib": 2.65 + "peak_mib": 3.0 } } }, @@ -4186,34 +4186,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 289.3, - "lo": 278.9, - "hi": 298.5, - "peak_mib": 2.65 + "median": 342.2, + "lo": 341.3, + "hi": 342.6, + "peak_mib": 3.0 }, "jemalloc": { - "median": 249.6, - "lo": 249.5, - "hi": 249.7, - "peak_mib": 2.8 + "median": 249.8, + "lo": 249.8, + "hi": 249.8, + "peak_mib": 3.0 }, "mimalloc": { - "median": 241.1, - "lo": 240.8, - "hi": 241.3, - "peak_mib": 6.3 + "median": 226.5, + "lo": 226.4, + "hi": 226.5, + "peak_mib": 6.2 }, "snmalloc": { - "median": 335.8, - "lo": 335.2, - "hi": 336.0, + "median": 309.2, + "lo": 309.1, + "hi": 309.3, "peak_mib": 4.0 }, "system": { - "median": 130.6, - "lo": 122.2, - "hi": 130.6, - "peak_mib": 2.65 + "median": 130.1, + "lo": 126.3, + "hi": 130.7, + "peak_mib": 3.0 } } } @@ -4230,34 +4230,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 293.2, - "lo": 287.7, - "hi": 300.3, - "peak_mib": 2.65 + "median": 341.4, + "lo": 340.6, + "hi": 342.5, + "peak_mib": 3.0 }, "jemalloc": { - "median": 241.2, - "lo": 240.6, - "hi": 241.4, - "peak_mib": 2.8 + "median": 241.4, + "lo": 241.3, + "hi": 241.5, + "peak_mib": 3.0 }, "mimalloc": { - "median": 211.6, - "lo": 210.8, - "hi": 217.6, - "peak_mib": 6.3 + "median": 213.7, + "lo": 212.4, + "hi": 217.9, + "peak_mib": 6.2 }, "snmalloc": { - "median": 303.1, - "lo": 302.9, - "hi": 303.1, - "peak_mib": 3.9 + "median": 329.3, + "lo": 328.9, + "hi": 329.4, + "peak_mib": 4.0 }, "system": { "median": 130.6, - "lo": 130.5, - "hi": 130.6, - "peak_mib": 2.65 + "lo": 130.6, + "hi": 130.7, + "peak_mib": 3.0 } } }, @@ -4265,34 +4265,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 284.4, - "lo": 281.1, - "hi": 290.7, - "peak_mib": 2.65 + "median": 342.3, + "lo": 341.8, + "hi": 342.9, + "peak_mib": 3.0 }, "jemalloc": { - "median": 241.4, - "lo": 241.3, - "hi": 241.5, - "peak_mib": 2.8 + "median": 241.6, + "lo": 241.5, + "hi": 241.7, + "peak_mib": 3.0 }, "mimalloc": { - "median": 211.0, - "lo": 210.6, - "hi": 211.7, - "peak_mib": 6.3 + "median": 201.2, + "lo": 200.8, + "hi": 210.8, + "peak_mib": 6.2 }, "snmalloc": { - "median": 303.2, - "lo": 303.1, - "hi": 303.2, - "peak_mib": 3.9 + "median": 329.6, + "lo": 329.5, + "hi": 329.7, + "peak_mib": 4.0 }, "system": { - "median": 130.6, - "lo": 128.4, - "hi": 130.6, - "peak_mib": 2.65 + "median": 130.7, + "lo": 126.3, + "hi": 130.7, + "peak_mib": 3.0 } } } @@ -4309,34 +4309,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 292.8, - "lo": 280.7, - "hi": 301.1, - "peak_mib": 2.65 + "median": 342.0, + "lo": 341.3, + "hi": 342.5, + "peak_mib": 3.0 }, "jemalloc": { - "median": 216.1, - "lo": 214.8, - "hi": 216.3, - "peak_mib": 2.8 + "median": 196.8, + "lo": 127.2, + "hi": 218.7, + "peak_mib": 3.0 }, "mimalloc": { - "median": 140.5, - "lo": 135.1, - "hi": 142.3, - "peak_mib": 6.3 + "median": 141.9, + "lo": 141.4, + "hi": 142.1, + "peak_mib": 6.2 }, "snmalloc": { - "median": 279.2, - "lo": 279.1, - "hi": 294.4, - "peak_mib": 3.9 + "median": 297.0, + "lo": 295.4, + "hi": 297.2, + "peak_mib": 4.0 }, "system": { - "median": 130.6, - "lo": 130.2, - "hi": 130.6, - "peak_mib": 2.65 + "median": 126.3, + "lo": 122.2, + "hi": 126.3, + "peak_mib": 3.0 } } }, @@ -4344,34 +4344,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 291.6, - "lo": 278.2, - "hi": 299.7, - "peak_mib": 2.65 + "median": 342.5, + "lo": 341.4, + "hi": 342.9, + "peak_mib": 3.0 }, "jemalloc": { - "median": 215.1, - "lo": 214.4, - "hi": 215.5, - "peak_mib": 2.8 + "median": 185.6, + "lo": 96.88, + "hi": 218.0, + "peak_mib": 3.0 }, "mimalloc": { - "median": 140.6, - "lo": 135.1, - "hi": 142.4, - "peak_mib": 6.3 + "median": 142.1, + "lo": 141.5, + "hi": 142.2, + "peak_mib": 6.2 }, "snmalloc": { - "median": 279.2, - "lo": 279.0, - "hi": 279.3, - "peak_mib": 3.9 + "median": 297.2, + "lo": 295.1, + "hi": 297.5, + "peak_mib": 4.0 }, "system": { - "median": 130.0, - "lo": 126.3, - "hi": 130.6, - "peak_mib": 2.65 + "median": 126.3, + "lo": 122.3, + "hi": 126.3, + "peak_mib": 3.0 } } } @@ -4388,34 +4388,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 289.9, - "lo": 275.1, - "hi": 298.6, - "peak_mib": 2.65 + "median": 342.5, + "lo": 341.9, + "hi": 342.8, + "peak_mib": 3.0 }, "jemalloc": { - "median": 153.1, - "lo": 152.4, - "hi": 153.4, - "peak_mib": 2.8 + "median": 157.0, + "lo": 155.1, + "hi": 158.5, + "peak_mib": 3.0 }, "mimalloc": { - "median": 60.32, - "lo": 54.74, - "hi": 60.38, - "peak_mib": 6.3 + "median": 58.15, + "lo": 58.04, + "hi": 58.21, + "peak_mib": 6.2 }, "snmalloc": { - "median": 190.8, - "lo": 182.7, - "hi": 196.4, - "peak_mib": 3.9 + "median": 194.5, + "lo": 191.5, + "hi": 196.5, + "peak_mib": 4.0 }, "system": { - "median": 55.69, - "lo": 55.67, - "hi": 55.69, - "peak_mib": 2.65 + "median": 55.71, + "lo": 55.71, + "hi": 55.72, + "peak_mib": 3.0 } } }, @@ -4423,34 +4423,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 290.0, - "lo": 269.6, - "hi": 297.1, - "peak_mib": 2.65 + "median": 342.9, + "lo": 342.4, + "hi": 343.0, + "peak_mib": 3.0 }, "jemalloc": { - "median": 153.7, - "lo": 152.6, - "hi": 154.7, - "peak_mib": 2.8 + "median": 154.6, + "lo": 153.1, + "hi": 156.9, + "peak_mib": 3.0 }, "mimalloc": { - "median": 60.32, - "lo": 54.97, - "hi": 60.36, - "peak_mib": 6.3 + "median": 58.14, + "lo": 58.08, + "hi": 58.2, + "peak_mib": 6.2 }, "snmalloc": { - "median": 190.8, - "lo": 182.6, - "hi": 196.5, - "peak_mib": 3.9 + "median": 194.5, + "lo": 191.4, + "hi": 196.4, + "peak_mib": 4.0 }, "system": { - "median": 55.7, - "lo": 55.69, - "hi": 55.7, - "peak_mib": 2.65 + "median": 55.72, + "lo": 55.72, + "hi": 55.72, + "peak_mib": 3.0 } } } @@ -4467,34 +4467,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 185.7, - "lo": 178.8, - "hi": 192.7, - "peak_mib": 2.65 + "median": 250.6, + "lo": 249.1, + "hi": 252.1, + "peak_mib": 3.0 }, "jemalloc": { - "median": 54.28, - "lo": 53.96, - "hi": 54.36, - "peak_mib": 2.8 + "median": 54.26, + "lo": 53.57, + "hi": 54.34, + "peak_mib": 3.0 }, "mimalloc": { - "median": 55.12, - "lo": 54.62, - "hi": 55.46, - "peak_mib": 6.3 + "median": 54.35, + "lo": 54.11, + "hi": 55.21, + "peak_mib": 6.2 }, "snmalloc": { - "median": 186.1, - "lo": 181.9, - "hi": 192.5, - "peak_mib": 3.85 + "median": 194.0, + "lo": 179.1, + "hi": 195.4, + "peak_mib": 4.0 }, "system": { - "median": 54.86, - "lo": 54.8, - "hi": 54.88, - "peak_mib": 2.65 + "median": 54.88, + "lo": 54.88, + "hi": 54.89, + "peak_mib": 3.0 } } }, @@ -4502,34 +4502,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 185.0, - "lo": 179.3, - "hi": 186.8, - "peak_mib": 2.65 + "median": 252.6, + "lo": 252.6, + "hi": 252.7, + "peak_mib": 3.0 }, "jemalloc": { "median": 54.3, - "lo": 54.01, - "hi": 54.47, - "peak_mib": 2.8 + "lo": 53.9, + "hi": 54.39, + "peak_mib": 3.0 }, "mimalloc": { - "median": 55.28, - "lo": 54.8, - "hi": 55.5, - "peak_mib": 6.3 + "median": 54.28, + "lo": 53.72, + "hi": 54.99, + "peak_mib": 6.2 }, "snmalloc": { - "median": 186.8, - "lo": 182.6, - "hi": 192.6, - "peak_mib": 3.85 + "median": 194.2, + "lo": 179.2, + "hi": 196.0, + "peak_mib": 4.0 }, "system": { - "median": 54.89, - "lo": 54.86, - "hi": 54.9, - "peak_mib": 2.65 + "median": 54.91, + "lo": 54.9, + "hi": 54.92, + "peak_mib": 3.0 } } } @@ -4546,34 +4546,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 206.2, - "lo": 204.3, - "hi": 207.5, - "peak_mib": 2.65 + "median": 251.9, + "lo": 250.9, + "hi": 252.1, + "peak_mib": 3.0 }, "jemalloc": { - "median": 4.058, - "lo": 4.037, - "hi": 4.074, - "peak_mib": 2.8 + "median": 4.174, + "lo": 4.152, + "hi": 4.219, + "peak_mib": 3.0 }, "mimalloc": { - "median": 55.26, - "lo": 52.73, - "hi": 55.46, - "peak_mib": 6.3 + "median": 54.43, + "lo": 54.23, + "hi": 55.24, + "peak_mib": 6.2 }, "snmalloc": { - "median": 188.4, - "lo": 182.7, - "hi": 194.0, - "peak_mib": 3.85 + "median": 196.2, + "lo": 187.4, + "hi": 196.4, + "peak_mib": 4.0 }, "system": { - "median": 54.07, - "lo": 53.88, - "hi": 54.09, - "peak_mib": 2.65 + "median": 54.1, + "lo": 54.09, + "hi": 54.11, + "peak_mib": 3.0 } } }, @@ -4581,34 +4581,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 203.9, - "lo": 198.3, - "hi": 205.7, - "peak_mib": 2.65 + "median": 252.6, + "lo": 252.5, + "hi": 252.6, + "peak_mib": 3.0 }, "jemalloc": { - "median": 4.037, - "lo": 4.002, - "hi": 4.065, - "peak_mib": 2.8 + "median": 4.175, + "lo": 4.148, + "hi": 4.213, + "peak_mib": 3.0 }, "mimalloc": { - "median": 55.28, - "lo": 52.79, - "hi": 55.56, - "peak_mib": 6.3 + "median": 55.13, + "lo": 54.29, + "hi": 55.33, + "peak_mib": 6.2 }, "snmalloc": { - "median": 189.6, - "lo": 182.8, - "hi": 195.0, - "peak_mib": 3.85 + "median": 196.4, + "lo": 188.2, + "hi": 196.7, + "peak_mib": 4.0 }, "system": { - "median": 54.1, - "lo": 54.08, - "hi": 54.11, - "peak_mib": 2.65 + "median": 54.12, + "lo": 54.11, + "hi": 54.13, + "peak_mib": 3.0 } } } @@ -4625,34 +4625,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 134.0, - "lo": 131.2, - "hi": 137.0, - "peak_mib": 2.65 + "median": 130.5, + "lo": 128.1, + "hi": 132.5, + "peak_mib": 3.0 }, "jemalloc": { - "median": 4.072, - "lo": 4.024, - "hi": 4.085, - "peak_mib": 2.8 + "median": 4.13, + "lo": 4.063, + "hi": 4.165, + "peak_mib": 3.0 }, "mimalloc": { - "median": 55.2, - "lo": 53.87, - "hi": 55.29, - "peak_mib": 6.3 + "median": 54.36, + "lo": 53.5, + "hi": 54.57, + "peak_mib": 6.2 }, "snmalloc": { - "median": 20.27, - "lo": 20.22, - "hi": 20.35, - "peak_mib": 3.95 + "median": 20.22, + "lo": 20.17, + "hi": 20.25, + "peak_mib": 4.0 }, "system": { - "median": 57.26, - "lo": 57.23, - "hi": 57.3, - "peak_mib": 2.65 + "median": 57.27, + "lo": 57.25, + "hi": 57.28, + "peak_mib": 3.0 } } }, @@ -4660,34 +4660,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 130.5, - "lo": 130.3, - "hi": 131.1, - "peak_mib": 2.65 + "median": 139.1, + "lo": 132.7, + "hi": 139.6, + "peak_mib": 3.0 }, "jemalloc": { - "median": 4.076, - "lo": 4.033, - "hi": 4.096, - "peak_mib": 2.8 + "median": 4.153, + "lo": 4.063, + "hi": 4.195, + "peak_mib": 3.0 }, "mimalloc": { - "median": 55.27, - "lo": 53.86, - "hi": 55.44, - "peak_mib": 6.3 + "median": 54.26, + "lo": 53.47, + "hi": 55.29, + "peak_mib": 6.2 }, "snmalloc": { - "median": 20.27, - "lo": 20.22, - "hi": 20.38, - "peak_mib": 3.95 + "median": 20.23, + "lo": 20.14, + "hi": 20.27, + "peak_mib": 4.0 }, "system": { - "median": 57.37, - "lo": 57.34, - "hi": 57.38, - "peak_mib": 2.65 + "median": 57.41, + "lo": 57.37, + "hi": 57.41, + "peak_mib": 3.0 } } } @@ -4704,34 +4704,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 132.9, - "lo": 130.3, - "hi": 134.9, - "peak_mib": 2.65 + "median": 130.0, + "lo": 128.8, + "hi": 132.9, + "peak_mib": 3.0 }, "jemalloc": { - "median": 4.051, - "lo": 4.022, - "hi": 4.088, - "peak_mib": 2.8 + "median": 4.201, + "lo": 4.177, + "hi": 4.22, + "peak_mib": 3.0 }, "mimalloc": { - "median": 4.463, - "lo": 4.436, - "hi": 4.487, - "peak_mib": 6.3 + "median": 4.419, + "lo": 4.377, + "hi": 4.444, + "peak_mib": 6.2 }, "snmalloc": { - "median": 9.288, - "lo": 9.192, - "hi": 9.31, - "peak_mib": 3.85 + "median": 9.301, + "lo": 9.286, + "hi": 9.322, + "peak_mib": 4.0 }, "system": { - "median": 56.71, - "lo": 56.39, - "hi": 56.86, - "peak_mib": 2.65 + "median": 56.78, + "lo": 56.68, + "hi": 56.84, + "peak_mib": 3.0 } } }, @@ -4739,34 +4739,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 130.7, - "lo": 130.1, - "hi": 134.8, - "peak_mib": 2.65 + "median": 135.9, + "lo": 127.8, + "hi": 139.6, + "peak_mib": 3.0 }, "jemalloc": { - "median": 4.058, - "lo": 4.008, - "hi": 4.094, - "peak_mib": 2.8 + "median": 4.198, + "lo": 4.18, + "hi": 4.234, + "peak_mib": 3.0 }, "mimalloc": { - "median": 4.482, - "lo": 4.461, - "hi": 4.492, - "peak_mib": 6.3 + "median": 4.429, + "lo": 4.399, + "hi": 4.451, + "peak_mib": 6.2 }, "snmalloc": { - "median": 9.293, - "lo": 9.258, - "hi": 9.317, - "peak_mib": 3.85 + "median": 9.318, + "lo": 9.272, + "hi": 9.332, + "peak_mib": 4.0 }, "system": { - "median": 57.33, - "lo": 57.08, - "hi": 57.39, - "peak_mib": 2.65 + "median": 57.4, + "lo": 56.19, + "hi": 57.46, + "peak_mib": 3.0 } } } @@ -4783,34 +4783,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 158.8, - "lo": 157.8, - "hi": 159.2, - "peak_mib": 50.7 + "median": 139.8, + "lo": 139.4, + "hi": 141.2, + "peak_mib": 50.6 }, "jemalloc": { - "median": 41.84, - "lo": 41.49, - "hi": 42.39, - "peak_mib": 49.65 + "median": 40.35, + "lo": 40.13, + "hi": 40.44, + "peak_mib": 49.8 }, "mimalloc": { - "median": 165.4, - "lo": 140.5, - "hi": 172.4, - "peak_mib": 52.3 + "median": 139.7, + "lo": 133.5, + "hi": 152.4, + "peak_mib": 52.2 }, "snmalloc": { - "median": 67.73, - "lo": 67.03, - "hi": 68.83, - "peak_mib": 57.3 + "median": 65.1, + "lo": 64.26, + "hi": 67.28, + "peak_mib": 57.2 }, "system": { - "median": 25.9, - "lo": 25.83, - "hi": 25.97, - "peak_mib": 63.0 + "median": 25.58, + "lo": 25.49, + "hi": 25.68, + "peak_mib": 63.2 } } }, @@ -4818,34 +4818,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 172.0, - "lo": 171.8, - "hi": 172.5, - "peak_mib": 50.7 + "median": 155.0, + "lo": 154.6, + "hi": 155.6, + "peak_mib": 50.6 }, "jemalloc": { - "median": 52.66, - "lo": 52.35, - "hi": 52.97, - "peak_mib": 49.65 + "median": 51.54, + "lo": 51.03, + "hi": 51.86, + "peak_mib": 49.8 }, "mimalloc": { - "median": 190.7, - "lo": 182.8, - "hi": 191.1, - "peak_mib": 52.3 + "median": 178.5, + "lo": 169.8, + "hi": 179.1, + "peak_mib": 52.2 }, "snmalloc": { - "median": 125.1, - "lo": 114.2, - "hi": 126.5, - "peak_mib": 57.3 + "median": 124.6, + "lo": 122.5, + "hi": 125.2, + "peak_mib": 57.2 }, "system": { - "median": 22.22, - "lo": 22.13, - "hi": 22.28, - "peak_mib": 63.0 + "median": 22.04, + "lo": 21.92, + "hi": 22.09, + "peak_mib": 63.2 } } } @@ -4862,34 +4862,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 99.43, - "lo": 98.75, - "hi": 99.76, - "peak_mib": 50.7 + "median": 87.68, + "lo": 87.18, + "hi": 88.37, + "peak_mib": 50.6 }, "jemalloc": { - "median": 37.01, - "lo": 36.82, - "hi": 37.43, - "peak_mib": 49.7 + "median": 35.95, + "lo": 35.81, + "hi": 36.03, + "peak_mib": 49.8 }, "mimalloc": { - "median": 80.64, - "lo": 77.17, - "hi": 82.68, - "peak_mib": 52.3 + "median": 66.16, + "lo": 64.61, + "hi": 69.7, + "peak_mib": 52.2 }, "snmalloc": { - "median": 43.67, - "lo": 43.41, - "hi": 43.85, - "peak_mib": 57.1 + "median": 40.18, + "lo": 39.96, + "hi": 40.51, + "peak_mib": 57.2 }, "system": { - "median": 9.967, - "lo": 9.815, - "hi": 10.05, - "peak_mib": 63.0 + "median": 9.335, + "lo": 9.299, + "hi": 9.416, + "peak_mib": 63.2 } } }, @@ -4897,34 +4897,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 105.1, - "lo": 104.4, - "hi": 105.7, - "peak_mib": 50.7 + "median": 93.28, + "lo": 93.03, + "hi": 93.8, + "peak_mib": 50.6 }, "jemalloc": { - "median": 44.25, - "lo": 39.28, - "hi": 44.42, - "peak_mib": 49.7 + "median": 43.58, + "lo": 43.38, + "hi": 43.74, + "peak_mib": 49.8 }, "mimalloc": { - "median": 87.24, - "lo": 86.46, - "hi": 88.95, - "peak_mib": 52.3 + "median": 77.44, + "lo": 76.81, + "hi": 78.56, + "peak_mib": 52.2 }, "snmalloc": { - "median": 62.68, - "lo": 62.38, - "hi": 63.36, - "peak_mib": 57.1 + "median": 57.39, + "lo": 57.1, + "hi": 57.76, + "peak_mib": 57.2 }, "system": { - "median": 9.071, - "lo": 8.983, - "hi": 9.134, - "peak_mib": 63.0 + "median": 8.56, + "lo": 8.459, + "hi": 8.609, + "peak_mib": 63.2 } } } @@ -4941,34 +4941,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 41.43, - "lo": 40.82, - "hi": 41.89, - "peak_mib": 268.8 + "median": 33.56, + "lo": 33.05, + "hi": 33.84, + "peak_mib": 268.7 }, "jemalloc": { - "median": 6.381, - "lo": 6.34, - "hi": 6.454, - "peak_mib": 275.8 + "median": 6.133, + "lo": 5.476, + "hi": 6.262, + "peak_mib": 331.8 }, "mimalloc": { - "median": 32.11, - "lo": 31.64, - "hi": 32.73, - "peak_mib": 272.3 + "median": 25.82, + "lo": 25.36, + "hi": 25.97, + "peak_mib": 272.2 }, "snmalloc": { - "median": 7.621, - "lo": 7.441, - "hi": 7.669, - "peak_mib": 274.1 + "median": 7.52, + "lo": 7.444, + "hi": 7.588, + "peak_mib": 274.2 }, "system": { - "median": 4.824, - "lo": 4.783, - "hi": 4.889, - "peak_mib": 274.0 + "median": 4.708, + "lo": 4.645, + "hi": 4.764, + "peak_mib": 274.1 } } }, @@ -4976,34 +4976,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 59.01, - "lo": 57.92, - "hi": 59.69, - "peak_mib": 268.8 + "median": 52.63, + "lo": 52.04, + "hi": 53.1, + "peak_mib": 268.7 }, "jemalloc": { - "median": 11.31, - "lo": 9.077, - "hi": 11.43, - "peak_mib": 275.8 + "median": 10.33, + "lo": 8.643, + "hi": 10.91, + "peak_mib": 331.8 }, "mimalloc": { - "median": 42.36, - "lo": 41.74, - "hi": 42.57, - "peak_mib": 272.3 + "median": 36.98, + "lo": 36.75, + "hi": 37.2, + "peak_mib": 272.2 }, "snmalloc": { - "median": 16.16, - "lo": 16.13, - "hi": 16.3, - "peak_mib": 274.1 + "median": 15.87, + "lo": 15.78, + "hi": 15.91, + "peak_mib": 274.2 }, "system": { - "median": 7.097, - "lo": 6.991, - "hi": 7.303, - "peak_mib": 274.0 + "median": 6.784, + "lo": 6.577, + "hi": 6.864, + "peak_mib": 274.1 } } } @@ -5020,34 +5020,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 119.6, - "lo": 118.3, - "hi": 120.3, - "peak_mib": 2.75 + "median": 120.5, + "lo": 115.6, + "hi": 121.3, + "peak_mib": 3.0 }, "jemalloc": { - "median": 108.3, - "lo": 108.2, - "hi": 108.9, - "peak_mib": 2.9 + "median": 108.2, + "lo": 107.7, + "hi": 108.5, + "peak_mib": 3.0 }, "mimalloc": { - "median": 69.91, - "lo": 69.47, - "hi": 70.08, - "peak_mib": 8.3 + "median": 68.14, + "lo": 67.88, + "hi": 68.29, + "peak_mib": 8.2 }, "snmalloc": { - "median": 125.1, - "lo": 124.4, - "hi": 126.2, - "peak_mib": 4.25 + "median": 124.6, + "lo": 123.7, + "hi": 126.0, + "peak_mib": 4.2 }, "system": { "median": 61.1, - "lo": 60.36, - "hi": 61.63, - "peak_mib": 2.65 + "lo": 60.6, + "hi": 61.77, + "peak_mib": 3.0 } } }, @@ -5055,34 +5055,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 119.4, - "lo": 117.9, - "hi": 120.8, - "peak_mib": 2.75 + "median": 120.2, + "lo": 118.7, + "hi": 121.5, + "peak_mib": 3.0 }, "jemalloc": { - "median": 108.5, - "lo": 108.3, - "hi": 109.0, - "peak_mib": 2.9 + "median": 108.6, + "lo": 107.7, + "hi": 109.1, + "peak_mib": 3.0 }, "mimalloc": { - "median": 69.72, - "lo": 69.4, - "hi": 70.0, - "peak_mib": 8.3 + "median": 68.33, + "lo": 68.06, + "hi": 68.44, + "peak_mib": 8.2 }, "snmalloc": { - "median": 125.1, - "lo": 124.3, - "hi": 126.5, - "peak_mib": 4.25 + "median": 125.0, + "lo": 124.5, + "hi": 126.1, + "peak_mib": 4.2 }, "system": { - "median": 61.42, - "lo": 61.2, - "hi": 61.75, - "peak_mib": 2.65 + "median": 61.67, + "lo": 61.05, + "hi": 61.93, + "peak_mib": 3.0 } } } @@ -5099,34 +5099,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 115.1, - "lo": 111.3, - "hi": 116.1, - "peak_mib": 7.55 + "median": 117.2, + "lo": 115.3, + "hi": 117.7, + "peak_mib": 7.6 }, "jemalloc": { - "median": 81.12, - "lo": 76.84, - "hi": 81.62, - "peak_mib": 5.9 + "median": 81.21, + "lo": 81.12, + "hi": 81.43, + "peak_mib": 6.0 }, "mimalloc": { - "median": 41.56, - "lo": 41.38, - "hi": 41.68, - "peak_mib": 10.3 + "median": 41.15, + "lo": 41.08, + "hi": 41.27, + "peak_mib": 10.2 }, "snmalloc": { - "median": 80.34, - "lo": 79.29, - "hi": 80.72, - "peak_mib": 7.6 + "median": 80.24, + "lo": 77.72, + "hi": 80.65, + "peak_mib": 7.5 }, "system": { - "median": 36.11, - "lo": 36.03, - "hi": 36.23, - "peak_mib": 4.9 + "median": 36.75, + "lo": 36.65, + "hi": 36.78, + "peak_mib": 5.0 } } }, @@ -5134,34 +5134,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 116.0, - "lo": 112.2, - "hi": 117.4, - "peak_mib": 7.55 + "median": 118.1, + "lo": 116.4, + "hi": 119.1, + "peak_mib": 7.6 }, "jemalloc": { - "median": 81.95, - "lo": 77.45, - "hi": 82.67, - "peak_mib": 5.9 + "median": 82.18, + "lo": 82.0, + "hi": 82.38, + "peak_mib": 6.0 }, "mimalloc": { - "median": 41.59, - "lo": 41.49, - "hi": 41.75, - "peak_mib": 10.3 + "median": 41.23, + "lo": 41.13, + "hi": 41.33, + "peak_mib": 10.2 }, "snmalloc": { - "median": 80.77, - "lo": 78.97, - "hi": 81.5, - "peak_mib": 7.6 + "median": 80.97, + "lo": 78.64, + "hi": 81.75, + "peak_mib": 7.5 }, "system": { - "median": 36.27, - "lo": 36.19, - "hi": 36.34, - "peak_mib": 4.9 + "median": 36.88, + "lo": 36.7, + "hi": 36.93, + "peak_mib": 5.0 } } } @@ -5178,34 +5178,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 117.1, - "lo": 115.7, - "hi": 117.4, - "peak_mib": 5.5 + "median": 118.2, + "lo": 117.5, + "hi": 118.6, + "peak_mib": 5.7 }, "jemalloc": { "median": 85.88, - "lo": 85.77, - "hi": 86.2, - "peak_mib": 5.4 + "lo": 85.18, + "hi": 86.24, + "peak_mib": 5.5 }, "mimalloc": { - "median": 57.92, - "lo": 57.75, - "hi": 58.18, - "peak_mib": 10.3 + "median": 57.04, + "lo": 56.7, + "hi": 57.13, + "peak_mib": 10.2 }, "snmalloc": { - "median": 86.9, - "lo": 86.42, - "hi": 87.16, + "median": 87.27, + "lo": 86.23, + "hi": 87.66, "peak_mib": 6.8 }, "system": { - "median": 38.52, - "lo": 38.48, - "hi": 38.62, - "peak_mib": 4.6 + "median": 39.12, + "lo": 38.88, + "hi": 39.17, + "peak_mib": 4.8 } } }, @@ -5213,34 +5213,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 118.0, - "lo": 116.8, - "hi": 118.4, - "peak_mib": 5.5 + "median": 119.1, + "lo": 118.4, + "hi": 119.8, + "peak_mib": 5.7 }, "jemalloc": { - "median": 86.82, - "lo": 86.63, - "hi": 86.88, - "peak_mib": 5.4 + "median": 86.6, + "lo": 86.04, + "hi": 86.96, + "peak_mib": 5.5 }, "mimalloc": { - "median": 58.15, - "lo": 57.97, - "hi": 58.39, - "peak_mib": 10.3 + "median": 57.11, + "lo": 56.55, + "hi": 57.24, + "peak_mib": 10.2 }, "snmalloc": { - "median": 87.87, - "lo": 87.47, - "hi": 88.1, + "median": 88.46, + "lo": 87.34, + "hi": 88.73, "peak_mib": 6.8 }, "system": { - "median": 38.68, - "lo": 38.64, - "hi": 38.74, - "peak_mib": 4.6 + "median": 39.24, + "lo": 38.98, + "hi": 39.29, + "peak_mib": 4.8 } } } @@ -5257,34 +5257,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 136.2, - "lo": 135.7, - "hi": 136.7, - "peak_mib": 3.9 + "median": 131.8, + "lo": 131.3, + "hi": 132.3, + "peak_mib": 4.2 }, "jemalloc": { "median": 118.5, - "lo": 117.4, - "hi": 119.1, - "peak_mib": 4.9 + "lo": 117.7, + "hi": 118.9, + "peak_mib": 5.0 }, "mimalloc": { - "median": 125.0, - "lo": 124.6, - "hi": 125.4, - "peak_mib": 16.3 + "median": 123.3, + "lo": 122.7, + "hi": 123.8, + "peak_mib": 16.2 }, "snmalloc": { - "median": 119.6, - "lo": 119.0, + "median": 119.9, + "lo": 119.5, "hi": 120.2, "peak_mib": 5.5 }, "system": { - "median": 50.69, - "lo": 50.59, - "hi": 50.78, - "peak_mib": 3.4 + "median": 50.79, + "lo": 50.22, + "hi": 50.88, + "peak_mib": 3.5 } } }, @@ -5292,34 +5292,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 137.8, - "lo": 137.4, - "hi": 138.2, - "peak_mib": 3.9 + "median": 133.1, + "lo": 132.8, + "hi": 134.0, + "peak_mib": 4.2 }, "jemalloc": { - "median": 119.8, - "lo": 119.1, - "hi": 120.2, - "peak_mib": 4.9 + "median": 119.9, + "lo": 119.0, + "hi": 120.4, + "peak_mib": 5.0 }, "mimalloc": { - "median": 126.2, - "lo": 125.5, - "hi": 126.5, - "peak_mib": 16.3 + "median": 124.6, + "lo": 123.9, + "hi": 125.0, + "peak_mib": 16.2 }, "snmalloc": { - "median": 120.8, - "lo": 118.5, - "hi": 121.6, + "median": 121.2, + "lo": 120.8, + "hi": 121.5, "peak_mib": 5.5 }, "system": { - "median": 51.63, - "lo": 51.36, - "hi": 51.72, - "peak_mib": 3.4 + "median": 51.57, + "lo": 50.97, + "hi": 51.77, + "peak_mib": 3.5 } } } @@ -5336,34 +5336,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 457.8, - "lo": 453.2, - "hi": 465.3, - "peak_mib": 19.9 + "median": 464.0, + "lo": 454.5, + "hi": 467.7, + "peak_mib": 19.7 }, "jemalloc": { - "median": 338.1, - "lo": 335.4, - "hi": 339.1, - "peak_mib": 13.6 + "median": 335.3, + "lo": 326.1, + "hi": 339.2, + "peak_mib": 13.8 }, "mimalloc": { - "median": 128.9, - "lo": 127.5, - "hi": 132.3, - "peak_mib": 26.3 + "median": 132.8, + "lo": 130.9, + "hi": 135.3, + "peak_mib": 26.2 }, "snmalloc": { - "median": 337.4, - "lo": 332.3, - "hi": 339.4, - "peak_mib": 15.1 + "median": 336.6, + "lo": 328.6, + "hi": 341.4, + "peak_mib": 15.2 }, "system": { - "median": 147.4, - "lo": 147.1, - "hi": 147.8, - "peak_mib": 12.1 + "median": 150.4, + "lo": 150.3, + "hi": 150.7, + "peak_mib": 12.0 } } }, @@ -5371,34 +5371,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 466.1, - "lo": 458.7, - "hi": 468.1, - "peak_mib": 19.9 + "median": 473.0, + "lo": 463.1, + "hi": 477.6, + "peak_mib": 19.7 }, "jemalloc": { - "median": 340.6, - "lo": 334.6, - "hi": 341.3, - "peak_mib": 13.6 + "median": 336.2, + "lo": 330.4, + "hi": 339.1, + "peak_mib": 13.8 }, "mimalloc": { - "median": 126.0, - "lo": 124.9, - "hi": 127.4, - "peak_mib": 26.3 + "median": 125.0, + "lo": 121.9, + "hi": 127.3, + "peak_mib": 26.2 }, "snmalloc": { "median": 342.8, - "lo": 340.5, - "hi": 346.3, - "peak_mib": 15.1 + "lo": 335.7, + "hi": 346.2, + "peak_mib": 15.2 }, "system": { - "median": 149.4, - "lo": 149.2, - "hi": 149.7, - "peak_mib": 12.1 + "median": 152.2, + "lo": 151.9, + "hi": 152.4, + "peak_mib": 12.0 } } } @@ -5415,34 +5415,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 913.7, - "lo": 908.6, - "hi": 918.8, - "peak_mib": 35.4 + "median": 923.9, + "lo": 919.0, + "hi": 928.0, + "peak_mib": 35.1 }, "jemalloc": { - "median": 671.4, - "lo": 662.6, - "hi": 673.0, - "peak_mib": 24.6 + "median": 662.7, + "lo": 646.1, + "hi": 669.6, + "peak_mib": 24.8 }, "mimalloc": { - "median": 248.2, - "lo": 246.0, - "hi": 256.7, - "peak_mib": 70.3 + "median": 241.1, + "lo": 238.1, + "hi": 245.5, + "peak_mib": 70.2 }, "snmalloc": { - "median": 656.0, - "lo": 647.0, - "hi": 667.0, - "peak_mib": 29.85 + "median": 660.3, + "lo": 645.5, + "hi": 671.9, + "peak_mib": 28.15 }, "system": { - "median": 290.8, - "lo": 289.1, - "hi": 291.4, - "peak_mib": 22.15 + "median": 293.5, + "lo": 290.5, + "hi": 294.5, + "peak_mib": 22.0 } } }, @@ -5450,34 +5450,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 937.0, - "lo": 930.8, - "hi": 942.6, - "peak_mib": 35.4 + "median": 945.6, + "lo": 936.5, + "hi": 951.8, + "peak_mib": 35.1 }, "jemalloc": { - "median": 676.3, - "lo": 672.5, - "hi": 678.8, - "peak_mib": 24.6 + "median": 667.5, + "lo": 648.2, + "hi": 673.9, + "peak_mib": 24.8 }, "mimalloc": { - "median": 245.2, - "lo": 243.5, - "hi": 247.9, - "peak_mib": 70.3 + "median": 244.2, + "lo": 239.3, + "hi": 248.6, + "peak_mib": 70.2 }, "snmalloc": { - "median": 662.2, - "lo": 654.4, - "hi": 673.8, - "peak_mib": 29.85 + "median": 663.7, + "lo": 652.2, + "hi": 682.5, + "peak_mib": 28.15 }, "system": { - "median": 299.2, - "lo": 298.6, - "hi": 299.6, - "peak_mib": 22.15 + "median": 303.4, + "lo": 301.7, + "hi": 303.6, + "peak_mib": 22.0 } } } @@ -5494,34 +5494,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1554.0, - "lo": 1308.0, - "hi": 1770.0, - "peak_mib": 63.8 + "median": 1741.0, + "lo": 1524.0, + "hi": 1800.0, + "peak_mib": 64.2 }, "jemalloc": { - "median": 1316.0, - "lo": 1198.0, - "hi": 1341.0, - "peak_mib": 46.4 + "median": 1319.0, + "lo": 1283.0, + "hi": 1329.0, + "peak_mib": 46.5 }, "mimalloc": { - "median": 478.4, - "lo": 476.4, - "hi": 480.7, - "peak_mib": 119.4 + "median": 461.7, + "lo": 456.2, + "hi": 465.6, + "peak_mib": 109.5 }, "snmalloc": { - "median": 1251.0, - "lo": 1156.0, - "hi": 1294.0, - "peak_mib": 48.8 + "median": 1312.0, + "lo": 1297.0, + "hi": 1323.0, + "peak_mib": 48.5 }, "system": { - "median": 558.2, - "lo": 545.3, - "hi": 560.9, - "peak_mib": 42.3 + "median": 560.4, + "lo": 554.0, + "hi": 564.0, + "peak_mib": 42.25 } } }, @@ -5529,34 +5529,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1713.0, - "lo": 1442.0, - "hi": 1852.0, - "peak_mib": 63.8 + "median": 1830.0, + "lo": 1627.0, + "hi": 1864.0, + "peak_mib": 64.2 }, "jemalloc": { - "median": 1333.0, - "lo": 1244.0, - "hi": 1345.0, - "peak_mib": 46.4 + "median": 1313.0, + "lo": 1287.0, + "hi": 1331.0, + "peak_mib": 46.5 }, "mimalloc": { - "median": 466.4, - "lo": 464.2, - "hi": 477.5, - "peak_mib": 119.4 + "median": 472.4, + "lo": 459.2, + "hi": 490.5, + "peak_mib": 109.5 }, "snmalloc": { - "median": 1304.0, - "lo": 1234.0, - "hi": 1320.0, - "peak_mib": 48.8 + "median": 1322.0, + "lo": 1297.0, + "hi": 1343.0, + "peak_mib": 48.5 }, "system": { - "median": 593.0, - "lo": 561.9, - "hi": 596.6, - "peak_mib": 42.3 + "median": 603.0, + "lo": 589.7, + "hi": 603.8, + "peak_mib": 42.25 } } } @@ -5573,34 +5573,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1061.0, - "lo": 1054.0, - "hi": 1067.0, - "peak_mib": 17.7 + "median": 1027.0, + "lo": 1023.0, + "hi": 1031.0, + "peak_mib": 20.1 }, "jemalloc": { - "median": 928.9, - "lo": 921.7, - "hi": 932.9, - "peak_mib": 20.15 + "median": 926.3, + "lo": 925.1, + "hi": 928.6, + "peak_mib": 20.2 }, "mimalloc": { - "median": 819.6, - "lo": 781.5, - "hi": 843.4, + "median": 829.5, + "lo": 821.5, + "hi": 870.0, "peak_mib": 112.4 }, "snmalloc": { - "median": 945.6, - "lo": 939.4, - "hi": 951.1, - "peak_mib": 22.25 + "median": 945.8, + "lo": 938.7, + "hi": 947.8, + "peak_mib": 21.5 }, "system": { - "median": 390.5, - "lo": 388.8, - "hi": 391.3, - "peak_mib": 13.7 + "median": 384.4, + "lo": 374.6, + "hi": 385.4, + "peak_mib": 13.5 } } }, @@ -5608,34 +5608,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1078.0, - "lo": 1071.0, - "hi": 1080.0, - "peak_mib": 17.7 + "median": 1043.0, + "lo": 1033.0, + "hi": 1045.0, + "peak_mib": 20.1 }, "jemalloc": { - "median": 936.2, - "lo": 931.9, - "hi": 937.8, - "peak_mib": 20.15 + "median": 931.9, + "lo": 929.8, + "hi": 933.4, + "peak_mib": 20.2 }, "mimalloc": { - "median": 860.1, - "lo": 799.8, - "hi": 892.9, + "median": 847.4, + "lo": 824.0, + "hi": 869.6, "peak_mib": 112.4 }, "snmalloc": { - "median": 946.0, - "lo": 925.6, - "hi": 955.4, - "peak_mib": 22.25 + "median": 950.7, + "lo": 943.7, + "hi": 954.4, + "peak_mib": 21.5 }, "system": { - "median": 394.2, - "lo": 393.3, - "hi": 394.9, - "peak_mib": 13.7 + "median": 387.3, + "lo": 379.0, + "hi": 388.2, + "peak_mib": 13.5 } } } @@ -5652,34 +5652,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 3182.0, - "lo": 3163.0, - "hi": 3291.0, - "peak_mib": 364.4 + "median": 3355.0, + "lo": 3337.0, + "hi": 3381.0, + "peak_mib": 256.4 }, "jemalloc": { - "median": 2312.0, - "lo": 2169.0, - "hi": 2426.0, - "peak_mib": 311.5 + "median": 2413.0, + "lo": 2389.0, + "hi": 2435.0, + "peak_mib": 193.5 }, "mimalloc": { - "median": 1416.0, - "lo": 1353.0, - "hi": 1449.0, - "peak_mib": 787.1 + "median": 1358.0, + "lo": 1340.0, + "hi": 1421.0, + "peak_mib": 749.1 }, "snmalloc": { - "median": 2406.0, - "lo": 2249.0, - "hi": 2442.0, - "peak_mib": 376.6 + "median": 2506.0, + "lo": 2465.0, + "hi": 2534.0, + "peak_mib": 370.0 }, "system": { - "median": 992.4, - "lo": 972.7, - "hi": 1018.0, - "peak_mib": 328.1 + "median": 873.5, + "lo": 851.5, + "hi": 880.3, + "peak_mib": 329.7 } } }, @@ -5687,34 +5687,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 3185.0, - "lo": 2914.0, - "hi": 3398.0, - "peak_mib": 364.4 + "median": 3439.0, + "lo": 3388.0, + "hi": 3481.0, + "peak_mib": 256.4 }, "jemalloc": { - "median": 2338.0, - "lo": 2250.0, - "hi": 2397.0, - "peak_mib": 311.5 + "median": 2435.0, + "lo": 2421.0, + "hi": 2452.0, + "peak_mib": 193.5 }, "mimalloc": { - "median": 1216.0, - "lo": 1183.0, - "hi": 1236.0, - "peak_mib": 787.1 + "median": 1217.0, + "lo": 1168.0, + "hi": 1229.0, + "peak_mib": 749.1 }, "snmalloc": { - "median": 2423.0, - "lo": 2338.0, - "hi": 2486.0, - "peak_mib": 376.6 + "median": 2510.0, + "lo": 2493.0, + "hi": 2526.0, + "peak_mib": 370.0 }, "system": { - "median": 1094.0, - "lo": 1072.0, - "hi": 1104.0, - "peak_mib": 328.1 + "median": 1045.0, + "lo": 1028.0, + "hi": 1059.0, + "peak_mib": 329.7 } } } @@ -5731,33 +5731,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 20.52, - "lo": 20.24, - "hi": 20.66, - "peak_mib": 2112.0 + "median": 18.36, + "lo": 18.18, + "hi": 18.46, + "peak_mib": 2113.0 }, "jemalloc": { - "median": 6.569, - "lo": 6.53, - "hi": 6.588, - "peak_mib": 2514.0 + "median": 6.192, + "lo": 6.178, + "hi": 6.226, + "peak_mib": 2540.0 }, "mimalloc": { - "median": 6.088, - "lo": 6.053, - "hi": 6.103, + "median": 5.647, + "lo": 5.608, + "hi": 5.682, "peak_mib": 2587.0 }, "snmalloc": { - "median": 6.291, - "lo": 6.235, - "hi": 6.368, + "median": 6.105, + "lo": 6.092, + "hi": 6.129, "peak_mib": 2180.0 }, "system": { - "median": 3.862, - "lo": 3.811, - "hi": 3.883, + "median": 3.727, + "lo": 3.701, + "hi": 3.733, "peak_mib": 2129.0 } } @@ -5766,33 +5766,33 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 24.7, - "lo": 24.36, - "hi": 24.83, - "peak_mib": 2112.0 + "median": 23.33, + "lo": 23.06, + "hi": 23.55, + "peak_mib": 2113.0 }, "jemalloc": { - "median": 10.03, - "lo": 9.904, - "hi": 10.25, - "peak_mib": 2514.0 + "median": 9.28, + "lo": 9.209, + "hi": 9.482, + "peak_mib": 2540.0 }, "mimalloc": { - "median": 6.44, - "lo": 6.415, - "hi": 6.461, + "median": 6.103, + "lo": 6.073, + "hi": 6.151, "peak_mib": 2587.0 }, "snmalloc": { - "median": 10.84, - "lo": 10.79, - "hi": 10.93, + "median": 10.34, + "lo": 10.26, + "hi": 10.37, "peak_mib": 2180.0 }, "system": { - "median": 4.995, - "lo": 4.982, - "hi": 5.025, + "median": 4.809, + "lo": 4.753, + "hi": 4.834, "peak_mib": 2129.0 } } @@ -5810,34 +5810,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 2.177, - "lo": 2.094, - "hi": 2.201, - "peak_mib": 5.5 + "median": 2.093, + "lo": 2.092, + "hi": 2.094, + "peak_mib": 5.3 }, "jemalloc": { - "median": 1.956, - "lo": 1.954, - "hi": 1.957, - "peak_mib": 5.1 + "median": 1.948, + "lo": 1.948, + "hi": 1.949, + "peak_mib": 5.2 }, "mimalloc": { - "median": 2.055, - "lo": 2.026, - "hi": 2.122, - "peak_mib": 10.3 + "median": 2.064, + "lo": 2.064, + "hi": 2.066, + "peak_mib": 10.2 }, "snmalloc": { - "median": 2.035, - "lo": 1.971, - "hi": 2.109, + "median": 1.963, + "lo": 1.956, + "hi": 1.975, "peak_mib": 6.8 }, "system": { - "median": 1.928, - "lo": 1.89, - "hi": 2.044, - "peak_mib": 4.35 + "median": 1.886, + "lo": 1.88, + "hi": 1.894, + "peak_mib": 4.5 } } }, @@ -5845,34 +5845,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 2.111, - "lo": 2.096, - "hi": 2.144, - "peak_mib": 5.5 + "median": 2.093, + "lo": 2.092, + "hi": 2.096, + "peak_mib": 5.3 }, "jemalloc": { - "median": 1.951, - "lo": 1.95, - "hi": 1.985, - "peak_mib": 5.1 + "median": 1.944, + "lo": 1.943, + "hi": 1.944, + "peak_mib": 5.2 }, "mimalloc": { - "median": 2.158, - "lo": 2.056, - "hi": 2.211, - "peak_mib": 10.3 + "median": 2.064, + "lo": 2.063, + "hi": 2.065, + "peak_mib": 10.2 }, "snmalloc": { - "median": 2.084, - "lo": 1.945, - "hi": 2.161, + "median": 1.948, + "lo": 1.948, + "hi": 1.949, "peak_mib": 6.8 }, "system": { - "median": 2.013, - "lo": 1.882, - "hi": 2.145, - "peak_mib": 4.35 + "median": 1.882, + "lo": 1.88, + "hi": 1.882, + "peak_mib": 4.5 } } } @@ -5889,34 +5889,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 802.8, - "lo": 784.4, - "hi": 809.5, - "peak_mib": 12.25 + "median": 788.9, + "lo": 774.2, + "hi": 803.5, + "peak_mib": 12.2 }, "jemalloc": { - "median": 622.8, - "lo": 616.8, - "hi": 624.2, - "peak_mib": 9.9 + "median": 587.4, + "lo": 580.3, + "hi": 589.5, + "peak_mib": 9.8 }, "mimalloc": { - "median": 418.6, - "lo": 411.9, - "hi": 421.8, - "peak_mib": 20.6 + "median": 404.9, + "lo": 393.0, + "hi": 416.6, + "peak_mib": 20.5 }, "snmalloc": { - "median": 545.1, - "lo": 542.8, - "hi": 547.2, - "peak_mib": 17.1 + "median": 541.2, + "lo": 537.3, + "hi": 543.9, + "peak_mib": 17.2 }, "system": { - "median": 142.6, - "lo": 141.9, - "hi": 143.0, - "peak_mib": 7.55 + "median": 141.8, + "lo": 141.1, + "hi": 142.3, + "peak_mib": 7.2 } } }, @@ -5924,34 +5924,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 817.1, - "lo": 791.4, - "hi": 821.6, - "peak_mib": 12.25 + "median": 795.8, + "lo": 766.6, + "hi": 807.4, + "peak_mib": 12.2 }, "jemalloc": { - "median": 635.4, - "lo": 630.3, - "hi": 639.0, - "peak_mib": 9.9 + "median": 604.4, + "lo": 601.1, + "hi": 608.6, + "peak_mib": 9.8 }, "mimalloc": { - "median": 405.6, - "lo": 399.0, - "hi": 410.8, - "peak_mib": 20.6 + "median": 405.8, + "lo": 398.4, + "hi": 406.6, + "peak_mib": 20.5 }, "snmalloc": { - "median": 555.9, - "lo": 553.5, - "hi": 558.5, - "peak_mib": 17.1 + "median": 548.9, + "lo": 545.5, + "hi": 550.6, + "peak_mib": 17.2 }, "system": { - "median": 145.5, - "lo": 144.8, - "hi": 145.8, - "peak_mib": 7.55 + "median": 144.4, + "lo": 143.8, + "hi": 144.8, + "peak_mib": 7.2 } } } @@ -5968,34 +5968,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 76.44, - "lo": 75.91, - "hi": 76.78, - "peak_mib": 5.4 + "median": 74.3, + "lo": 73.9, + "hi": 74.78, + "peak_mib": 5.2 }, "jemalloc": { - "median": 119.0, - "lo": 118.7, - "hi": 119.4, + "median": 115.9, + "lo": 115.2, + "hi": 116.3, "peak_mib": 5.8 }, "mimalloc": { - "median": 23.83, - "lo": 23.68, - "hi": 23.95, + "median": 23.27, + "lo": 23.21, + "hi": 23.38, "peak_mib": 10.3 }, "snmalloc": { - "median": 34.48, - "lo": 34.23, - "hi": 34.76, - "peak_mib": 6.1 + "median": 34.14, + "lo": 33.89, + "hi": 34.26, + "peak_mib": 6.0 }, "system": { - "median": 9.635, - "lo": 9.603, - "hi": 9.676, - "peak_mib": 3.3 + "median": 9.768, + "lo": 9.694, + "hi": 9.817, + "peak_mib": 3.2 } } }, @@ -6003,34 +6003,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 76.36, - "lo": 76.06, - "hi": 76.63, - "peak_mib": 5.4 + "median": 74.59, + "lo": 74.45, + "hi": 75.15, + "peak_mib": 5.2 }, "jemalloc": { - "median": 120.0, - "lo": 118.9, - "hi": 120.4, + "median": 118.0, + "lo": 117.6, + "hi": 118.2, "peak_mib": 5.8 }, "mimalloc": { - "median": 24.04, - "lo": 23.91, - "hi": 24.2, + "median": 23.66, + "lo": 23.44, + "hi": 23.79, "peak_mib": 10.3 }, "snmalloc": { - "median": 34.21, - "lo": 34.05, - "hi": 34.55, - "peak_mib": 6.1 + "median": 34.16, + "lo": 34.0, + "hi": 34.33, + "peak_mib": 6.0 }, "system": { - "median": 9.683, - "lo": 9.598, - "hi": 9.752, - "peak_mib": 3.3 + "median": 9.79, + "lo": 9.714, + "hi": 9.829, + "peak_mib": 3.2 } } } @@ -6047,34 +6047,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 151.1, - "lo": 150.6, - "hi": 151.9, - "peak_mib": 9.05 + "median": 146.7, + "lo": 145.7, + "hi": 147.5, + "peak_mib": 9.1 }, "jemalloc": { - "median": 227.9, - "lo": 225.9, - "hi": 229.1, - "peak_mib": 10.1 + "median": 223.4, + "lo": 219.8, + "hi": 224.3, + "peak_mib": 10.0 }, "mimalloc": { - "median": 47.22, - "lo": 46.95, - "hi": 47.56, - "peak_mib": 16.3 + "median": 45.9, + "lo": 45.81, + "hi": 46.21, + "peak_mib": 16.2 }, "snmalloc": { - "median": 68.7, - "lo": 68.25, - "hi": 69.7, - "peak_mib": 8.2 + "median": 68.59, + "lo": 68.14, + "hi": 69.55, + "peak_mib": 8.0 }, "system": { - "median": 17.21, + "median": 17.2, "lo": 17.15, - "hi": 17.34, - "peak_mib": 4.9 + "hi": 17.38, + "peak_mib": 5.05 } } }, @@ -6082,34 +6082,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 152.0, - "lo": 151.6, - "hi": 152.6, - "peak_mib": 9.05 + "median": 147.6, + "lo": 147.0, + "hi": 148.1, + "peak_mib": 9.1 }, "jemalloc": { - "median": 234.0, - "lo": 232.6, - "hi": 234.9, - "peak_mib": 10.1 + "median": 229.2, + "lo": 228.0, + "hi": 230.1, + "peak_mib": 10.0 }, "mimalloc": { - "median": 47.63, - "lo": 47.27, - "hi": 47.99, - "peak_mib": 16.3 + "median": 46.8, + "lo": 46.46, + "hi": 47.11, + "peak_mib": 16.2 }, "snmalloc": { - "median": 68.52, - "lo": 68.04, - "hi": 68.75, - "peak_mib": 8.2 + "median": 67.72, + "lo": 67.25, + "hi": 68.03, + "peak_mib": 8.0 }, "system": { - "median": 17.43, - "lo": 17.32, + "median": 17.49, + "lo": 17.43, "hi": 17.62, - "peak_mib": 4.9 + "peak_mib": 5.05 } } } @@ -6126,34 +6126,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 8.375, - "lo": 7.953, - "hi": 8.606, - "peak_mib": 2.9 + "median": 9.516, + "lo": 9.129, + "hi": 10.1, + "peak_mib": 3.0 }, "jemalloc": { - "median": 8.89, - "lo": 8.496, - "hi": 9.467, - "peak_mib": 3.6 + "median": 10.81, + "lo": 10.51, + "hi": 11.01, + "peak_mib": 3.8 }, "mimalloc": { - "median": 5.467, - "lo": 5.262, - "hi": 5.742, + "median": 5.395, + "lo": 5.327, + "hi": 5.58, "peak_mib": 8.3 }, "snmalloc": { - "median": 5.007, - "lo": 4.854, - "hi": 5.073, - "peak_mib": 4.3 + "median": 5.557, + "lo": 5.449, + "hi": 5.661, + "peak_mib": 4.2 }, "system": { - "median": 1.166, - "lo": 1.141, - "hi": 1.203, - "peak_mib": 2.65 + "median": 1.261, + "lo": 1.217, + "hi": 1.281, + "peak_mib": 3.0 } } }, @@ -6161,34 +6161,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 8.538, - "lo": 8.289, - "hi": 8.856, - "peak_mib": 2.9 + "median": 9.419, + "lo": 9.077, + "hi": 9.535, + "peak_mib": 3.0 }, "jemalloc": { - "median": 9.172, - "lo": 8.91, - "hi": 9.588, - "peak_mib": 3.6 + "median": 10.81, + "lo": 10.73, + "hi": 10.93, + "peak_mib": 3.8 }, "mimalloc": { - "median": 5.418, - "lo": 5.331, - "hi": 5.587, + "median": 5.452, + "lo": 5.333, + "hi": 5.55, "peak_mib": 8.3 }, "snmalloc": { - "median": 4.937, - "lo": 4.784, - "hi": 5.11, - "peak_mib": 4.3 + "median": 5.629, + "lo": 5.5, + "hi": 5.705, + "peak_mib": 4.2 }, "system": { - "median": 1.193, - "lo": 1.168, - "hi": 1.215, - "peak_mib": 2.65 + "median": 1.242, + "lo": 1.222, + "hi": 1.271, + "peak_mib": 3.0 } } } @@ -6205,34 +6205,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 28.14, - "lo": 27.03, - "hi": 29.5, - "peak_mib": 4.4 + "median": 33.14, + "lo": 32.64, + "hi": 33.94, + "peak_mib": 4.8 }, "jemalloc": { - "median": 32.48, - "lo": 31.47, - "hi": 33.15, + "median": 38.46, + "lo": 38.11, + "hi": 38.68, "peak_mib": 6.7 }, "mimalloc": { - "median": 20.84, - "lo": 20.43, - "hi": 21.08, - "peak_mib": 11.3 + "median": 20.76, + "lo": 20.27, + "hi": 21.21, + "peak_mib": 10.4 }, "snmalloc": { - "median": 19.04, - "lo": 18.88, - "hi": 19.27, - "peak_mib": 5.1 + "median": 22.02, + "lo": 21.53, + "hi": 22.14, + "peak_mib": 5.0 }, "system": { - "median": 4.555, - "lo": 4.518, - "hi": 4.59, - "peak_mib": 2.8 + "median": 4.801, + "lo": 4.766, + "hi": 4.845, + "peak_mib": 3.0 } } }, @@ -6240,34 +6240,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 28.07, - "lo": 27.33, - "hi": 29.17, - "peak_mib": 4.4 + "median": 33.12, + "lo": 31.92, + "hi": 33.78, + "peak_mib": 4.8 }, "jemalloc": { - "median": 33.41, - "lo": 31.39, - "hi": 33.65, + "median": 38.81, + "lo": 38.16, + "hi": 39.0, "peak_mib": 6.7 }, "mimalloc": { - "median": 20.32, + "median": 20.35, "lo": 20.04, - "hi": 20.66, - "peak_mib": 11.3 + "hi": 20.48, + "peak_mib": 10.4 }, "snmalloc": { - "median": 18.97, - "lo": 18.51, - "hi": 19.18, - "peak_mib": 5.1 + "median": 21.85, + "lo": 21.53, + "hi": 22.11, + "peak_mib": 5.0 }, "system": { - "median": 4.585, - "lo": 4.559, - "hi": 4.627, - "peak_mib": 2.8 + "median": 4.82, + "lo": 4.785, + "hi": 4.858, + "peak_mib": 3.0 } } } @@ -6284,34 +6284,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 81.19, - "lo": 80.53, - "hi": 81.36, - "peak_mib": 44.05 + "median": 78.24, + "lo": 77.16, + "hi": 78.48, + "peak_mib": 43.85 }, "jemalloc": { - "median": 68.31, - "lo": 66.54, - "hi": 68.72, - "peak_mib": 29.1 + "median": 66.95, + "lo": 65.94, + "hi": 67.55, + "peak_mib": 30.35 }, "mimalloc": { - "median": 28.94, - "lo": 28.87, - "hi": 29.15, - "peak_mib": 32.3 + "median": 28.44, + "lo": 28.27, + "hi": 28.49, + "peak_mib": 30.5 }, "snmalloc": { - "median": 21.92, - "lo": 21.78, - "hi": 22.2, - "peak_mib": 40.2 + "median": 21.56, + "lo": 21.5, + "hi": 21.61, + "peak_mib": 39.85 }, "system": { - "median": 4.288, - "lo": 4.268, - "hi": 4.304, - "peak_mib": 27.1 + "median": 4.247, + "lo": 4.235, + "hi": 4.251, + "peak_mib": 31.5 } } }, @@ -6319,34 +6319,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 82.01, - "lo": 81.67, - "hi": 82.44, - "peak_mib": 44.05 + "median": 78.62, + "lo": 77.93, + "hi": 79.04, + "peak_mib": 43.85 }, "jemalloc": { - "median": 69.0, - "lo": 68.09, - "hi": 69.35, - "peak_mib": 29.1 + "median": 67.63, + "lo": 66.73, + "hi": 68.19, + "peak_mib": 30.35 }, "mimalloc": { - "median": 29.17, - "lo": 29.04, - "hi": 29.36, - "peak_mib": 32.3 + "median": 28.45, + "lo": 28.37, + "hi": 28.51, + "peak_mib": 30.5 }, "snmalloc": { - "median": 22.07, - "lo": 21.98, - "hi": 22.18, - "peak_mib": 40.2 + "median": 21.6, + "lo": 21.49, + "hi": 21.72, + "peak_mib": 39.85 }, "system": { - "median": 4.312, - "lo": 4.299, - "hi": 4.32, - "peak_mib": 27.1 + "median": 4.271, + "lo": 4.254, + "hi": 4.278, + "peak_mib": 31.5 } } } @@ -6363,34 +6363,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 76.65, - "lo": 75.35, - "hi": 77.18, - "peak_mib": 4.4 + "median": 74.37, + "lo": 73.58, + "hi": 74.92, + "peak_mib": 4.2 }, "jemalloc": { - "median": 61.33, - "lo": 61.05, - "hi": 62.28, - "peak_mib": 6.15 + "median": 49.75, + "lo": 49.46, + "hi": 50.15, + "peak_mib": 7.35 }, "mimalloc": { - "median": 68.19, - "lo": 67.26, - "hi": 70.1, - "peak_mib": 14.3 + "median": 67.86, + "lo": 66.76, + "hi": 68.62, + "peak_mib": 14.2 }, "snmalloc": { - "median": 68.36, - "lo": 67.8, - "hi": 68.63, - "peak_mib": 6.1 + "median": 66.32, + "lo": 65.34, + "hi": 67.05, + "peak_mib": 6.0 }, "system": { - "median": 70.31, - "lo": 69.29, - "hi": 71.64, - "peak_mib": 2.75 + "median": 68.26, + "lo": 66.86, + "hi": 68.81, + "peak_mib": 3.0 } } }, @@ -6398,34 +6398,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 76.96, - "lo": 76.52, - "hi": 77.45, - "peak_mib": 4.4 + "median": 74.38, + "lo": 73.51, + "hi": 75.21, + "peak_mib": 4.2 }, "jemalloc": { - "median": 62.55, - "lo": 61.98, - "hi": 63.13, - "peak_mib": 6.15 + "median": 50.24, + "lo": 49.74, + "hi": 51.05, + "peak_mib": 7.35 }, "mimalloc": { - "median": 69.8, - "lo": 68.38, - "hi": 71.05, - "peak_mib": 14.3 + "median": 68.06, + "lo": 67.24, + "hi": 69.49, + "peak_mib": 14.2 }, "snmalloc": { - "median": 69.01, - "lo": 68.22, - "hi": 69.71, - "peak_mib": 6.1 + "median": 67.04, + "lo": 66.33, + "hi": 67.28, + "peak_mib": 6.0 }, "system": { - "median": 70.85, - "lo": 70.22, - "hi": 72.31, - "peak_mib": 2.75 + "median": 68.06, + "lo": 67.77, + "hi": 69.8, + "peak_mib": 3.0 } } } @@ -6442,34 +6442,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 59780.0, - "lo": 59640.0, - "hi": 59790.0, - "peak_mib": 2.65 + "median": 59900.0, + "lo": 59830.0, + "hi": 59920.0, + "peak_mib": 3.0 }, "jemalloc": { - "median": 59690.0, - "lo": 59660.0, - "hi": 59710.0, - "peak_mib": 2.85 + "median": 59810.0, + "lo": 59780.0, + "hi": 59820.0, + "peak_mib": 3.0 }, "mimalloc": { - "median": 59960.0, - "lo": 59940.0, + "median": 59970.0, + "lo": 59880.0, "hi": 59970.0, - "peak_mib": 7.3 + "peak_mib": 8.2 }, "snmalloc": { - "median": 59960.0, - "lo": 59900.0, - "hi": 59970.0, - "peak_mib": 4.1 + "median": 59980.0, + "lo": 59950.0, + "hi": 59980.0, + "peak_mib": 4.0 }, "system": { - "median": 42410.0, - "lo": 42280.0, - "hi": 42560.0, - "peak_mib": 2.65 + "median": 42420.0, + "lo": 42310.0, + "hi": 42650.0, + "peak_mib": 3.0 } } }, @@ -6477,34 +6477,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 59790.0, - "lo": 59780.0, - "hi": 59800.0, - "peak_mib": 2.65 + "median": 59930.0, + "lo": 59890.0, + "hi": 59930.0, + "peak_mib": 3.0 }, "jemalloc": { - "median": 59900.0, - "lo": 59890.0, - "hi": 59920.0, - "peak_mib": 2.85 + "median": 59960.0, + "lo": 59940.0, + "hi": 59980.0, + "peak_mib": 3.0 }, "mimalloc": { + "median": 60000.0, + "lo": 59990.0, + "hi": 60020.0, + "peak_mib": 8.2 + }, + "snmalloc": { "median": 59990.0, - "lo": 59940.0, + "lo": 59970.0, "hi": 60010.0, - "peak_mib": 7.3 - }, - "snmalloc": { - "median": 59970.0, - "lo": 59940.0, - "hi": 59990.0, - "peak_mib": 4.1 + "peak_mib": 4.0 }, "system": { - "median": 49250.0, - "lo": 45290.0, - "hi": 52180.0, - "peak_mib": 2.65 + "median": 50520.0, + "lo": 45830.0, + "hi": 52040.0, + "peak_mib": 3.0 } } } @@ -6521,34 +6521,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 59790.0, - "lo": 59770.0, - "hi": 59800.0, - "peak_mib": 2.65 + "median": 59900.0, + "lo": 59880.0, + "hi": 59910.0, + "peak_mib": 3.0 }, "jemalloc": { - "median": 59710.0, - "lo": 59690.0, - "hi": 59710.0, - "peak_mib": 2.9 + "median": 59790.0, + "lo": 59790.0, + "hi": 59820.0, + "peak_mib": 3.0 }, "mimalloc": { - "median": 59970.0, - "lo": 59960.0, - "hi": 59980.0, - "peak_mib": 6.3 + "median": 59960.0, + "lo": 59930.0, + "hi": 59970.0, + "peak_mib": 7.3 }, "snmalloc": { "median": 59960.0, - "lo": 59940.0, - "hi": 59980.0, - "peak_mib": 4.05 + "lo": 59950.0, + "hi": 59970.0, + "peak_mib": 4.0 }, "system": { - "median": 59760.0, - "lo": 59750.0, - "hi": 59770.0, - "peak_mib": 2.65 + "median": 59780.0, + "lo": 59770.0, + "hi": 59790.0, + "peak_mib": 3.0 } } }, @@ -6556,34 +6556,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 59800.0, - "lo": 59790.0, - "hi": 59810.0, - "peak_mib": 2.65 + "median": 59930.0, + "lo": 59910.0, + "hi": 59950.0, + "peak_mib": 3.0 }, "jemalloc": { - "median": 59900.0, - "lo": 59890.0, - "hi": 59920.0, - "peak_mib": 2.9 + "median": 59990.0, + "lo": 59960.0, + "hi": 59990.0, + "peak_mib": 3.0 }, "mimalloc": { - "median": 59990.0, + "median": 60010.0, "lo": 59990.0, - "hi": 60010.0, - "peak_mib": 6.3 + "hi": 60020.0, + "peak_mib": 7.3 }, "snmalloc": { "median": 59990.0, - "lo": 59960.0, - "hi": 60000.0, - "peak_mib": 4.05 + "lo": 59890.0, + "hi": 60010.0, + "peak_mib": 4.0 }, "system": { - "median": 59770.0, - "lo": 59750.0, - "hi": 59780.0, - "peak_mib": 2.65 + "median": 59790.0, + "lo": 59760.0, + "hi": 59800.0, + "peak_mib": 3.0 } } } @@ -6600,34 +6600,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 9.305, - "lo": 9.238, - "hi": 9.352, + "median": 8.691, + "lo": 8.637, + "hi": 8.759, "peak_mib": 200.0 }, "jemalloc": { - "median": 6.381, - "lo": 6.352, - "hi": 6.412, - "peak_mib": 170.6 + "median": 6.149, + "lo": 6.072, + "hi": 6.22, + "peak_mib": 170.7 }, "mimalloc": { - "median": 7.489, - "lo": 7.421, - "hi": 7.584, - "peak_mib": 199.3 + "median": 7.06, + "lo": 6.982, + "hi": 7.117, + "peak_mib": 230.2 }, "snmalloc": { - "median": 6.048, - "lo": 6.032, - "hi": 6.196, - "peak_mib": 212.2 + "median": 5.821, + "lo": 5.8, + "hi": 5.875, + "peak_mib": 216.2 }, "system": { - "median": 4.466, - "lo": 4.445, - "hi": 4.491, - "peak_mib": 192.9 + "median": 4.302, + "lo": 4.281, + "hi": 4.366, + "peak_mib": 192.5 } } }, @@ -6635,34 +6635,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 9.482, - "lo": 9.431, - "hi": 9.556, + "median": 8.829, + "lo": 8.751, + "hi": 8.859, "peak_mib": 200.0 }, "jemalloc": { - "median": 7.063, - "lo": 7.032, - "hi": 7.077, - "peak_mib": 170.6 + "median": 6.702, + "lo": 6.635, + "hi": 6.751, + "peak_mib": 170.7 }, "mimalloc": { - "median": 7.892, - "lo": 7.813, - "hi": 8.048, - "peak_mib": 199.3 + "median": 7.483, + "lo": 7.387, + "hi": 7.573, + "peak_mib": 230.2 }, "snmalloc": { - "median": 7.556, - "lo": 7.393, - "hi": 7.718, - "peak_mib": 212.2 + "median": 7.239, + "lo": 7.083, + "hi": 7.28, + "peak_mib": 216.2 }, "system": { - "median": 4.079, - "lo": 4.044, - "hi": 4.107, - "peak_mib": 192.9 + "median": 3.904, + "lo": 3.885, + "hi": 3.913, + "peak_mib": 192.5 } } } @@ -6679,34 +6679,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 5.3, - "lo": 5.232, - "hi": 5.309, - "peak_mib": 37.65 + "median": 5.114, + "lo": 5.038, + "hi": 5.137, + "peak_mib": 37.7 }, "jemalloc": { - "median": 4.447, - "lo": 4.428, - "hi": 4.476, - "peak_mib": 37.2 + "median": 4.414, + "lo": 4.389, + "hi": 4.433, + "peak_mib": 37.35 }, "mimalloc": { - "median": 4.386, - "lo": 4.287, - "hi": 4.473, - "peak_mib": 42.3 + "median": 4.307, + "lo": 4.265, + "hi": 4.393, + "peak_mib": 42.2 }, "snmalloc": { - "median": 4.139, - "lo": 4.112, - "hi": 4.196, - "peak_mib": 40.35 + "median": 4.186, + "lo": 4.17, + "hi": 4.198, + "peak_mib": 40.2 }, "system": { - "median": 3.617, - "lo": 3.567, - "hi": 3.631, - "peak_mib": 44.9 + "median": 3.537, + "lo": 3.516, + "hi": 3.558, + "peak_mib": 45.0 } } }, @@ -6714,34 +6714,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 5.312, - "lo": 5.241, - "hi": 5.336, - "peak_mib": 37.65 + "median": 5.178, + "lo": 5.127, + "hi": 5.204, + "peak_mib": 37.7 }, "jemalloc": { - "median": 4.77, - "lo": 4.717, - "hi": 4.81, - "peak_mib": 37.2 + "median": 4.724, + "lo": 4.716, + "hi": 4.739, + "peak_mib": 37.35 }, "mimalloc": { - "median": 4.498, - "lo": 4.462, - "hi": 4.517, - "peak_mib": 42.3 + "median": 4.4, + "lo": 4.362, + "hi": 4.509, + "peak_mib": 42.2 }, "snmalloc": { - "median": 4.476, - "lo": 4.446, - "hi": 4.5, - "peak_mib": 40.35 + "median": 4.488, + "lo": 4.444, + "hi": 4.495, + "peak_mib": 40.2 }, "system": { - "median": 2.882, - "lo": 2.865, - "hi": 2.887, - "peak_mib": 44.9 + "median": 2.791, + "lo": 2.776, + "hi": 2.798, + "peak_mib": 45.0 } } } @@ -6758,34 +6758,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 7.243, - "lo": 7.217, - "hi": 7.254, - "peak_mib": 16.4 + "median": 7.159, + "lo": 7.137, + "hi": 7.179, + "peak_mib": 16.3 }, "jemalloc": { - "median": 5.912, - "lo": 5.89, - "hi": 5.918, - "peak_mib": 16.8 + "median": 5.935, + "lo": 5.907, + "hi": 5.939, + "peak_mib": 17.0 }, "mimalloc": { - "median": 7.168, - "lo": 7.143, - "hi": 7.189, - "peak_mib": 20.3 + "median": 7.126, + "lo": 7.1, + "hi": 7.161, + "peak_mib": 20.2 }, "snmalloc": { - "median": 7.068, - "lo": 7.017, - "hi": 7.087, - "peak_mib": 18.85 + "median": 7.037, + "lo": 7.027, + "hi": 7.065, + "peak_mib": 19.8 }, "system": { - "median": 5.723, - "lo": 5.695, - "hi": 5.73, - "peak_mib": 16.0 + "median": 5.709, + "lo": 5.699, + "hi": 5.72, + "peak_mib": 16.1 } } }, @@ -6793,34 +6793,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 7.248, - "lo": 7.224, - "hi": 7.268, - "peak_mib": 16.4 + "median": 7.181, + "lo": 7.153, + "hi": 7.196, + "peak_mib": 16.3 }, "jemalloc": { - "median": 6.011, - "lo": 6.002, - "hi": 6.027, - "peak_mib": 16.8 + "median": 6.045, + "lo": 6.028, + "hi": 6.054, + "peak_mib": 17.0 }, "mimalloc": { - "median": 7.185, - "lo": 7.152, - "hi": 7.195, - "peak_mib": 20.3 + "median": 7.188, + "lo": 7.169, + "hi": 7.214, + "peak_mib": 20.2 }, "snmalloc": { - "median": 7.214, - "lo": 7.187, - "hi": 7.237, - "peak_mib": 18.85 + "median": 7.187, + "lo": 7.173, + "hi": 7.224, + "peak_mib": 19.8 }, "system": { - "median": 6.039, - "lo": 6.024, - "hi": 6.053, - "peak_mib": 16.0 + "median": 6.042, + "lo": 6.014, + "hi": 6.049, + "peak_mib": 16.1 } } } @@ -6837,34 +6837,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 154.5, - "lo": 153.6, - "hi": 154.7, - "peak_mib": 27.6 + "median": 145.2, + "lo": 145.0, + "hi": 145.9, + "peak_mib": 27.5 }, "jemalloc": { - "median": 68.22, - "lo": 67.87, - "hi": 69.01, + "median": 67.22, + "lo": 66.86, + "hi": 68.08, "peak_mib": 34.2 }, "mimalloc": { - "median": 149.3, - "lo": 145.1, - "hi": 158.2, - "peak_mib": 36.3 + "median": 144.3, + "lo": 138.6, + "hi": 149.2, + "peak_mib": 36.2 }, "snmalloc": { - "median": 101.3, - "lo": 100.0, - "hi": 103.7, - "peak_mib": 49.9 + "median": 101.2, + "lo": 99.62, + "hi": 103.6, + "peak_mib": 50.0 }, "system": { - "median": 72.85, - "lo": 71.85, - "hi": 73.3, - "peak_mib": 32.4 + "median": 73.65, + "lo": 72.83, + "hi": 74.87, + "peak_mib": 32.5 } } }, @@ -6872,34 +6872,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 161.9, - "lo": 160.1, - "hi": 162.3, - "peak_mib": 27.6 + "median": 153.7, + "lo": 153.4, + "hi": 154.7, + "peak_mib": 27.5 }, "jemalloc": { - "median": 78.16, - "lo": 77.38, - "hi": 78.89, + "median": 76.42, + "lo": 76.22, + "hi": 77.26, "peak_mib": 34.2 }, "mimalloc": { - "median": 164.7, - "lo": 164.5, - "hi": 165.0, - "peak_mib": 36.3 + "median": 157.7, + "lo": 152.0, + "hi": 162.6, + "peak_mib": 36.2 }, "snmalloc": { - "median": 129.8, - "lo": 128.0, - "hi": 131.5, - "peak_mib": 49.9 + "median": 130.4, + "lo": 127.8, + "hi": 130.7, + "peak_mib": 50.0 }, "system": { - "median": 85.48, - "lo": 84.2, - "hi": 86.35, - "peak_mib": 32.4 + "median": 87.76, + "lo": 86.28, + "hi": 88.98, + "peak_mib": 32.5 } } } @@ -6916,34 +6916,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 92.81, - "lo": 90.21, - "hi": 93.46, - "peak_mib": 5.1 + "median": 94.7, + "lo": 94.18, + "hi": 95.02, + "peak_mib": 5.2 }, "jemalloc": { - "median": 56.07, - "lo": 55.74, - "hi": 56.38, - "peak_mib": 4.6 + "median": 56.92, + "lo": 56.52, + "hi": 57.18, + "peak_mib": 4.8 }, "mimalloc": { - "median": 95.04, - "lo": 92.11, - "hi": 97.03, - "peak_mib": 8.3 + "median": 94.37, + "lo": 92.74, + "hi": 96.7, + "peak_mib": 8.2 }, "snmalloc": { - "median": 85.58, - "lo": 85.16, - "hi": 86.27, - "peak_mib": 6.9 + "median": 86.16, + "lo": 85.06, + "hi": 86.7, + "peak_mib": 7.0 }, "system": { - "median": 57.13, - "lo": 56.55, - "hi": 57.66, - "peak_mib": 5.9 + "median": 58.66, + "lo": 58.47, + "hi": 59.1, + "peak_mib": 6.0 } } }, @@ -6951,34 +6951,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 96.23, - "lo": 95.99, - "hi": 97.11, - "peak_mib": 5.1 + "median": 101.7, + "lo": 101.0, + "hi": 102.4, + "peak_mib": 5.2 }, "jemalloc": { - "median": 58.71, - "lo": 58.33, - "hi": 58.98, - "peak_mib": 4.6 + "median": 59.41, + "lo": 58.71, + "hi": 59.88, + "peak_mib": 4.8 }, "mimalloc": { - "median": 95.97, - "lo": 94.74, - "hi": 96.32, - "peak_mib": 8.3 + "median": 95.2, + "lo": 94.09, + "hi": 96.81, + "peak_mib": 8.2 }, "snmalloc": { - "median": 90.92, - "lo": 90.26, - "hi": 91.31, - "peak_mib": 6.9 + "median": 90.35, + "lo": 90.08, + "hi": 92.75, + "peak_mib": 7.0 }, "system": { - "median": 62.42, - "lo": 60.86, - "hi": 62.79, - "peak_mib": 5.9 + "median": 64.1, + "lo": 63.22, + "hi": 64.43, + "peak_mib": 6.0 } } } @@ -6995,34 +6995,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 104.5, - "lo": 104.0, - "hi": 104.8, - "peak_mib": 5.3 + "median": 121.3, + "lo": 121.2, + "hi": 121.5, + "peak_mib": 5.2 }, "jemalloc": { - "median": 55.75, - "lo": 55.67, - "hi": 55.87, - "peak_mib": 4.65 + "median": 55.88, + "lo": 55.84, + "hi": 55.94, + "peak_mib": 4.8 }, "mimalloc": { - "median": 101.4, - "lo": 101.0, - "hi": 101.7, - "peak_mib": 8.3 + "median": 98.76, + "lo": 98.57, + "hi": 99.19, + "peak_mib": 8.2 }, "snmalloc": { - "median": 107.5, - "lo": 106.9, - "hi": 107.7, - "peak_mib": 6.1 + "median": 106.7, + "lo": 106.4, + "hi": 106.9, + "peak_mib": 6.0 }, "system": { - "median": 45.43, - "lo": 45.16, - "hi": 45.77, - "peak_mib": 5.9 + "median": 45.53, + "lo": 45.17, + "hi": 45.69, + "peak_mib": 6.0 } } }, @@ -7030,34 +7030,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 104.8, - "lo": 104.3, - "hi": 105.0, - "peak_mib": 5.3 + "median": 121.5, + "lo": 121.4, + "hi": 121.8, + "peak_mib": 5.2 }, "jemalloc": { - "median": 55.86, - "lo": 55.8, - "hi": 56.04, - "peak_mib": 4.65 + "median": 56.07, + "lo": 55.98, + "hi": 56.1, + "peak_mib": 4.8 }, "mimalloc": { - "median": 101.1, - "lo": 100.7, - "hi": 101.3, - "peak_mib": 8.3 + "median": 98.49, + "lo": 98.18, + "hi": 98.73, + "peak_mib": 8.2 }, "snmalloc": { - "median": 107.2, - "lo": 106.9, - "hi": 107.4, - "peak_mib": 6.1 + "median": 106.9, + "lo": 106.7, + "hi": 107.1, + "peak_mib": 6.0 }, "system": { - "median": 37.55, - "lo": 37.18, - "hi": 37.63, - "peak_mib": 5.9 + "median": 37.31, + "lo": 37.0, + "hi": 37.47, + "peak_mib": 6.0 } } } @@ -7074,34 +7074,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 51.39, - "lo": 51.01, - "hi": 51.76, - "peak_mib": 7.4 + "median": 49.96, + "lo": 49.69, + "hi": 50.03, + "peak_mib": 7.2 }, "jemalloc": { - "median": 35.92, - "lo": 33.74, - "hi": 38.18, - "peak_mib": 6.6 + "median": 36.24, + "lo": 35.45, + "hi": 38.35, + "peak_mib": 6.8 }, "mimalloc": { - "median": 47.64, - "lo": 47.3, - "hi": 48.3, - "peak_mib": 10.3 + "median": 47.69, + "lo": 47.37, + "hi": 48.05, + "peak_mib": 10.2 }, "snmalloc": { - "median": 41.23, - "lo": 40.3, - "hi": 42.19, + "median": 41.01, + "lo": 40.44, + "hi": 41.91, "peak_mib": 10.0 }, "system": { - "median": 44.42, - "lo": 44.16, - "hi": 44.65, - "peak_mib": 5.9 + "median": 45.07, + "lo": 44.97, + "hi": 45.16, + "peak_mib": 6.0 } } }, @@ -7109,34 +7109,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 51.49, - "lo": 51.32, - "hi": 51.85, - "peak_mib": 7.4 + "median": 50.03, + "lo": 49.83, + "hi": 50.12, + "peak_mib": 7.2 }, "jemalloc": { - "median": 36.09, - "lo": 33.86, - "hi": 38.28, - "peak_mib": 6.6 + "median": 36.45, + "lo": 35.6, + "hi": 38.53, + "peak_mib": 6.8 }, "mimalloc": { - "median": 47.66, - "lo": 47.43, - "hi": 48.29, - "peak_mib": 10.3 + "median": 47.84, + "lo": 47.58, + "hi": 48.18, + "peak_mib": 10.2 }, "snmalloc": { - "median": 41.88, - "lo": 40.79, - "hi": 42.85, + "median": 41.79, + "lo": 40.65, + "hi": 42.56, "peak_mib": 10.0 }, "system": { - "median": 45.24, - "lo": 44.96, - "hi": 45.33, - "peak_mib": 5.9 + "median": 45.88, + "lo": 45.68, + "hi": 46.02, + "peak_mib": 6.0 } } } @@ -7153,34 +7153,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1489.0, - "lo": 1483.0, - "hi": 1490.0, - "peak_mib": 12.25 + "median": 1474.0, + "lo": 1470.0, + "hi": 1476.0, + "peak_mib": 12.3 }, "jemalloc": { - "median": 273.7, - "lo": 273.0, - "hi": 274.3, - "peak_mib": 17.4 + "median": 265.4, + "lo": 264.3, + "hi": 266.8, + "peak_mib": 17.5 }, "mimalloc": { - "median": 1310.0, - "lo": 1279.0, - "hi": 1314.0, - "peak_mib": 28.3 + "median": 1286.0, + "lo": 1260.0, + "hi": 1289.0, + "peak_mib": 28.2 }, "snmalloc": { - "median": 793.4, - "lo": 784.1, - "hi": 809.4, - "peak_mib": 24.55 + "median": 825.9, + "lo": 805.3, + "hi": 838.0, + "peak_mib": 24.0 }, "system": { - "median": 1440.0, - "lo": 1433.0, - "hi": 1448.0, - "peak_mib": 9.6 + "median": 1431.0, + "lo": 1419.0, + "hi": 1438.0, + "peak_mib": 9.8 } } }, @@ -7188,34 +7188,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1557.0, - "lo": 1555.0, - "hi": 1558.0, - "peak_mib": 12.25 + "median": 1554.0, + "lo": 1552.0, + "hi": 1555.0, + "peak_mib": 12.3 }, "jemalloc": { - "median": 280.5, - "lo": 280.0, - "hi": 280.7, - "peak_mib": 17.4 + "median": 271.6, + "lo": 271.2, + "hi": 272.9, + "peak_mib": 17.5 }, "mimalloc": { - "median": 1348.0, - "lo": 1348.0, - "hi": 1349.0, - "peak_mib": 28.3 + "median": 1341.0, + "lo": 1340.0, + "hi": 1343.0, + "peak_mib": 28.2 }, "snmalloc": { - "median": 978.0, - "lo": 976.5, - "hi": 983.6, - "peak_mib": 24.55 + "median": 1024.0, + "lo": 1018.0, + "hi": 1029.0, + "peak_mib": 24.0 }, "system": { "median": 1820.0, - "lo": 1817.0, + "lo": 1816.0, "hi": 1822.0, - "peak_mib": 9.6 + "peak_mib": 9.8 } } } @@ -7232,34 +7232,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1771.0, - "lo": 1769.0, - "hi": 1773.0, - "peak_mib": 10.4 + "median": 1764.0, + "lo": 1762.0, + "hi": 1767.0, + "peak_mib": 10.3 }, "jemalloc": { - "median": 1763.0, - "lo": 1762.0, - "hi": 1764.0, - "peak_mib": 9.4 + "median": 1755.0, + "lo": 1753.0, + "hi": 1759.0, + "peak_mib": 9.8 }, "mimalloc": { - "median": 1779.0, - "lo": 1759.0, - "hi": 1781.0, - "peak_mib": 20.3 + "median": 1772.0, + "lo": 1758.0, + "hi": 1773.0, + "peak_mib": 20.2 }, "snmalloc": { - "median": 1630.0, - "lo": 1625.0, - "hi": 1632.0, - "peak_mib": 12.1 + "median": 1636.0, + "lo": 1631.0, + "hi": 1641.0, + "peak_mib": 12.2 }, "system": { - "median": 1813.0, + "median": 1810.0, "lo": 1808.0, - "hi": 1816.0, - "peak_mib": 5.9 + "hi": 1812.0, + "peak_mib": 6.0 } } }, @@ -7267,34 +7267,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1794.0, - "lo": 1793.0, - "hi": 1794.0, - "peak_mib": 10.4 + "median": 1791.0, + "lo": 1789.0, + "hi": 1792.0, + "peak_mib": 10.3 }, "jemalloc": { - "median": 1816.0, - "lo": 1815.0, - "hi": 1816.0, - "peak_mib": 9.4 + "median": 1813.0, + "lo": 1812.0, + "hi": 1814.0, + "peak_mib": 9.8 }, "mimalloc": { - "median": 1791.0, - "lo": 1790.0, - "hi": 1791.0, - "peak_mib": 20.3 + "median": 1789.0, + "lo": 1788.0, + "hi": 1790.0, + "peak_mib": 20.2 }, "snmalloc": { - "median": 1689.0, - "lo": 1688.0, - "hi": 1691.0, - "peak_mib": 12.1 + "median": 1703.0, + "lo": 1702.0, + "hi": 1704.0, + "peak_mib": 12.2 }, "system": { "median": 1876.0, - "lo": 1874.0, + "lo": 1875.0, "hi": 1877.0, - "peak_mib": 5.9 + "peak_mib": 6.0 } } } @@ -7311,34 +7311,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 275.1, - "lo": 273.2, - "hi": 277.7, + "median": 267.9, + "lo": 266.8, + "hi": 268.5, "peak_mib": 21.5 }, "jemalloc": { - "median": 246.1, - "lo": 245.4, - "hi": 246.8, - "peak_mib": 27.3 + "median": 245.6, + "lo": 244.5, + "hi": 246.5, + "peak_mib": 27.5 }, "mimalloc": { - "median": 276.1, - "lo": 271.3, - "hi": 279.1, - "peak_mib": 22.3 + "median": 271.6, + "lo": 268.4, + "hi": 272.8, + "peak_mib": 22.2 }, "snmalloc": { - "median": 275.5, - "lo": 274.2, - "hi": 276.4, + "median": 272.9, + "lo": 271.1, + "hi": 273.6, "peak_mib": 23.8 }, "system": { - "median": 326.0, - "lo": 324.9, - "hi": 327.8, - "peak_mib": 18.1 + "median": 323.8, + "lo": 322.2, + "hi": 325.1, + "peak_mib": 18.2 } } }, @@ -7346,34 +7346,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 277.6, - "lo": 275.6, - "hi": 278.9, + "median": 271.2, + "lo": 270.5, + "hi": 273.1, "peak_mib": 21.5 }, "jemalloc": { - "median": 272.3, - "lo": 271.3, - "hi": 273.0, - "peak_mib": 27.3 + "median": 271.3, + "lo": 269.7, + "hi": 272.5, + "peak_mib": 27.5 }, "mimalloc": { - "median": 279.2, - "lo": 274.1, - "hi": 282.0, - "peak_mib": 22.3 + "median": 275.1, + "lo": 273.4, + "hi": 276.6, + "peak_mib": 22.2 }, "snmalloc": { - "median": 294.9, - "lo": 293.6, - "hi": 295.7, + "median": 295.4, + "lo": 294.3, + "hi": 295.9, "peak_mib": 23.8 }, "system": { - "median": 332.2, - "lo": 328.2, - "hi": 334.4, - "peak_mib": 18.1 + "median": 331.5, + "lo": 327.5, + "hi": 333.3, + "peak_mib": 18.2 } } } @@ -7390,34 +7390,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 10.32, - "lo": 10.26, - "hi": 10.37, - "peak_mib": 24.1 + "median": 10.16, + "lo": 10.12, + "hi": 10.17, + "peak_mib": 23.8 }, "jemalloc": { - "median": 5.298, - "lo": 5.24, - "hi": 5.337, - "peak_mib": 16.9 + "median": 5.263, + "lo": 5.196, + "hi": 5.298, + "peak_mib": 17.0 }, "mimalloc": { - "median": 8.389, - "lo": 8.315, - "hi": 8.47, - "peak_mib": 20.3 + "median": 8.33, + "lo": 8.295, + "hi": 8.382, + "peak_mib": 20.2 }, "snmalloc": { - "median": 7.452, - "lo": 7.425, - "hi": 7.474, - "peak_mib": 17.4 + "median": 7.451, + "lo": 7.39, + "hi": 7.47, + "peak_mib": 17.0 }, "system": { - "median": 5.387, - "lo": 5.364, - "hi": 5.398, - "peak_mib": 14.85 + "median": 5.377, + "lo": 5.359, + "hi": 5.401, + "peak_mib": 15.0 } } }, @@ -7425,34 +7425,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 10.39, - "lo": 10.31, - "hi": 10.44, - "peak_mib": 24.1 + "median": 10.21, + "lo": 10.18, + "hi": 10.23, + "peak_mib": 23.8 }, "jemalloc": { - "median": 5.324, - "lo": 5.265, - "hi": 5.361, - "peak_mib": 16.9 + "median": 5.289, + "lo": 5.218, + "hi": 5.317, + "peak_mib": 17.0 }, "mimalloc": { - "median": 8.386, - "lo": 8.311, - "hi": 8.494, - "peak_mib": 20.3 + "median": 8.329, + "lo": 8.282, + "hi": 8.378, + "peak_mib": 20.2 }, "snmalloc": { - "median": 7.5, - "lo": 7.467, + "median": 7.491, + "lo": 7.435, "hi": 7.517, - "peak_mib": 17.4 + "peak_mib": 17.0 }, "system": { - "median": 5.386, - "lo": 5.37, - "hi": 5.405, - "peak_mib": 14.85 + "median": 5.381, + "lo": 5.365, + "hi": 5.413, + "peak_mib": 15.0 } } } @@ -7469,34 +7469,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1.202, - "lo": 1.185, - "hi": 1.207, + "median": 1.146, + "lo": 1.142, + "hi": 1.152, "peak_mib": 63.2 }, "jemalloc": { - "median": 0.5505, - "lo": 0.5485, - "hi": 0.552, - "peak_mib": 57.3 + "median": 0.5335, + "lo": 0.511, + "hi": 0.535, + "peak_mib": 57.7 }, "mimalloc": { - "median": 1.001, - "lo": 0.98, - "hi": 1.01, - "peak_mib": 130.3 + "median": 0.986, + "lo": 0.968, + "hi": 0.992, + "peak_mib": 130.2 }, "snmalloc": { - "median": 0.492, - "lo": 0.489, - "hi": 0.494, - "peak_mib": 67.75 + "median": 0.5335, + "lo": 0.529, + "hi": 0.536, + "peak_mib": 67.8 }, "system": { - "median": 0.2185, - "lo": 0.2175, - "hi": 0.22, - "peak_mib": 52.9 + "median": 0.2085, + "lo": 0.2075, + "hi": 0.211, + "peak_mib": 53.1 } } }, @@ -7504,34 +7504,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 1.223, - "lo": 1.206, - "hi": 1.226, + "median": 1.175, + "lo": 1.173, + "hi": 1.182, "peak_mib": 63.2 }, "jemalloc": { - "median": 0.6645, - "lo": 0.657, - "hi": 0.666, - "peak_mib": 57.3 + "median": 0.6405, + "lo": 0.618, + "hi": 0.645, + "peak_mib": 57.7 }, "mimalloc": { - "median": 1.041, - "lo": 1.023, - "hi": 1.051, - "peak_mib": 130.3 + "median": 1.038, + "lo": 1.022, + "hi": 1.044, + "peak_mib": 130.2 }, "snmalloc": { - "median": 0.527, - "lo": 0.5235, - "hi": 0.529, - "peak_mib": 67.75 + "median": 0.579, + "lo": 0.572, + "hi": 0.5825, + "peak_mib": 67.8 }, "system": { - "median": 0.2175, - "lo": 0.216, - "hi": 0.2185, - "peak_mib": 52.9 + "median": 0.208, + "lo": 0.207, + "hi": 0.209, + "peak_mib": 53.1 } } } @@ -7548,34 +7548,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 0.092, - "lo": 0.091, - "hi": 0.093, - "peak_mib": 23.6 + "median": 0.086, + "lo": 0.086, + "hi": 0.087, + "peak_mib": 23.5 }, "jemalloc": { "median": 0.001, "lo": 0.001, "hi": 0.001, - "peak_mib": 24.1 + "peak_mib": 24.3 }, "mimalloc": { - "median": 0.075, - "lo": 0.0665, - "hi": 0.095, - "peak_mib": 24.3 + "median": 0.065, + "lo": 0.0585, + "hi": 0.077, + "peak_mib": 24.2 }, "snmalloc": { - "median": 0.01, - "lo": 0.009, - "hi": 0.01, - "peak_mib": 25.3 + "median": 0.011, + "lo": 0.011, + "hi": 0.011, + "peak_mib": 25.2 }, "system": { - "median": 0.036, - "lo": 0.036, - "hi": 0.037, - "peak_mib": 18.0 + "median": 0.0345, + "lo": 0.034, + "hi": 0.035, + "peak_mib": 18.1 } } }, @@ -7583,34 +7583,34 @@ "unit": "Mops/s", "results": { "bcmalloc": { - "median": 0.1075, - "lo": 0.106, - "hi": 0.108, - "peak_mib": 23.6 + "median": 0.105, + "lo": 0.104, + "hi": 0.107, + "peak_mib": 23.5 }, "jemalloc": { "median": 0.001, "lo": 0.001, "hi": 0.001, - "peak_mib": 24.1 + "peak_mib": 24.3 }, "mimalloc": { - "median": 0.104, - "lo": 0.103, - "hi": 0.104, - "peak_mib": 24.3 + "median": 0.103, + "lo": 0.102, + "hi": 0.103, + "peak_mib": 24.2 }, "snmalloc": { - "median": 0.011, - "lo": 0.011, - "hi": 0.011, - "peak_mib": 25.3 + "median": 0.013, + "lo": 0.013, + "hi": 0.013, + "peak_mib": 25.2 }, "system": { "median": 0.096, "lo": 0.095, "hi": 0.096, - "peak_mib": 18.0 + "peak_mib": 18.1 } } } @@ -7627,34 +7627,34 @@ "unit": "MiB", "results": { "bcmalloc": { - "median": 10.69, - "lo": 10.68, - "hi": 10.75, - "peak_mib": 264.9 + "median": 10.78, + "lo": 10.77, + "hi": 10.78, + "peak_mib": 264.7 }, "jemalloc": { - "median": 269.1, + "median": 269.0, "lo": 269.0, - "hi": 269.1, - "peak_mib": 271.9 + "hi": 269.0, + "peak_mib": 271.8 }, "mimalloc": { - "median": 260.1, + "median": 260.3, "lo": 260.0, - "hi": 260.1, - "peak_mib": 266.3 + "hi": 260.3, + "peak_mib": 266.4 }, "snmalloc": { "median": 261.3, "lo": 261.3, "hi": 261.3, - "peak_mib": 265.3 + "peak_mib": 265.2 }, "system": { - "median": 0.195, - "lo": 0.195, - "hi": 0.258, - "peak_mib": 265.9 + "median": 0.262, + "lo": 0.258, + "hi": 0.264, + "peak_mib": 266.0 } } } @@ -7671,34 +7671,34 @@ "unit": "MiB", "results": { "bcmalloc": { - "median": 157.4, - "lo": 157.4, + "median": 157.5, + "lo": 157.5, "hi": 157.5, - "peak_mib": 159.7 + "peak_mib": 159.5 }, "jemalloc": { "median": 157.0, "lo": 157.0, - "hi": 157.1, + "hi": 157.0, "peak_mib": 159.8 }, "mimalloc": { "median": 156.0, "lo": 156.0, - "hi": 156.1, - "peak_mib": 162.3 + "hi": 156.3, + "peak_mib": 162.4 }, "snmalloc": { - "median": 153.4, - "lo": 153.4, - "hi": 153.4, - "peak_mib": 157.4 + "median": 153.3, + "lo": 153.3, + "hi": 153.3, + "peak_mib": 157.2 }, "system": { - "median": 183.2, - "lo": 183.2, - "hi": 183.2, - "peak_mib": 185.1 + "median": 183.3, + "lo": 183.0, + "hi": 183.3, + "peak_mib": 185.2 } } } @@ -7715,34 +7715,34 @@ "unit": "MiB", "results": { "bcmalloc": { - "median": 196.2, - "lo": 196.1, - "hi": 196.2, + "median": 184.5, + "lo": 184.5, + "hi": 184.5, "peak_mib": 284.1 }, "jemalloc": { - "median": 156.9, - "lo": 155.4, - "hi": 159.2, - "peak_mib": 227.7 + "median": 159.0, + "lo": 156.4, + "hi": 161.0, + "peak_mib": 230.2 }, "mimalloc": { "median": 197.0, "lo": 197.0, - "hi": 197.1, - "peak_mib": 282.3 + "hi": 197.3, + "peak_mib": 282.5 }, "snmalloc": { "median": 149.7, "lo": 149.6, "hi": 149.7, - "peak_mib": 201.1 + "peak_mib": 201.0 }, "system": { "median": 133.3, "lo": 133.3, - "hi": 133.4, - "peak_mib": 179.4 + "hi": 133.3, + "peak_mib": 179.2 } } } @@ -7761,32 +7761,32 @@ "bcmalloc": { "median": 3.906, "lo": 3.906, - "hi": 4.062, - "peak_mib": 11.6 + "hi": 3.906, + "peak_mib": 11.7 }, "jemalloc": { - "median": 4.531, + "median": 4.446, "lo": 4.375, "hi": 5.156, - "peak_mib": 11.2 + "peak_mib": 11.5 }, "mimalloc": { "median": 7.344, - "lo": 7.336, - "hi": 7.344, - "peak_mib": 16.3 + "lo": 7.344, + "hi": 7.422, + "peak_mib": 16.2 }, "snmalloc": { - "median": 5.071, + "median": 5.0, "lo": 5.0, - "hi": 5.156, - "peak_mib": 12.85 + "hi": 5.071, + "peak_mib": 12.8 }, "system": { - "median": 11.63, + "median": 11.56, "lo": 11.56, "hi": 11.72, - "peak_mib": 10.4 + "peak_mib": 10.5 } } }, @@ -7794,34 +7794,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 6.719, - "lo": 6.719, - "hi": 6.797, - "peak_mib": 11.6 + "median": 6.875, + "lo": 6.805, + "hi": 6.875, + "peak_mib": 11.7 }, "jemalloc": { "median": 18.2, - "lo": 17.97, - "hi": 18.44, - "peak_mib": 11.2 + "lo": 17.89, + "hi": 18.58, + "peak_mib": 11.5 }, "mimalloc": { - "median": 11.41, - "lo": 11.41, - "hi": 11.48, - "peak_mib": 16.3 + "median": 11.64, + "lo": 11.56, + "hi": 11.72, + "peak_mib": 16.2 }, "snmalloc": { - "median": 7.5, - "lo": 7.5, - "hi": 7.656, - "peak_mib": 12.85 + "median": 7.656, + "lo": 7.656, + "hi": 7.672, + "peak_mib": 12.8 }, "system": { - "median": 19.22, - "lo": 19.22, - "hi": 19.23, - "peak_mib": 10.4 + "median": 19.38, + "lo": 19.38, + "hi": 19.53, + "peak_mib": 10.5 } } }, @@ -7829,34 +7829,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 9.531, - "lo": 9.453, - "hi": 9.61, - "peak_mib": 11.6 + "median": 9.227, + "lo": 9.141, + "hi": 9.375, + "peak_mib": 11.7 }, "jemalloc": { - "median": 23.05, - "lo": 22.73, - "hi": 23.44, - "peak_mib": 11.2 + "median": 23.13, + "lo": 22.66, + "hi": 23.59, + "peak_mib": 11.5 }, "mimalloc": { - "median": 17.19, - "lo": 16.95, - "hi": 17.33, - "peak_mib": 16.3 + "median": 17.66, + "lo": 17.58, + "hi": 17.88, + "peak_mib": 16.2 }, "snmalloc": { - "median": 15.63, - "lo": 15.39, + "median": 15.55, + "lo": 15.31, "hi": 15.78, - "peak_mib": 12.85 + "peak_mib": 12.8 }, "system": { - "median": 64.38, - "lo": 63.83, - "hi": 64.69, - "peak_mib": 10.4 + "median": 67.97, + "lo": 67.34, + "hi": 68.59, + "peak_mib": 10.5 } } } @@ -7873,34 +7873,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 4.062, - "lo": 3.992, - "hi": 4.062, - "peak_mib": 87.85 + "median": 3.922, + "lo": 3.906, + "hi": 3.992, + "peak_mib": 88.0 }, "jemalloc": { - "median": 5.172, + "median": 5.156, "lo": 5.156, - "hi": 5.312, - "peak_mib": 61.4 + "hi": 5.156, + "peak_mib": 61.8 }, "mimalloc": { - "median": 12.58, - "lo": 12.19, - "hi": 12.97, - "peak_mib": 76.75 + "median": 12.82, + "lo": 12.5, + "hi": 13.36, + "peak_mib": 76.2 }, "snmalloc": { - "median": 5.0, - "lo": 5.0, + "median": 5.156, + "lo": 5.078, "hi": 5.156, - "peak_mib": 83.6 + "peak_mib": 83.8 }, "system": { - "median": 12.03, - "lo": 12.03, + "median": 12.02, + "lo": 11.95, "hi": 12.03, - "peak_mib": 60.1 + "peak_mib": 60.3 } } }, @@ -7908,34 +7908,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 6.875, - "lo": 6.875, - "hi": 7.11, - "peak_mib": 87.85 + "median": 7.031, + "lo": 7.031, + "hi": 7.188, + "peak_mib": 88.0 }, "jemalloc": { - "median": 18.6, - "lo": 18.59, - "hi": 18.75, - "peak_mib": 61.4 + "median": 18.59, + "lo": 18.52, + "hi": 18.67, + "peak_mib": 61.8 }, "mimalloc": { - "median": 31.48, - "lo": 30.63, - "hi": 32.5, - "peak_mib": 76.75 + "median": 32.81, + "lo": 32.19, + "hi": 33.91, + "peak_mib": 76.2 }, "snmalloc": { - "median": 8.446, - "lo": 8.368, - "hi": 8.578, - "peak_mib": 83.6 + "median": 8.75, + "lo": 8.672, + "hi": 8.75, + "peak_mib": 83.8 }, "system": { - "median": 19.69, - "lo": 19.69, - "hi": 19.7, - "peak_mib": 60.1 + "median": 20.16, + "lo": 20.16, + "hi": 20.16, + "peak_mib": 60.3 } } }, @@ -7943,34 +7943,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 10.0, - "lo": 10.0, - "hi": 10.47, - "peak_mib": 87.85 + "median": 10.16, + "lo": 10.08, + "hi": 10.31, + "peak_mib": 88.0 }, "jemalloc": { - "median": 23.6, + "median": 23.75, "lo": 23.59, "hi": 23.75, - "peak_mib": 61.4 + "peak_mib": 61.8 }, "mimalloc": { - "median": 51.64, - "lo": 49.53, - "hi": 54.14, - "peak_mib": 76.75 + "median": 54.14, + "lo": 52.5, + "hi": 56.25, + "peak_mib": 76.2 }, "snmalloc": { - "median": 20.0, - "lo": 20.0, - "hi": 20.0, - "peak_mib": 83.6 + "median": 20.31, + "lo": 20.23, + "hi": 20.47, + "peak_mib": 83.8 }, "system": { - "median": 59.38, - "lo": 59.15, - "hi": 59.77, - "peak_mib": 60.1 + "median": 63.28, + "lo": 62.5, + "hi": 64.22, + "peak_mib": 60.3 } } } @@ -7987,34 +7987,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 20.16, - "lo": 19.22, - "hi": 20.63, - "peak_mib": 72.1 + "median": 21.09, + "lo": 20.94, + "hi": 21.25, + "peak_mib": 72.15 }, "jemalloc": { - "median": 41.25, - "lo": 40.16, - "hi": 41.56, - "peak_mib": 44.25 + "median": 41.88, + "lo": 39.06, + "hi": 42.19, + "peak_mib": 44.75 }, "mimalloc": { - "median": 101.3, - "lo": 94.55, - "hi": 107.5, - "peak_mib": 47.3 + "median": 99.23, + "lo": 88.75, + "hi": 105.3, + "peak_mib": 46.95 }, "snmalloc": { - "median": 26.56, - "lo": 26.56, + "median": 26.72, + "lo": 26.41, "hi": 26.88, - "peak_mib": 44.75 + "peak_mib": 43.35 }, "system": { - "median": 185.9, - "lo": 122.5, - "hi": 190.9, - "peak_mib": 41.6 + "median": 141.1, + "lo": 129.7, + "hi": 150.6, + "peak_mib": 42.5 } } }, @@ -8022,34 +8022,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 134.8, - "lo": 124.7, + "median": 132.8, + "lo": 123.4, "hi": 142.5, - "peak_mib": 72.1 + "peak_mib": 72.15 }, "jemalloc": { - "median": 109.9, - "lo": 109.4, - "hi": 110.2, - "peak_mib": 44.25 + "median": 112.5, + "lo": 110.0, + "hi": 113.0, + "peak_mib": 44.75 }, "mimalloc": { - "median": 457.3, - "lo": 446.3, - "hi": 479.7, - "peak_mib": 47.3 + "median": 465.9, + "lo": 436.3, + "hi": 477.8, + "peak_mib": 46.95 }, "snmalloc": { - "median": 347.0, - "lo": 342.2, - "hi": 350.5, - "peak_mib": 44.75 + "median": 361.9, + "lo": 359.1, + "hi": 372.2, + "peak_mib": 43.35 }, "system": { - "median": 566.7, - "lo": 544.4, - "hi": 574.7, - "peak_mib": 41.6 + "median": 563.9, + "lo": 547.8, + "hi": 570.3, + "peak_mib": 42.5 } } }, @@ -8057,34 +8057,34 @@ "unit": "ns", "results": { "bcmalloc": { - "median": 198.0, - "lo": 187.7, - "hi": 204.7, - "peak_mib": 72.1 + "median": 200.3, + "lo": 186.7, + "hi": 205.3, + "peak_mib": 72.15 }, "jemalloc": { - "median": 161.3, - "lo": 160.3, - "hi": 162.0, - "peak_mib": 44.25 + "median": 170.9, + "lo": 165.9, + "hi": 171.9, + "peak_mib": 44.75 }, "mimalloc": { - "median": 650.0, - "lo": 634.2, - "hi": 665.6, - "peak_mib": 47.3 + "median": 662.0, + "lo": 636.6, + "hi": 676.6, + "peak_mib": 46.95 }, "snmalloc": { - "median": 459.9, - "lo": 456.6, - "hi": 464.4, - "peak_mib": 44.75 + "median": 478.8, + "lo": 471.6, + "hi": 491.3, + "peak_mib": 43.35 }, "system": { - "median": 752.2, - "lo": 732.5, - "hi": 760.0, - "peak_mib": 41.6 + "median": 795.5, + "lo": 778.1, + "hi": 803.8, + "peak_mib": 42.5 } } } @@ -8118,34 +8118,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 291.3, - "lo": 284.8, - "hi": 292.1, - "peak_mib": 55.0 + "median": 311.1, + "lo": 307.5, + "hi": 320.0, + "peak_mib": 55.5 }, "jemalloc": { - "median": 247.6, - "lo": 246.5, - "hi": 248.3, - "peak_mib": 57.65 + "median": 264.7, + "lo": 262.7, + "hi": 272.9, + "peak_mib": 57.1 }, "mimalloc": { - "median": 303.3, - "lo": 299.7, - "hi": 304.2, + "median": 319.8, + "lo": 317.4, + "hi": 328.1, "peak_mib": 86.9 }, "snmalloc": { - "median": 298.2, - "lo": 295.5, - "hi": 298.8, + "median": 312.9, + "lo": 311.5, + "hi": 320.9, "peak_mib": 57.9 }, "system": { - "median": 254.8, - "lo": 253.0, - "hi": 255.3, - "peak_mib": 54.05 + "median": 271.9, + "lo": 269.3, + "hi": 278.3, + "peak_mib": 53.3 } } }, @@ -8153,34 +8153,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 291.3, - "lo": 285.3, - "hi": 292.3, - "peak_mib": 55.0 + "median": 310.6, + "lo": 308.6, + "hi": 318.3, + "peak_mib": 55.5 }, "jemalloc": { - "median": 248.9, - "lo": 247.8, - "hi": 250.5, - "peak_mib": 57.65 + "median": 265.2, + "lo": 262.8, + "hi": 273.0, + "peak_mib": 57.1 }, "mimalloc": { - "median": 306.0, - "lo": 304.6, - "hi": 306.7, + "median": 322.4, + "lo": 319.1, + "hi": 330.4, "peak_mib": 86.9 }, "snmalloc": { - "median": 298.6, - "lo": 297.8, - "hi": 299.0, + "median": 314.2, + "lo": 312.1, + "hi": 321.0, "peak_mib": 57.9 }, "system": { - "median": 252.1, - "lo": 250.3, - "hi": 253.9, - "peak_mib": 54.05 + "median": 271.5, + "lo": 269.3, + "hi": 275.7, + "peak_mib": 53.3 } } } @@ -8197,34 +8197,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 1522.0, - "lo": 1520.0, - "hi": 1524.0, - "peak_mib": 22.6 + "median": 1540.0, + "lo": 1527.0, + "hi": 1610.0, + "peak_mib": 23.0 }, "jemalloc": { - "median": 1445.0, - "lo": 1443.0, - "hi": 1446.0, - "peak_mib": 17.7 + "median": 1461.0, + "lo": 1448.0, + "hi": 1532.0, + "peak_mib": 18.0 }, "mimalloc": { - "median": 1513.0, - "lo": 1509.0, - "hi": 1514.0, + "median": 1532.0, + "lo": 1522.0, + "hi": 1610.0, "peak_mib": 18.6 }, "snmalloc": { - "median": 1520.0, - "lo": 1518.0, - "hi": 1524.0, - "peak_mib": 20.9 + "median": 1536.0, + "lo": 1525.0, + "hi": 1611.0, + "peak_mib": 21.0 }, "system": { - "median": 1442.0, - "lo": 1439.0, - "hi": 1445.0, - "peak_mib": 20.7 + "median": 1456.0, + "lo": 1449.0, + "hi": 1525.0, + "peak_mib": 20.35 } } }, @@ -8232,34 +8232,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 1525.0, - "lo": 1524.0, - "hi": 1526.0, - "peak_mib": 22.6 + "median": 1538.0, + "lo": 1534.0, + "hi": 1622.0, + "peak_mib": 23.0 }, "jemalloc": { - "median": 1448.0, - "lo": 1446.0, - "hi": 1451.0, - "peak_mib": 17.7 + "median": 1458.0, + "lo": 1453.0, + "hi": 1532.0, + "peak_mib": 18.0 }, "mimalloc": { - "median": 1515.0, - "lo": 1513.0, - "hi": 1516.0, + "median": 1532.0, + "lo": 1525.0, + "hi": 1611.0, "peak_mib": 18.6 }, "snmalloc": { - "median": 1526.0, - "lo": 1524.0, - "hi": 1527.0, - "peak_mib": 20.9 + "median": 1534.0, + "lo": 1530.0, + "hi": 1613.0, + "peak_mib": 21.0 }, "system": { - "median": 1452.0, - "lo": 1452.0, - "hi": 1456.0, - "peak_mib": 20.7 + "median": 1460.0, + "lo": 1456.0, + "hi": 1533.0, + "peak_mib": 20.35 } } } @@ -8276,34 +8276,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 20.45, - "lo": 20.2, - "hi": 20.49, - "peak_mib": 71.0 + "median": 21.53, + "lo": 21.23, + "hi": 22.09, + "peak_mib": 69.5 }, "jemalloc": { - "median": 15.94, - "lo": 15.84, - "hi": 16.01, - "peak_mib": 65.45 + "median": 16.53, + "lo": 16.39, + "hi": 17.03, + "peak_mib": 66.15 }, "mimalloc": { - "median": 19.5, - "lo": 19.37, - "hi": 19.62, + "median": 20.46, + "lo": 20.28, + "hi": 21.15, "peak_mib": 92.0 }, "snmalloc": { - "median": 19.26, - "lo": 19.21, - "hi": 19.31, + "median": 19.97, + "lo": 19.88, + "hi": 20.43, "peak_mib": 71.2 }, "system": { - "median": 16.0, - "lo": 15.84, - "hi": 16.06, - "peak_mib": 66.6 + "median": 16.38, + "lo": 16.32, + "hi": 16.77, + "peak_mib": 66.8 } } }, @@ -8311,34 +8311,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 20.44, - "lo": 20.35, - "hi": 20.53, - "peak_mib": 71.0 + "median": 21.65, + "lo": 21.43, + "hi": 22.29, + "peak_mib": 69.5 }, "jemalloc": { - "median": 16.05, - "lo": 15.97, - "hi": 16.13, - "peak_mib": 65.45 + "median": 16.62, + "lo": 16.53, + "hi": 17.15, + "peak_mib": 66.15 }, "mimalloc": { - "median": 19.65, - "lo": 19.53, - "hi": 19.73, + "median": 20.62, + "lo": 20.41, + "hi": 21.47, "peak_mib": 92.0 }, "snmalloc": { - "median": 19.47, - "lo": 19.37, - "hi": 19.49, + "median": 20.11, + "lo": 19.93, + "hi": 20.26, "peak_mib": 71.2 }, "system": { - "median": 16.31, - "lo": 16.11, - "hi": 16.33, - "peak_mib": 66.6 + "median": 16.84, + "lo": 16.7, + "hi": 17.44, + "peak_mib": 66.8 } } } @@ -8355,34 +8355,34 @@ "unit": "kreq/s", "results": { "bcmalloc": { - "median": 228.1, - "lo": 222.8, - "hi": 229.3, - "peak_mib": 6.55 + "median": 236.3, + "lo": 226.5, + "hi": 237.6, + "peak_mib": 6.6 }, "jemalloc": { - "median": 226.7, - "lo": 221.4, - "hi": 227.9, + "median": 228.9, + "lo": 221.9, + "hi": 233.4, "peak_mib": 4.5 }, "mimalloc": { - "median": 224.0, - "lo": 214.1, - "hi": 226.1, + "median": 228.5, + "lo": 225.5, + "hi": 237.0, "peak_mib": 4.55 }, "snmalloc": { - "median": 225.8, - "lo": 220.8, - "hi": 227.4, + "median": 230.9, + "lo": 226.7, + "hi": 237.7, "peak_mib": 4.0 }, "system": { - "median": 217.3, - "lo": 212.1, - "hi": 218.5, - "peak_mib": 4.1 + "median": 222.4, + "lo": 220.2, + "hi": 229.8, + "peak_mib": 4.2 } } }, @@ -8390,34 +8390,34 @@ "unit": "kreq/s", "results": { "bcmalloc": { - "median": 227.6, - "lo": 226.3, - "hi": 228.9, - "peak_mib": 6.55 + "median": 229.7, + "lo": 228.0, + "hi": 238.8, + "peak_mib": 6.6 }, "jemalloc": { - "median": 225.7, - "lo": 223.3, - "hi": 227.3, + "median": 234.4, + "lo": 228.8, + "hi": 236.6, "peak_mib": 4.5 }, "mimalloc": { - "median": 225.6, - "lo": 223.7, - "hi": 227.7, + "median": 233.6, + "lo": 226.9, + "hi": 236.8, "peak_mib": 4.55 }, "snmalloc": { - "median": 225.3, - "lo": 222.5, - "hi": 226.9, + "median": 232.1, + "lo": 226.9, + "hi": 236.5, "peak_mib": 4.0 }, "system": { - "median": 218.6, - "lo": 217.7, - "hi": 219.2, - "peak_mib": 4.1 + "median": 225.9, + "lo": 221.7, + "hi": 229.8, + "peak_mib": 4.2 } } } @@ -8434,34 +8434,34 @@ "unit": "Mmsg/s", "results": { "bcmalloc": { - "median": 4.584, - "lo": 4.564, - "hi": 4.591, - "peak_mib": 5.9 + "median": 4.483, + "lo": 4.458, + "hi": 4.504, + "peak_mib": 7.0 }, "jemalloc": { - "median": 4.456, - "lo": 4.438, - "hi": 4.468, - "peak_mib": 5.15 + "median": 4.429, + "lo": 4.415, + "hi": 4.497, + "peak_mib": 5.3 }, "mimalloc": { - "median": 4.127, - "lo": 4.113, - "hi": 4.154, - "peak_mib": 4.15 + "median": 4.078, + "lo": 4.052, + "hi": 4.152, + "peak_mib": 4.2 }, "snmalloc": { - "median": 4.481, - "lo": 4.452, - "hi": 4.485, - "peak_mib": 3.7 + "median": 4.416, + "lo": 4.39, + "hi": 4.466, + "peak_mib": 3.8 }, "system": { - "median": 4.042, - "lo": 4.002, - "hi": 4.059, - "peak_mib": 3.4 + "median": 4.017, + "lo": 3.977, + "hi": 4.06, + "peak_mib": 3.6 } } }, @@ -8469,48 +8469,320 @@ "unit": "Mmsg/s", "results": { "bcmalloc": { - "median": 4.594, - "lo": 4.574, - "hi": 4.608, - "peak_mib": 5.9 + "median": 4.515, + "lo": 4.476, + "hi": 4.544, + "peak_mib": 7.0 }, "jemalloc": { - "median": 4.421, - "lo": 4.377, - "hi": 4.427, - "peak_mib": 5.15 + "median": 4.38, + "lo": 4.359, + "hi": 4.408, + "peak_mib": 5.3 }, "mimalloc": { - "median": 4.142, - "lo": 4.135, - "hi": 4.169, - "peak_mib": 4.15 + "median": 4.104, + "lo": 4.052, + "hi": 4.119, + "peak_mib": 4.2 }, "snmalloc": { - "median": 4.444, - "lo": 4.432, - "hi": 4.458, - "peak_mib": 3.7 + "median": 4.405, + "lo": 4.36, + "hi": 4.433, + "peak_mib": 3.8 }, "system": { - "median": 4.045, - "lo": 4.024, - "hi": 4.06, - "peak_mib": 3.4 + "median": 4.033, + "lo": 3.957, + "hi": 4.076, + "peak_mib": 3.6 } } } } - } - ] - }, - { - "suite": "apps", - "machine": "linux", - "description": "AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 7.0.0", - "date": "2026-11-14", - "samples": 10, - "baseline": "mimalloc", + }, + { + "group": "apps", + "name": "kv store", + "lower": false, + "size": false, + "primary": "warm", + "metrics": { + "cold": { + "unit": "ops/s", + "results": { + "bcmalloc": { + "median": 248400.0, + "lo": 246100.0, + "hi": 252000.0, + "peak_mib": 622.0 + }, + "jemalloc": { + "median": 239800.0, + "lo": 238400.0, + "hi": 241500.0, + "peak_mib": 686.4 + }, + "mimalloc": { + "median": 244400.0, + "lo": 242900.0, + "hi": 246300.0, + "peak_mib": 719.5 + }, + "snmalloc": { + "median": 248800.0, + "lo": 246200.0, + "hi": 250600.0, + "peak_mib": 795.7 + }, + "system": { + "median": 243500.0, + "lo": 241000.0, + "hi": 244700.0, + "peak_mib": 669.2 + } + } + }, + "warm": { + "unit": "ops/s", + "results": { + "bcmalloc": { + "median": 246200.0, + "lo": 242700.0, + "hi": 249000.0, + "peak_mib": 622.0 + }, + "jemalloc": { + "median": 246900.0, + "lo": 245600.0, + "hi": 248700.0, + "peak_mib": 686.4 + }, + "mimalloc": { + "median": 246000.0, + "lo": 245300.0, + "hi": 246800.0, + "peak_mib": 719.5 + }, + "snmalloc": { + "median": 249500.0, + "lo": 248500.0, + "hi": 250300.0, + "peak_mib": 795.7 + }, + "system": { + "median": 244400.0, + "lo": 242600.0, + "hi": 245200.0, + "peak_mib": 669.2 + } + } + } + } + }, + { + "group": "apps", + "name": "http many", + "lower": false, + "size": false, + "primary": "warm", + "metrics": { + "cold": { + "unit": "req/s", + "results": { + "bcmalloc": { + "median": 150500.0, + "lo": 149900.0, + "hi": 151700.0, + "peak_mib": 44.4 + }, + "jemalloc": { + "median": 148700.0, + "lo": 146700.0, + "hi": 151100.0, + "peak_mib": 32.0 + }, + "mimalloc": { + "median": 147500.0, + "lo": 146800.0, + "hi": 148200.0, + "peak_mib": 43.0 + }, + "snmalloc": { + "median": 151000.0, + "lo": 149600.0, + "hi": 151600.0, + "peak_mib": 33.8 + }, + "system": { + "median": 147800.0, + "lo": 145500.0, + "hi": 148400.0, + "peak_mib": 35.3 + } + } + }, + "p99": { + "unit": "us", + "results": { + "bcmalloc": { + "median": 2050.0, + "lo": 2027.0, + "hi": 2086.0, + "peak_mib": 44.4 + }, + "jemalloc": { + "median": 2081.0, + "lo": 2039.0, + "hi": 2127.0, + "peak_mib": 32.0 + }, + "mimalloc": { + "median": 2133.0, + "lo": 2115.0, + "hi": 2175.0, + "peak_mib": 43.0 + }, + "snmalloc": { + "median": 2070.0, + "lo": 2015.0, + "hi": 2131.0, + "peak_mib": 33.8 + }, + "system": { + "median": 2138.0, + "lo": 2108.0, + "hi": 2177.0, + "peak_mib": 35.3 + } + } + }, + "warm": { + "unit": "req/s", + "results": { + "bcmalloc": { + "median": 151800.0, + "lo": 151200.0, + "hi": 152400.0, + "peak_mib": 44.4 + }, + "jemalloc": { + "median": 150600.0, + "lo": 148600.0, + "hi": 152100.0, + "peak_mib": 32.0 + }, + "mimalloc": { + "median": 148300.0, + "lo": 148100.0, + "hi": 148400.0, + "peak_mib": 43.0 + }, + "snmalloc": { + "median": 151500.0, + "lo": 149800.0, + "hi": 152400.0, + "peak_mib": 33.8 + }, + "system": { + "median": 148600.0, + "lo": 147700.0, + "hi": 149800.0, + "peak_mib": 35.3 + } + } + } + } + }, + { + "group": "apps", + "name": "rayon", + "lower": false, + "size": false, + "primary": "warm", + "metrics": { + "cold": { + "unit": "records/s", + "results": { + "bcmalloc": { + "median": 2741000.0, + "lo": 2676000.0, + "hi": 2757000.0, + "peak_mib": 1347.0 + }, + "jemalloc": { + "median": 2493000.0, + "lo": 2402000.0, + "hi": 2583000.0, + "peak_mib": 1350.0 + }, + "mimalloc": { + "median": 2402000.0, + "lo": 2352000.0, + "hi": 2447000.0, + "peak_mib": 1369.0 + }, + "snmalloc": { + "median": 3691000.0, + "lo": 3609000.0, + "hi": 3741000.0, + "peak_mib": 1473.0 + }, + "system": { + "median": 2356000.0, + "lo": 2338000.0, + "hi": 2390000.0, + "peak_mib": 1241.0 + } + } + }, + "warm": { + "unit": "records/s", + "results": { + "bcmalloc": { + "median": 2985000.0, + "lo": 2955000.0, + "hi": 3031000.0, + "peak_mib": 1347.0 + }, + "jemalloc": { + "median": 2717000.0, + "lo": 2466000.0, + "hi": 2764000.0, + "peak_mib": 1350.0 + }, + "mimalloc": { + "median": 2680000.0, + "lo": 2650000.0, + "hi": 2713000.0, + "peak_mib": 1369.0 + }, + "snmalloc": { + "median": 3484000.0, + "lo": 3429000.0, + "hi": 3549000.0, + "peak_mib": 1473.0 + }, + "system": { + "median": 2570000.0, + "lo": 2510000.0, + "hi": 2624000.0, + "peak_mib": 1241.0 + } + } + } + } + } + ] + }, + { + "suite": "apps", + "machine": "linux", + "description": "AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 6.8.0", + "date": "2026-11-14", + "samples": 10, + "baseline": "mimalloc", "allocators": [ "system", "bcmalloc", @@ -8530,34 +8802,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 192.6, - "lo": 192.3, - "hi": 193.3, - "peak_mib": 60.8 + "median": 189.7, + "lo": 189.6, + "hi": 190.3, + "peak_mib": 61.0 }, "jemalloc": { - "median": 166.8, - "lo": 166.6, - "hi": 167.5, - "peak_mib": 60.0 + "median": 163.0, + "lo": 162.4, + "hi": 163.5, + "peak_mib": 59.5 }, "mimalloc": { - "median": 185.3, - "lo": 184.2, - "hi": 186.3, - "peak_mib": 107.9 + "median": 178.3, + "lo": 177.9, + "hi": 179.7, + "peak_mib": 108.1 }, "snmalloc": { - "median": 177.0, - "lo": 176.3, - "hi": 177.9, - "peak_mib": 61.1 + "median": 171.7, + "lo": 171.3, + "hi": 172.4, + "peak_mib": 61.5 }, "system": { - "median": 127.8, - "lo": 127.3, - "hi": 128.0, - "peak_mib": 58.15 + "median": 124.2, + "lo": 123.6, + "hi": 124.7, + "peak_mib": 58.2 } } }, @@ -8565,34 +8837,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 193.4, - "lo": 193.1, - "hi": 193.9, - "peak_mib": 60.8 + "median": 190.6, + "lo": 189.7, + "hi": 191.3, + "peak_mib": 61.0 }, "jemalloc": { - "median": 171.3, - "lo": 169.9, - "hi": 171.7, - "peak_mib": 60.0 + "median": 167.6, + "lo": 167.1, + "hi": 168.3, + "peak_mib": 59.5 }, "mimalloc": { - "median": 188.1, - "lo": 186.6, - "hi": 188.3, - "peak_mib": 107.9 + "median": 178.4, + "lo": 178.2, + "hi": 179.2, + "peak_mib": 108.1 }, "snmalloc": { - "median": 182.1, - "lo": 181.3, - "hi": 183.2, - "peak_mib": 61.1 + "median": 176.4, + "lo": 176.0, + "hi": 176.8, + "peak_mib": 61.5 }, "system": { - "median": 131.2, - "lo": 130.7, - "hi": 131.4, - "peak_mib": 58.15 + "median": 127.4, + "lo": 127.1, + "hi": 128.0, + "peak_mib": 58.2 } } } @@ -8609,34 +8881,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 1048.0, - "lo": 1047.0, - "hi": 1049.0, - "peak_mib": 26.75 + "median": 1049.0, + "lo": 1048.0, + "hi": 1050.0, + "peak_mib": 29.2 }, "jemalloc": { - "median": 1025.0, - "lo": 1024.0, - "hi": 1026.0, - "peak_mib": 22.85 + "median": 1019.0, + "lo": 1016.0, + "hi": 1020.0, + "peak_mib": 22.0 }, "mimalloc": { "median": 1039.0, - "lo": 1036.0, - "hi": 1043.0, - "peak_mib": 36.9 + "lo": 1037.0, + "hi": 1040.0, + "peak_mib": 37.1 }, "snmalloc": { "median": 1036.0, - "lo": 1035.0, + "lo": 1034.0, "hi": 1038.0, - "peak_mib": 24.1 + "peak_mib": 24.2 }, "system": { - "median": 978.5, - "lo": 976.6, - "hi": 979.2, - "peak_mib": 17.7 + "median": 980.8, + "lo": 977.1, + "hi": 982.5, + "peak_mib": 17.95 } } }, @@ -8644,34 +8916,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 1049.0, - "lo": 1048.0, - "hi": 1050.0, - "peak_mib": 26.75 + "median": 1051.0, + "lo": 1050.0, + "hi": 1053.0, + "peak_mib": 29.2 }, "jemalloc": { - "median": 1034.0, - "lo": 1033.0, - "hi": 1036.0, - "peak_mib": 22.85 + "median": 1028.0, + "lo": 1024.0, + "hi": 1031.0, + "peak_mib": 22.0 }, "mimalloc": { - "median": 1039.0, - "lo": 1036.0, - "hi": 1041.0, - "peak_mib": 36.9 + "median": 1036.0, + "lo": 1035.0, + "hi": 1037.0, + "peak_mib": 37.1 }, "snmalloc": { "median": 1045.0, - "lo": 1044.0, + "lo": 1043.0, "hi": 1047.0, - "peak_mib": 24.1 + "peak_mib": 24.2 }, "system": { - "median": 986.9, - "lo": 985.3, - "hi": 988.0, - "peak_mib": 17.7 + "median": 989.3, + "lo": 987.9, + "hi": 992.2, + "peak_mib": 17.95 } } } @@ -8688,34 +8960,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 10.59, - "lo": 10.57, - "hi": 10.62, - "peak_mib": 74.45 + "median": 10.54, + "lo": 10.49, + "hi": 10.56, + "peak_mib": 74.7 }, "jemalloc": { - "median": 8.876, - "lo": 8.836, - "hi": 8.944, - "peak_mib": 94.15 + "median": 8.837, + "lo": 8.794, + "hi": 8.865, + "peak_mib": 96.6 }, "mimalloc": { - "median": 9.976, - "lo": 9.886, - "hi": 10.06, - "peak_mib": 110.4 + "median": 9.721, + "lo": 9.7, + "hi": 9.823, + "peak_mib": 110.6 }, "snmalloc": { - "median": 9.432, - "lo": 9.425, - "hi": 9.483, - "peak_mib": 75.3 + "median": 9.41, + "lo": 9.395, + "hi": 9.425, + "peak_mib": 75.35 }, "system": { - "median": 7.017, - "lo": 6.99, - "hi": 7.026, - "peak_mib": 64.45 + "median": 6.96, + "lo": 6.932, + "hi": 6.983, + "peak_mib": 64.8 } } }, @@ -8723,34 +8995,34 @@ "unit": "MB/s", "results": { "bcmalloc": { - "median": 10.62, - "lo": 10.58, - "hi": 10.65, - "peak_mib": 74.45 + "median": 10.58, + "lo": 10.53, + "hi": 10.6, + "peak_mib": 74.7 }, "jemalloc": { - "median": 9.122, - "lo": 9.091, - "hi": 9.163, - "peak_mib": 94.15 + "median": 9.053, + "lo": 9.04, + "hi": 9.129, + "peak_mib": 96.6 }, "mimalloc": { - "median": 10.02, - "lo": 9.952, - "hi": 10.03, - "peak_mib": 110.4 + "median": 9.85, + "lo": 9.806, + "hi": 9.884, + "peak_mib": 110.6 }, "snmalloc": { - "median": 9.673, - "lo": 9.665, - "hi": 9.732, - "peak_mib": 75.3 + "median": 9.672, + "lo": 9.657, + "hi": 9.687, + "peak_mib": 75.35 }, "system": { - "median": 7.165, - "lo": 7.146, - "hi": 7.176, - "peak_mib": 64.45 + "median": 7.109, + "lo": 7.077, + "hi": 7.132, + "peak_mib": 64.8 } } } @@ -8767,34 +9039,34 @@ "unit": "kreq/s", "results": { "bcmalloc": { - "median": 122.2, - "lo": 121.4, - "hi": 122.9, - "peak_mib": 5.5 + "median": 120.7, + "lo": 120.2, + "hi": 121.1, + "peak_mib": 6.0 }, "jemalloc": { - "median": 121.6, - "lo": 120.8, - "hi": 122.2, - "peak_mib": 5.65 + "median": 119.3, + "lo": 118.8, + "hi": 120.1, + "peak_mib": 5.8 }, "mimalloc": { - "median": 115.6, - "lo": 115.1, - "hi": 116.3, - "peak_mib": 14.1 + "median": 113.5, + "lo": 113.1, + "hi": 114.3, + "peak_mib": 14.4 }, "snmalloc": { - "median": 118.2, - "lo": 117.7, - "hi": 118.7, - "peak_mib": 6.8 + "median": 117.7, + "lo": 117.5, + "hi": 118.4, + "peak_mib": 7.0 }, "system": { - "median": 101.1, - "lo": 100.8, - "hi": 101.8, - "peak_mib": 4.0 + "median": 100.5, + "lo": 100.1, + "hi": 100.6, + "peak_mib": 4.2 } } }, @@ -8802,34 +9074,34 @@ "unit": "kreq/s", "results": { "bcmalloc": { - "median": 122.6, - "lo": 122.1, - "hi": 122.9, - "peak_mib": 5.5 + "median": 120.9, + "lo": 120.6, + "hi": 121.4, + "peak_mib": 6.0 }, "jemalloc": { - "median": 120.6, - "lo": 120.2, - "hi": 121.1, - "peak_mib": 5.65 + "median": 118.8, + "lo": 118.5, + "hi": 119.0, + "peak_mib": 5.8 }, "mimalloc": { - "median": 115.6, - "lo": 115.4, - "hi": 115.9, - "peak_mib": 14.1 + "median": 114.2, + "lo": 113.4, + "hi": 114.3, + "peak_mib": 14.4 }, "snmalloc": { - "median": 118.1, - "lo": 117.7, - "hi": 118.4, - "peak_mib": 6.8 + "median": 117.3, + "lo": 117.1, + "hi": 117.8, + "peak_mib": 7.0 }, "system": { - "median": 101.2, - "lo": 100.8, - "hi": 101.7, - "peak_mib": 4.0 + "median": 100.7, + "lo": 99.98, + "hi": 101.1, + "peak_mib": 4.2 } } } @@ -8846,34 +9118,34 @@ "unit": "Mmsg/s", "results": { "bcmalloc": { - "median": 1.876, - "lo": 1.871, - "hi": 1.886, - "peak_mib": 5.7 + "median": 1.873, + "lo": 1.855, + "hi": 1.9, + "peak_mib": 5.9 }, "jemalloc": { - "median": 1.925, - "lo": 1.912, - "hi": 1.972, - "peak_mib": 6.15 + "median": 2.015, + "lo": 2.0, + "hi": 2.026, + "peak_mib": 6.2 }, "mimalloc": { - "median": 1.424, - "lo": 1.402, - "hi": 1.442, - "peak_mib": 10.15 + "median": 1.462, + "lo": 1.442, + "hi": 1.485, + "peak_mib": 10.4 }, "snmalloc": { - "median": 1.748, - "lo": 1.744, - "hi": 1.757, - "peak_mib": 6.3 + "median": 1.775, + "lo": 1.758, + "hi": 1.854, + "peak_mib": 6.8 }, "system": { - "median": 1.229, - "lo": 1.227, - "hi": 1.231, - "peak_mib": 4.3 + "median": 1.215, + "lo": 1.211, + "hi": 1.23, + "peak_mib": 4.35 } } }, @@ -8881,34 +9153,306 @@ "unit": "Mmsg/s", "results": { "bcmalloc": { - "median": 1.883, - "lo": 1.875, - "hi": 1.9, - "peak_mib": 5.7 + "median": 1.884, + "lo": 1.88, + "hi": 1.897, + "peak_mib": 5.9 }, "jemalloc": { - "median": 1.926, - "lo": 1.909, - "hi": 1.964, - "peak_mib": 6.15 + "median": 2.003, + "lo": 1.989, + "hi": 2.015, + "peak_mib": 6.2 }, "mimalloc": { - "median": 1.406, - "lo": 1.385, - "hi": 1.412, - "peak_mib": 10.15 + "median": 1.447, + "lo": 1.433, + "hi": 1.463, + "peak_mib": 10.4 }, "snmalloc": { - "median": 1.753, - "lo": 1.743, - "hi": 1.771, - "peak_mib": 6.3 + "median": 1.776, + "lo": 1.75, + "hi": 1.81, + "peak_mib": 6.8 }, "system": { - "median": 1.223, - "lo": 1.222, - "hi": 1.227, - "peak_mib": 4.3 + "median": 1.209, + "lo": 1.205, + "hi": 1.212, + "peak_mib": 4.35 + } + } + } + } + }, + { + "group": "apps", + "name": "kv store", + "lower": false, + "size": false, + "primary": "warm", + "metrics": { + "cold": { + "unit": "ops/s", + "results": { + "bcmalloc": { + "median": 62840.0, + "lo": 61710.0, + "hi": 65500.0, + "peak_mib": 620.9 + }, + "jemalloc": { + "median": 61220.0, + "lo": 58260.0, + "hi": 70990.0, + "peak_mib": 1036.0 + }, + "mimalloc": { + "median": 61370.0, + "lo": 56440.0, + "hi": 62830.0, + "peak_mib": 723.1 + }, + "snmalloc": { + "median": 60950.0, + "lo": 58230.0, + "hi": 63130.0, + "peak_mib": 786.8 + }, + "system": { + "median": 56760.0, + "lo": 54690.0, + "hi": 59530.0, + "peak_mib": 529.1 + } + } + }, + "warm": { + "unit": "ops/s", + "results": { + "bcmalloc": { + "median": 62920.0, + "lo": 59540.0, + "hi": 63990.0, + "peak_mib": 620.9 + }, + "jemalloc": { + "median": 62130.0, + "lo": 58410.0, + "hi": 65630.0, + "peak_mib": 1036.0 + }, + "mimalloc": { + "median": 62480.0, + "lo": 60490.0, + "hi": 63430.0, + "peak_mib": 723.1 + }, + "snmalloc": { + "median": 63040.0, + "lo": 59680.0, + "hi": 64880.0, + "peak_mib": 786.8 + }, + "system": { + "median": 60990.0, + "lo": 59060.0, + "hi": 63340.0, + "peak_mib": 529.1 + } + } + } + } + }, + { + "group": "apps", + "name": "http many", + "lower": false, + "size": false, + "primary": "warm", + "metrics": { + "cold": { + "unit": "req/s", + "results": { + "bcmalloc": { + "median": 323300.0, + "lo": 320500.0, + "hi": 325200.0, + "peak_mib": 40.6 + }, + "jemalloc": { + "median": 304900.0, + "lo": 302800.0, + "hi": 306700.0, + "peak_mib": 27.05 + }, + "mimalloc": { + "median": 288100.0, + "lo": 287300.0, + "hi": 290400.0, + "peak_mib": 52.7 + }, + "snmalloc": { + "median": 307800.0, + "lo": 305800.0, + "hi": 311800.0, + "peak_mib": 30.0 + }, + "system": { + "median": 141300.0, + "lo": 140000.0, + "hi": 142100.0, + "peak_mib": 22.8 + } + } + }, + "p99": { + "unit": "us", + "results": { + "bcmalloc": { + "median": 1334.0, + "lo": 1317.0, + "hi": 1360.0, + "peak_mib": 40.6 + }, + "jemalloc": { + "median": 1431.0, + "lo": 1412.0, + "hi": 1441.0, + "peak_mib": 27.05 + }, + "mimalloc": { + "median": 1502.0, + "lo": 1481.0, + "hi": 1514.0, + "peak_mib": 52.7 + }, + "snmalloc": { + "median": 1410.0, + "lo": 1390.0, + "hi": 1414.0, + "peak_mib": 30.0 + }, + "system": { + "median": 3454.0, + "lo": 3413.0, + "hi": 3464.0, + "peak_mib": 22.8 + } + } + }, + "warm": { + "unit": "req/s", + "results": { + "bcmalloc": { + "median": 324200.0, + "lo": 322700.0, + "hi": 326000.0, + "peak_mib": 40.6 + }, + "jemalloc": { + "median": 304200.0, + "lo": 302400.0, + "hi": 305100.0, + "peak_mib": 27.05 + }, + "mimalloc": { + "median": 293300.0, + "lo": 291900.0, + "hi": 295200.0, + "peak_mib": 52.7 + }, + "snmalloc": { + "median": 309200.0, + "lo": 307800.0, + "hi": 312000.0, + "peak_mib": 30.0 + }, + "system": { + "median": 140100.0, + "lo": 138600.0, + "hi": 141600.0, + "peak_mib": 22.8 + } + } + } + } + }, + { + "group": "apps", + "name": "rayon", + "lower": false, + "size": false, + "primary": "warm", + "metrics": { + "cold": { + "unit": "records/s", + "results": { + "bcmalloc": { + "median": 2303000.0, + "lo": 2288000.0, + "hi": 2310000.0, + "peak_mib": 1413.0 + }, + "jemalloc": { + "median": 1443000.0, + "lo": 1436000.0, + "hi": 1458000.0, + "peak_mib": 1494.0 + }, + "mimalloc": { + "median": 1488000.0, + "lo": 1479000.0, + "hi": 1498000.0, + "peak_mib": 1856.0 + }, + "snmalloc": { + "median": 1695000.0, + "lo": 1686000.0, + "hi": 1699000.0, + "peak_mib": 1626.0 + }, + "system": { + "median": 944900.0, + "lo": 936900.0, + "hi": 968000.0, + "peak_mib": 1616.0 + } + } + }, + "warm": { + "unit": "records/s", + "results": { + "bcmalloc": { + "median": 2344000.0, + "lo": 2328000.0, + "hi": 2361000.0, + "peak_mib": 1413.0 + }, + "jemalloc": { + "median": 1533000.0, + "lo": 1518000.0, + "hi": 1549000.0, + "peak_mib": 1494.0 + }, + "mimalloc": { + "median": 1538000.0, + "lo": 1527000.0, + "hi": 1543000.0, + "peak_mib": 1856.0 + }, + "snmalloc": { + "median": 1773000.0, + "lo": 1759000.0, + "hi": 1782000.0, + "peak_mib": 1626.0 + }, + "system": { + "median": 690500.0, + "lo": 676500.0, + "hi": 722100.0, + "peak_mib": 1616.0 } } } @@ -8921,7 +9465,7 @@ "machine": "linux", "description": "AMD EPYC 9354P 32-Core Processor, Ubuntu 24.04.2 LTS, Linux 6.8.0", "date": "2026-11-14", - "samples": 3, + "samples": 10, "baseline": "mimalloc", "allocators": [ "bcmalloc", @@ -8941,27 +9485,27 @@ "unit": "s", "results": { "bcmalloc": { - "median": 3.25, - "lo": 3.23, - "hi": 3.26, + "median": 3.19, + "lo": 3.176, + "hi": 3.204, "peak_mib": 3.25 }, "jemalloc": { - "median": 3.27, - "lo": 3.27, - "hi": 3.29, + "median": 3.286, + "lo": 3.271, + "hi": 3.291, "peak_mib": 5.25 }, "mimalloc": { - "median": 3.24, - "lo": 3.24, - "hi": 3.24, - "peak_mib": 4.418 + "median": 3.249, + "lo": 3.246, + "hi": 3.267, + "peak_mib": 4.668 }, "snmalloc": { - "median": 3.16, - "lo": 3.14, - "hi": 3.16, + "median": 3.154, + "lo": 3.137, + "hi": 3.181, "peak_mib": 3.5 } } @@ -8979,27 +9523,27 @@ "unit": "s", "results": { "bcmalloc": { - "median": 3.47, - "lo": 3.45, + "median": 3.45, + "lo": 3.435, "hi": 3.48, "peak_mib": 3.75 }, "jemalloc": { - "median": 3.54, - "lo": 3.54, - "hi": 3.54, + "median": 3.545, + "lo": 3.534, + "hi": 3.568, "peak_mib": 6.25 }, "mimalloc": { - "median": 3.47, - "lo": 3.47, - "hi": 3.48, + "median": 3.482, + "lo": 3.474, + "hi": 3.487, "peak_mib": 10.42 }, "snmalloc": { - "median": 3.42, + "median": 3.425, "lo": 3.42, - "hi": 3.42, + "hi": 3.429, "peak_mib": 4.5 } } @@ -9017,28 +9561,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 2.17, - "lo": 2.17, - "hi": 2.18, + "median": 2.176, + "lo": 2.173, + "hi": 4.685, "peak_mib": 63.46 }, "jemalloc": { - "median": 2.25, - "lo": 2.25, - "hi": 2.26, - "peak_mib": 59.5 + "median": 2.264, + "lo": 2.259, + "hi": 2.268, + "peak_mib": 59.75 }, "mimalloc": { - "median": 2.21, - "lo": 2.21, - "hi": 2.21, + "median": 2.214, + "lo": 2.211, + "hi": 2.223, "peak_mib": 67.53 }, "snmalloc": { - "median": 2.26, - "lo": 2.25, - "hi": 2.26, - "peak_mib": 58.25 + "median": 2.263, + "lo": 2.258, + "hi": 2.267, + "peak_mib": 58.0 } } } @@ -9055,27 +9599,27 @@ "unit": "s", "results": { "bcmalloc": { - "median": 3.319, - "lo": 3.2, - "hi": 3.339, + "median": 3.24, + "lo": 3.16, + "hi": 3.36, "peak_mib": 11.16 }, "jemalloc": { - "median": 3.74, - "lo": 3.72, - "hi": 3.839, + "median": 3.75, + "lo": 3.7, + "hi": 3.78, "peak_mib": 10.0 }, "mimalloc": { - "median": 3.42, + "median": 3.51, "lo": 3.42, - "hi": 3.58, + "hi": 3.7, "peak_mib": 20.09 }, "snmalloc": { - "median": 3.12, - "lo": 3.099, - "hi": 3.379, + "median": 3.14, + "lo": 3.1, + "hi": 3.36, "peak_mib": 8.0 } } @@ -9093,28 +9637,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 1.071, - "lo": 1.07, - "hi": 1.071, - "peak_mib": 342.1 + "median": 1.031, + "lo": 1.011, + "hi": 1.051, + "peak_mib": 350.6 }, "jemalloc": { - "median": 1.29, - "lo": 1.271, - "hi": 1.291, - "peak_mib": 260.0 + "median": 1.276, + "lo": 1.261, + "hi": 1.307, + "peak_mib": 260.4 }, "mimalloc": { - "median": 1.167, - "lo": 1.161, - "hi": 1.178, - "peak_mib": 306.5 + "median": 1.175, + "lo": 1.149, + "hi": 1.201, + "peak_mib": 306.9 }, "snmalloc": { - "median": 1.219, - "lo": 1.187, - "hi": 1.229, - "peak_mib": 415.8 + "median": 1.216, + "lo": 1.203, + "hi": 1.224, + "peak_mib": 415.0 } } } @@ -9131,28 +9675,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 1.03, - "lo": 1.022, - "hi": 1.038, - "peak_mib": 347.9 + "median": 0.9875, + "lo": 0.977, + "hi": 1.007, + "peak_mib": 355.0 }, "jemalloc": { - "median": 1.161, - "lo": 1.133, - "hi": 1.163, - "peak_mib": 270.1 + "median": 1.149, + "lo": 1.137, + "hi": 1.167, + "peak_mib": 271.9 }, "mimalloc": { - "median": 1.126, - "lo": 1.113, - "hi": 1.138, - "peak_mib": 310.4 + "median": 1.136, + "lo": 1.117, + "hi": 1.159, + "peak_mib": 308.6 }, "snmalloc": { - "median": 1.183, - "lo": 1.182, - "hi": 1.21, - "peak_mib": 418.0 + "median": 1.201, + "lo": 1.177, + "hi": 1.211, + "peak_mib": 413.6 } } } @@ -9169,28 +9713,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.67, - "lo": 0.67, - "hi": 0.68, - "peak_mib": 598.2 + "median": 0.6909, + "lo": 0.673, + "hi": 0.7193, + "peak_mib": 606.2 }, "jemalloc": { - "median": 1.23, - "lo": 1.23, - "hi": 1.23, - "peak_mib": 511.0 + "median": 1.243, + "lo": 1.238, + "hi": 1.249, + "peak_mib": 532.1 }, "mimalloc": { - "median": 0.63, - "lo": 0.62, - "hi": 0.63, - "peak_mib": 1030.0 + "median": 0.6371, + "lo": 0.6333, + "hi": 0.6471, + "peak_mib": 1035.0 }, "snmalloc": { - "median": 0.82, - "lo": 0.81, - "hi": 0.86, - "peak_mib": 813.5 + "median": 0.8162, + "lo": 0.7995, + "hi": 0.8259, + "peak_mib": 812.7 } } } @@ -9207,28 +9751,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.199, - "lo": 0.197, - "hi": 0.2, - "peak_mib": 222.8 + "median": 0.1951, + "lo": 0.1915, + "hi": 0.1983, + "peak_mib": 228.1 }, "jemalloc": { - "median": 0.511, - "lo": 0.51, - "hi": 0.514, - "peak_mib": 161.0 + "median": 0.5077, + "lo": 0.4977, + "hi": 0.5171, + "peak_mib": 159.3 }, "mimalloc": { - "median": 0.237, - "lo": 0.228, - "hi": 0.24, - "peak_mib": 236.0 + "median": 0.2259, + "lo": 0.2212, + "hi": 0.2349, + "peak_mib": 225.0 }, "snmalloc": { - "median": 0.215, - "lo": 0.208, - "hi": 0.22, - "peak_mib": 183.0 + "median": 0.2139, + "lo": 0.2055, + "hi": 0.2258, + "peak_mib": 169.4 } } } @@ -9245,27 +9789,27 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.22, - "lo": 0.22, - "hi": 0.22, - "peak_mib": 41.79 + "median": 0.2286, + "lo": 0.2274, + "hi": 0.2294, + "peak_mib": 39.85 }, "jemalloc": { - "median": 0.24, - "lo": 0.24, - "hi": 0.24, - "peak_mib": 36.75 + "median": 0.246, + "lo": 0.2457, + "hi": 0.247, + "peak_mib": 37.0 }, "mimalloc": { - "median": 0.23, - "lo": 0.23, - "hi": 0.23, - "peak_mib": 55.29 + "median": 0.2311, + "lo": 0.2297, + "hi": 0.232, + "peak_mib": 55.54 }, "snmalloc": { - "median": 0.24, - "lo": 0.24, - "hi": 0.24, + "median": 0.2492, + "lo": 0.2484, + "hi": 0.2504, "peak_mib": 36.0 } } @@ -9283,27 +9827,27 @@ "unit": "s", "results": { "bcmalloc": { - "median": 2.64, - "lo": 2.64, - "hi": 2.67, - "peak_mib": 14.16 + "median": 2.526, + "lo": 2.522, + "hi": 2.537, + "peak_mib": 16.23 }, "jemalloc": { - "median": 2.58, - "lo": 2.57, - "hi": 2.59, - "peak_mib": 12.75 + "median": 2.584, + "lo": 2.579, + "hi": 2.593, + "peak_mib": 12.88 }, "mimalloc": { - "median": 2.5, - "lo": 2.5, - "hi": 2.52, + "median": 2.527, + "lo": 2.507, + "hi": 2.539, "peak_mib": 16.25 }, "snmalloc": { - "median": 2.59, - "lo": 2.58, - "hi": 2.59, + "median": 2.595, + "lo": 2.586, + "hi": 2.601, "peak_mib": 13.75 } } @@ -9321,28 +9865,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 2.46, - "lo": 2.44, - "hi": 2.47, + "median": 2.344, + "lo": 2.328, + "hi": 2.355, "peak_mib": 15.75 }, "jemalloc": { - "median": 2.33, - "lo": 2.31, - "hi": 2.34, + "median": 2.324, + "lo": 2.317, + "hi": 2.343, "peak_mib": 16.25 }, "mimalloc": { - "median": 2.3, - "lo": 2.28, - "hi": 2.3, - "peak_mib": 60.32 + "median": 2.296, + "lo": 2.29, + "hi": 2.362, + "peak_mib": 60.53 }, "snmalloc": { - "median": 2.31, - "lo": 2.29, - "hi": 2.35, - "peak_mib": 16.25 + "median": 2.309, + "lo": 2.295, + "hi": 2.36, + "peak_mib": 16.0 } } } @@ -9359,28 +9903,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.06, - "lo": 0.06, - "hi": 0.06, - "peak_mib": 280.1 + "median": 0.0601, + "lo": 0.0596, + "hi": 0.0615, + "peak_mib": 281.1 }, "jemalloc": { - "median": 0.09, - "lo": 0.09, - "hi": 0.09, - "peak_mib": 224.3 + "median": 0.0945, + "lo": 0.0925, + "hi": 0.0979, + "peak_mib": 226.8 }, "mimalloc": { - "median": 0.05, - "lo": 0.04, - "hi": 0.05, + "median": 0.0538, + "lo": 0.0528, + "hi": 0.0552, "peak_mib": 226.4 }, "snmalloc": { - "median": 0.08, - "lo": 0.08, - "hi": 0.09, - "peak_mib": 275.0 + "median": 0.08535, + "lo": 0.084, + "hi": 0.087, + "peak_mib": 275.6 } } } @@ -9397,28 +9941,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.17, - "lo": 0.16, - "hi": 0.17, - "peak_mib": 251.3 + "median": 0.1466, + "lo": 0.1446, + "hi": 0.1478, + "peak_mib": 273.9 }, "jemalloc": { - "median": 0.27, - "lo": 0.26, - "hi": 0.28, - "peak_mib": 168.2 + "median": 0.2741, + "lo": 0.2707, + "hi": 0.2757, + "peak_mib": 170.7 }, "mimalloc": { - "median": 0.14, - "lo": 0.14, - "hi": 0.15, + "median": 0.1408, + "lo": 0.1386, + "hi": 0.1433, "peak_mib": 510.5 }, "snmalloc": { - "median": 0.19, - "lo": 0.19, - "hi": 0.19, - "peak_mib": 205.3 + "median": 0.1879, + "lo": 0.1834, + "hi": 0.1936, + "peak_mib": 206.4 } } } @@ -9435,28 +9979,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.191, - "lo": 0.191, - "hi": 0.192, - "peak_mib": 103.0 + "median": 0.1605, + "lo": 0.159, + "hi": 0.163, + "peak_mib": 83.88 }, "jemalloc": { - "median": 0.165, - "lo": 0.163, - "hi": 0.165, - "peak_mib": 141.6 + "median": 0.166, + "lo": 0.162, + "hi": 0.168, + "peak_mib": 147.7 }, "mimalloc": { - "median": 0.216, + "median": 0.217, "lo": 0.213, - "hi": 0.217, + "hi": 0.22, "peak_mib": 66.33 }, "snmalloc": { "median": 0.177, "lo": 0.176, "hi": 0.178, - "peak_mib": 128.3 + "peak_mib": 126.6 } } } @@ -9473,27 +10017,27 @@ "unit": "s", "results": { "bcmalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, - "peak_mib": 4.0 + "median": 1.059, + "lo": 1.059, + "hi": 1.059, + "peak_mib": 4.125 }, "jemalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, + "median": 1.06, + "lo": 1.06, + "hi": 1.06, "peak_mib": 4.5 }, "mimalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, - "peak_mib": 6.246 + "median": 1.059, + "lo": 1.059, + "hi": 1.06, + "peak_mib": 6.25 }, "snmalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, + "median": 1.059, + "lo": 1.059, + "hi": 1.059, "peak_mib": 4.25 } } @@ -9511,27 +10055,27 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, + "median": 0.0371, + "lo": 0.037, + "hi": 0.0372, "peak_mib": 4.0 }, "jemalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, + "median": 0.0382, + "lo": 0.0381, + "hi": 0.0383, "peak_mib": 4.5 }, "mimalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, - "peak_mib": 6.246 + "median": 0.0374, + "lo": 0.0373, + "hi": 0.0376, + "peak_mib": 6.25 }, "snmalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, + "median": 0.0373, + "lo": 0.0372, + "hi": 0.0375, "peak_mib": 3.75 } } @@ -9540,7 +10084,7 @@ }, { "group": "mimalloc-bench", - "name": "glibc-simple", + "name": "cache-thrash1", "lower": true, "size": false, "primary": "time", @@ -9549,28 +10093,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 1.67, - "lo": 1.66, - "hi": 1.7, - "peak_mib": 2.0 + "median": 1.059, + "lo": 1.059, + "hi": 1.059, + "peak_mib": 4.0 }, "jemalloc": { - "median": 1.9, - "lo": 1.9, - "hi": 1.93, - "peak_mib": 4.75 + "median": 1.06, + "lo": 1.06, + "hi": 1.06, + "peak_mib": 4.5 }, "mimalloc": { - "median": 1.59, - "lo": 1.48, - "hi": 1.59, - "peak_mib": 4.152 + "median": 1.059, + "lo": 1.059, + "hi": 1.06, + "peak_mib": 6.25 }, "snmalloc": { - "median": 1.62, - "lo": 1.52, - "hi": 1.62, - "peak_mib": 2.5 + "median": 1.059, + "lo": 1.059, + "hi": 1.059, + "peak_mib": 4.25 } } } @@ -9578,7 +10122,7 @@ }, { "group": "mimalloc-bench", - "name": "glibc-thread", + "name": "cache-thrashN", "lower": true, "size": false, "primary": "time", @@ -9587,28 +10131,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.203, - "lo": 0.202, - "hi": 0.203, - "peak_mib": 10.75 + "median": 0.03695, + "lo": 0.0369, + "hi": 0.0372, + "peak_mib": 4.0 }, "jemalloc": { - "median": 0.205, - "lo": 0.201, - "hi": 0.209, - "peak_mib": 14.75 + "median": 0.0381, + "lo": 0.038, + "hi": 0.0423, + "peak_mib": 4.5 }, "mimalloc": { - "median": 0.199, - "lo": 0.194, - "hi": 0.202, - "peak_mib": 88.45 + "median": 0.0374, + "lo": 0.0373, + "hi": 0.0376, + "peak_mib": 6.25 }, "snmalloc": { - "median": 0.192, - "lo": 0.192, - "hi": 0.193, - "peak_mib": 21.25 + "median": 0.0371, + "lo": 0.037, + "hi": 0.0372, + "peak_mib": 4.0 } } } @@ -9616,7 +10160,7 @@ }, { "group": "mimalloc-bench", - "name": "rocksdb", + "name": "glibc-simple", "lower": true, "size": false, "primary": "time", @@ -9625,28 +10169,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 4.27, - "lo": 4.24, - "hi": 4.27, - "peak_mib": 102.7 + "median": 1.67, + "lo": 1.581, + "hi": 1.707, + "peak_mib": 2.0 }, "jemalloc": { - "median": 4.35, - "lo": 4.31, - "hi": 4.38, - "peak_mib": 102.5 + "median": 1.922, + "lo": 1.882, + "hi": 1.945, + "peak_mib": 4.75 }, "mimalloc": { - "median": 4.13, - "lo": 4.13, - "hi": 4.2, - "peak_mib": 141.9 + "median": 1.586, + "lo": 1.532, + "hi": 1.595, + "peak_mib": 4.156 }, "snmalloc": { - "median": 4.35, - "lo": 4.27, - "hi": 4.45, - "peak_mib": 107.3 + "median": 1.621, + "lo": 1.511, + "hi": 1.628, + "peak_mib": 2.5 } } } @@ -9654,7 +10198,7 @@ }, { "group": "mimalloc-bench", - "name": "leanN", + "name": "glibc-thread", "lower": true, "size": false, "primary": "time", @@ -9663,28 +10207,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 9.1, - "lo": 9.08, - "hi": 9.13, - "peak_mib": 260.4 + "median": 0.2036, + "lo": 0.195, + "hi": 0.2049, + "peak_mib": 10.38 }, "jemalloc": { - "median": 9.28, - "lo": 9.27, - "hi": 9.29, - "peak_mib": 218.9 + "median": 0.2047, + "lo": 0.1982, + "hi": 0.2113, + "peak_mib": 14.5 }, "mimalloc": { - "median": 9.08, - "lo": 9.06, - "hi": 9.12, - "peak_mib": 335.9 + "median": 0.1968, + "lo": 0.19, + "hi": 0.2054, + "peak_mib": 88.44 }, "snmalloc": { - "median": 9.11, - "lo": 9.09, - "hi": 9.14, - "peak_mib": 242.5 + "median": 0.1926, + "lo": 0.1868, + "hi": 0.1961, + "peak_mib": 21.0 } } } @@ -9692,7 +10236,7 @@ }, { "group": "mimalloc-bench", - "name": "linux", + "name": "rocksdb", "lower": true, "size": false, "primary": "time", @@ -9701,28 +10245,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.15, - "lo": 0.15, - "hi": 0.15, - "peak_mib": 18.0 + "median": 4.17, + "lo": 4.143, + "hi": 4.235, + "peak_mib": 102.9 }, "jemalloc": { - "median": 0.16, - "lo": 0.16, - "hi": 0.16, - "peak_mib": 18.5 + "median": 4.358, + "lo": 4.297, + "hi": 4.396, + "peak_mib": 102.7 }, "mimalloc": { - "median": 0.17, - "lo": 0.16, - "hi": 0.17, - "peak_mib": 23.67 + "median": 4.191, + "lo": 4.146, + "hi": 4.278, + "peak_mib": 141.9 }, "snmalloc": { - "median": 0.15, - "lo": 0.15, - "hi": 0.15, - "peak_mib": 18.5 + "median": 4.373, + "lo": 4.256, + "hi": 4.42, + "peak_mib": 107.0 } } } @@ -9730,7 +10274,7 @@ }, { "group": "mimalloc-bench", - "name": "malloc-large", + "name": "leanN", "lower": true, "size": false, "primary": "time", @@ -9739,28 +10283,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 1.42, - "lo": 1.38, - "hi": 1.42, - "peak_mib": 579.6 + "median": 9.17, + "lo": 9.072, + "hi": 9.223, + "peak_mib": 261.6 }, "jemalloc": { - "median": 14.42, - "lo": 14.35, - "hi": 14.76, - "peak_mib": 429.6 + "median": 9.287, + "lo": 9.238, + "hi": 9.32, + "peak_mib": 219.6 }, "mimalloc": { - "median": 1.4, - "lo": 1.37, - "hi": 1.42, - "peak_mib": 588.1 + "median": 9.107, + "lo": 9.061, + "hi": 9.138, + "peak_mib": 339.3 }, "snmalloc": { - "median": 3.56, - "lo": 3.55, - "hi": 3.57, - "peak_mib": 650.5 + "median": 9.125, + "lo": 9.077, + "hi": 9.16, + "peak_mib": 241.4 } } } @@ -9768,7 +10312,7 @@ }, { "group": "mimalloc-bench", - "name": "mleak10", + "name": "linux", "lower": true, "size": false, "primary": "time", @@ -9777,28 +10321,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.15, - "lo": 0.14, - "hi": 0.15, - "peak_mib": 1.992 + "median": 9.082, + "lo": 8.767, + "hi": 9.197, + "peak_mib": 171.9 }, "jemalloc": { - "median": 0.16, - "lo": 0.16, - "hi": 0.16, - "peak_mib": 4.75 + "median": 11.01, + "lo": 10.74, + "hi": 11.27, + "peak_mib": 167.3 }, "mimalloc": { - "median": 0.15, - "lo": 0.15, - "hi": 0.15, - "peak_mib": 4.156 + "median": 9.625, + "lo": 9.168, + "hi": 10.12, + "peak_mib": 187.2 }, "snmalloc": { - "median": 0.14, - "lo": 0.14, - "hi": 0.15, - "peak_mib": 2.5 + "median": 9.689, + "lo": 9.103, + "hi": 10.0, + "peak_mib": 165.8 } } } @@ -9806,7 +10350,7 @@ }, { "group": "mimalloc-bench", - "name": "mleak100", + "name": "malloc-large", "lower": true, "size": false, "primary": "time", @@ -9815,28 +10359,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 1.5, - "lo": 1.46, - "hi": 1.5, - "peak_mib": 2.0 + "median": 1.401, + "lo": 1.384, + "hi": 1.438, + "peak_mib": 579.6 }, "jemalloc": { - "median": 1.61, - "lo": 1.59, - "hi": 1.63, - "peak_mib": 4.75 + "median": 14.53, + "lo": 14.38, + "hi": 14.84, + "peak_mib": 429.6 }, "mimalloc": { - "median": 1.5, - "lo": 1.5, - "hi": 1.52, - "peak_mib": 4.152 + "median": 1.386, + "lo": 1.374, + "hi": 1.443, + "peak_mib": 588.1 }, "snmalloc": { - "median": 1.5, - "lo": 1.5, - "hi": 1.52, - "peak_mib": 2.5 + "median": 3.557, + "lo": 3.506, + "hi": 3.602, + "peak_mib": 658.0 } } } @@ -9844,7 +10388,7 @@ }, { "group": "mimalloc-bench", - "name": "rbstress1", + "name": "mleak10", "lower": true, "size": false, "primary": "time", @@ -9853,28 +10397,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 2.79, - "lo": 2.79, - "hi": 2.8, - "peak_mib": 118.8 + "median": 0.1535, + "lo": 0.1524, + "hi": 0.1541, + "peak_mib": 2.0 }, "jemalloc": { - "median": 2.8, - "lo": 2.78, - "hi": 2.82, - "peak_mib": 119.0 + "median": 0.1686, + "lo": 0.1666, + "hi": 0.1698, + "peak_mib": 4.746 }, "mimalloc": { - "median": 2.82, - "lo": 2.82, - "hi": 2.86, - "peak_mib": 139.2 + "median": 0.1539, + "lo": 0.153, + "hi": 0.1547, + "peak_mib": 4.158 }, "snmalloc": { - "median": 2.82, - "lo": 2.81, - "hi": 2.83, - "peak_mib": 117.3 + "median": 0.1533, + "lo": 0.1519, + "hi": 0.1545, + "peak_mib": 2.5 } } } @@ -9882,7 +10426,7 @@ }, { "group": "mimalloc-bench", - "name": "rbstressN", + "name": "mleak100", "lower": true, "size": false, "primary": "time", @@ -9891,28 +10435,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 3.02, - "lo": 3.02, - "hi": 3.04, - "peak_mib": 163.3 + "median": 1.511, + "lo": 1.487, + "hi": 1.526, + "peak_mib": 2.0 }, "jemalloc": { - "median": 2.99, - "lo": 2.96, - "hi": 3.04, - "peak_mib": 201.3 + "median": 1.634, + "lo": 1.604, + "hi": 1.651, + "peak_mib": 4.5 }, "mimalloc": { - "median": 3.01, - "lo": 2.98, - "hi": 3.07, - "peak_mib": 192.7 + "median": 1.508, + "lo": 1.502, + "hi": 1.518, + "peak_mib": 4.156 }, "snmalloc": { - "median": 3.01, - "lo": 3.0, - "hi": 3.14, - "peak_mib": 209.0 + "median": 1.526, + "lo": 1.501, + "hi": 1.536, + "peak_mib": 2.5 } } } @@ -9920,7 +10464,7 @@ }, { "group": "mimalloc-bench", - "name": "cache-thrash1", + "name": "rbstress1", "lower": true, "size": false, "primary": "time", @@ -9929,28 +10473,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, - "peak_mib": 4.0 + "median": 2.803, + "lo": 2.79, + "hi": 2.821, + "peak_mib": 118.3 }, "jemalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, - "peak_mib": 4.5 + "median": 2.808, + "lo": 2.79, + "hi": 2.829, + "peak_mib": 119.0 }, "mimalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, - "peak_mib": 6.25 + "median": 2.833, + "lo": 2.814, + "hi": 2.976, + "peak_mib": 139.1 }, "snmalloc": { - "median": 1.05, - "lo": 1.05, - "hi": 1.05, - "peak_mib": 4.25 + "median": 2.833, + "lo": 2.811, + "hi": 2.845, + "peak_mib": 119.8 } } } @@ -9958,7 +10502,7 @@ }, { "group": "mimalloc-bench", - "name": "cache-thrashN", + "name": "rbstressN", "lower": true, "size": false, "primary": "time", @@ -9967,28 +10511,28 @@ "unit": "s", "results": { "bcmalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, - "peak_mib": 4.0 + "median": 3.013, + "lo": 2.979, + "hi": 3.238, + "peak_mib": 159.1 }, "jemalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, - "peak_mib": 4.5 + "median": 3.036, + "lo": 2.954, + "hi": 3.127, + "peak_mib": 198.0 }, "mimalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, - "peak_mib": 6.246 + "median": 3.038, + "lo": 2.977, + "hi": 3.085, + "peak_mib": 189.9 }, "snmalloc": { - "median": 0.03, - "lo": 0.03, - "hi": 0.03, - "peak_mib": 4.0 + "median": 3.053, + "lo": 3.021, + "hi": 3.13, + "peak_mib": 209.4 } } } From 9951779401e87cabd2d932bcf3309e7176bd595e Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 08:04:35 -0500 Subject: [PATCH 11/12] Fuzz for the toolchain's host target cargo-fuzz defaults to the target it was built for. The prebuilt cargo-fuzz that CI installs is a musl build, so the smoke test compiled for musl, where the address sanitizer cannot link, and failed on main as well. --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 60e922c..cecc3bd 100644 --- a/justfile +++ b/justfile @@ -54,9 +54,10 @@ coverage *args: loom *args: RUSTFLAGS="--cfg loom" cargo nextest run -p bcmalloc --release --lib loom_test "$@" -# Fuzz one target for a number of seconds. The targets are heap_ops and chunk_ops. +# Fuzz one target for a number of seconds. The targets are heap_ops and chunk_ops. The target triple +# is the toolchain's host, because a prebuilt cargo-fuzz defaults to its own, which on CI is musl. fuzz target='heap_ops' seconds='60': - cargo +nightly fuzz run {{target}} -- -max_total_time={{seconds}} + cargo +nightly fuzz run --target "$(rustc +nightly -vV | sed -n 's/^host: //p')" {{target}} -- -max_total_time={{seconds}} # Build the benchmarks and the held-out programs without running them. bench-build: From 479228064a4a805398e5112b86319ab156cb26dd Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 14 Nov 2026 08:39:32 -0500 Subject: [PATCH 12/12] Run the spill tests on a smaller bin under Miri Their bursts are multiples of the largest bin, 2048 blocks of 64 bytes, and under Miri each took over 20 minutes on CI, past the job's limit. Under Miri they use 256-byte blocks, the largest class that is still reusable anywhere, whose bin holds 512: about two and a half minutes each on an M4. --- crates/bcmalloc/src/heap.rs | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/crates/bcmalloc/src/heap.rs b/crates/bcmalloc/src/heap.rs index cb81262..54d38d5 100644 --- a/crates/bcmalloc/src/heap.rs +++ b/crates/bcmalloc/src/heap.rs @@ -2611,13 +2611,18 @@ mod test { assert_eq!(used(®ion), 0); } + /// The block size of the spill tests. Their bursts are multiples of the class's largest bin, + /// 2048 blocks of 64 bytes, which take Miri many minutes, so under Miri they use the largest + /// class that is still reusable anywhere, whose bin holds 512. + const SPILL_SIZE: usize = if cfg!(miri) { ANYWHERE } else { 64 }; + #[test] fn a_burst_bigger_than_the_bin_spills_and_the_next_burst_takes_it_back() { let test = TestRegion::new(128, 1); let region = test.region(); let heap = region.heap().unwrap(); - let layout = layout(64, 8); - let burst = 4 * Class::for_size(64).bin_max(); + let layout = layout(SPILL_SIZE, 8); + let burst = 4 * Class::for_size(SPILL_SIZE).bin_max(); // Bursts that alternate with refills grow the bin to its largest, and only then does an // overflow spill. for _ in 0..8 { @@ -2642,8 +2647,8 @@ mod test { let test = TestRegion::new(128, 1); let region = test.region(); let heap = region.heap().unwrap(); - let layout = layout(64, 8); - let class = Class::for_size(64); + let layout = layout(SPILL_SIZE, 8); + let class = Class::for_size(SPILL_SIZE); for _ in 0..8 { let blocks = alloc_many(&heap, layout, 4 * class.bin_max()); free_all(&heap, layout, blocks); @@ -2665,15 +2670,15 @@ mod test { let test = TestRegion::new(128, 1); let region = test.region(); let heap = region.heap().unwrap(); - let (layout, other) = (layout(64, 8), layout(1024, 8)); - let class = Class::for_size(64); + let (layout, other) = (layout(SPILL_SIZE, 8), layout(1024, 8)); + let class = Class::for_size(SPILL_SIZE); for _ in 0..8 { let blocks = alloc_many(&heap, layout, 4 * class.bin_max()); free_all(&heap, layout, blocks); } assert!(!heap.data.lists(class).spill.get().is_null()); // Refills of another class run maintenance steps, which return the idle class's batches. - for _ in 0..4 { + for _ in 0..8 { let blocks = alloc_many(&heap, other, 16 * MAINTENANCE_INTERVAL as usize); free_all(&heap, other, blocks); } @@ -2686,10 +2691,10 @@ mod test { let test = TestRegion::new(128, 2); let region = test.region(); let (owner, freer) = (region.heap().unwrap(), region.heap().unwrap()); - // 64-byte blocks may stay in the freeing heap's bin, but that heap never allocates them. - let layout = layout(64, 8); + // These blocks may stay in the freeing heap's bin, but that heap never allocates them. + let layout = layout(SPILL_SIZE, 8); for _ in 0..8 { - let blocks = alloc_many(&owner, layout, 4 * Class::for_size(64).bin_max()); + let blocks = alloc_many(&owner, layout, 4 * Class::for_size(SPILL_SIZE).bin_max()); free_all(&freer, layout, blocks); } freer.validate();