Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ linux-perf-data = { git = "https://github.com/mstange/linux-perf-data.git", rev
] } # unreleased main as of 2026-03-19
debugid = "0.8.0"
memmap2 = "0.9.10"
mimalloc = { workspace = true }
nix = { version = "0.31.3", features = ["fs", "time", "user"] }
futures = "0.3.32"
runner-shared = { path = "crates/runner-shared" }
Expand Down Expand Up @@ -113,6 +114,7 @@ libc = "0.2"
log = "0.4.28"
serde_json = "1.0"
serde = { version = "1.0.228", features = ["derive"] }
mimalloc = "0.1"
ipc-channel = "0.20"
itertools = "0.14.0"
rayon = "1.12"
Expand Down
2 changes: 1 addition & 1 deletion crates/memtrack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ byteorder = "1.5"
rayon = "1.12"
parking_lot = "0.12"
typed-builder = "0.23.2"
mimalloc = { version = "0.1", optional = true }
mimalloc = { workspace = true, optional = true }

[build-dependencies]
libbpf-cargo = { version = "0.26", optional = true }
Expand Down
1 change: 1 addition & 0 deletions crates/runner-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ zstd = "0.13.3"
[dev-dependencies]
divan = { version = "4.2.0", package = "codspeed-divan-compat" }
memmap2 = "0.9.10"
mimalloc = { workspace = true }
rand = "0.8"
tempfile = { workspace = true }

Expand Down
3 changes: 3 additions & 0 deletions crates/runner-shared/benches/memtrack_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ use runner_shared::measurement_mode::MeasurementMode;
use runner_shared::runtime_env::RUNNER_MODE_ENV;
use std::io::Write;

#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

fn main() {
divan::main();
}
Expand Down
3 changes: 2 additions & 1 deletion crates/runner-shared/benches/memtrack_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use runner_shared::artifacts::{
/// there anyway.
#[cfg(not(codspeed))]
#[global_allocator]
static ALLOC: divan::AllocProfiler = divan::AllocProfiler::system();
static ALLOC: divan::AllocProfiler<mimalloc::MiMalloc> =
divan::AllocProfiler::new(mimalloc::MiMalloc);

fn main() {
divan::main();
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// musl's allocator is slow on the many small allocations made when decoding memtrack artifacts.
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

use codspeed_runner::{clean_logger, cli};
use console::style;
use log::log_enabled;
Expand Down
Loading