Repository navigation
Comparing changes
Open a pull request
base repository: CodSpeedHQ/codspeed-rust
base: v5.0.3
head repository: CodSpeedHQ/codspeed-rust
compare: v6.0.0
- 11 commits
- 22 files changed
- 3 contributors
Commits on Oct 20, 2026
-
fix(criterion): avoid duplicate setup in simulation iter_batched
Use the input already prepared outside measurement instead of calling setup again for the measured iteration. This prevents an unused input from remaining alive during the routine. Add regression coverage for setup counts and input lifetime.
Configuration menu - View commit details
-
Copy full SHA for 76685ee - Browse repository at this point
Copy the full SHA 76685eeView commit details -
chore(codspeed): drop unused libc dependency
The codspeed crate declared libc since its first commit but never used it.
Configuration menu - View commit details
-
Copy full SHA for b250112 - Browse repository at this point
Copy the full SHA b250112View commit details -
feat(codspeed): add per-benchmark process isolation
Benchmarks of one bench binary share a process, so the allocator state one benchmark leaves behind (raised mmap threshold, fragmented bins, retained caches) changes the measurement of every benchmark after it. Adding or changing one benchmark can then shift unrelated results. Add `isolation::Isolation` for the harnesses. It is on by default and turned off with `CODSPEED_PROCESS_ISOLATION=false`. `Isolation::run` re-executes the bench binary with the same arguments and `CODSPEED_ISOLATED_BENCHMARK` set to one benchmark URI, so each benchmark gets a fresh process with its own heap and threads. The child only runs that benchmark (`only_benchmark`, which overrides the CLI filters), and a failing child's exit code is propagated (128 + N for signal N). Re-exec instead of fork(): fork only copies the calling thread, so threads the bench binary started before the harness (e.g. a Tokio runtime in `main`) would be missing in the child and work sent to them would hang.
Configuration menu - View commit details
-
Copy full SHA for 06d80d9 - Browse repository at this point
Copy the full SHA 06d80d9View commit details -
feat(divan): run each benchmark in its own process
Route every benchmark of the analysis harness through `Isolation::run`. A child process only matches its own benchmark URI and doesn't repeat the "Skipped" lines the parent already printed.
Configuration menu - View commit details
-
Copy full SHA for 43916f8 - Browse repository at this point
Copy the full SHA 43916f8View commit details -
feat(criterion): run each benchmark in its own process
All criterion compat benchmarks go through `BenchmarkGroup::run_bench`; wrap the measurement in `Isolation::run` like divan. A child process replaces the CLI filter with an exact match on its benchmark URI.
Configuration menu - View commit details
-
Copy full SHA for 5622bb3 - Browse repository at this point
Copy the full SHA 5622bb3View commit details -
test(cargo-codspeed): cover process isolation end to end
Build and run a divan fixture in simulation mode and check that: - every benchmark runs in a fresh process by default, including one that uses a multi-threaded Tokio runtime started in `main`; - `CODSPEED_PROCESS_ISOLATION=false` runs them all in one process; - a panicking benchmark fails the run with the panic exit code.
Configuration menu - View commit details
-
Copy full SHA for 9ee5ae0 - Browse repository at this point
Copy the full SHA 9ee5ae0View commit details -
test(divan): add allocator ripple benchmark
Three identical benchmarks that allocate a zeroed 4 MiB buffer. In one process the first one gets fresh mmap pages from glibc; freeing them raises the mmap threshold, so the next ones get heap memory that calloc must clear. Under callgrind they report 642, 127,593 and 229,862 instructions without isolation, and 642 each with it. `spawn_on_parent_runtime` awaits a task on a Tokio runtime started in `main`, which only works when each isolated process starts its own runtime.
Configuration menu - View commit details
-
Copy full SHA for 3218867 - Browse repository at this point
Copy the full SHA 3218867View commit details -
ci: time out the analysis integration tests
Every benchmark now runs in its own process. A harness regression that leaves a child stuck must fail the job instead of blocking it until the GitHub Actions default of 6 hours.
Configuration menu - View commit details
-
Copy full SHA for fef0566 - Browse repository at this point
Copy the full SHA fef0566View commit details -
Configuration menu - View commit details
-
Copy full SHA for fce04a6 - Browse repository at this point
Copy the full SHA fce04a6View commit details
Commits on Oct 21, 2026
-
feat(codspeed): declare a Symposium plugin (#200)
Symposium (cargo agents) reads [package.metadata.symposium] to give coding agents the skills and MCP servers of the crates a project depends on. Declare the CodSpeed skills, fetched from the skills/ directory of CodSpeedHQ/codspeed, and the CodSpeed MCP server. Closes COD-3968 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for a9d5d46 - Browse repository at this point
Copy the full SHA a9d5d46View commit details -
cargo-codspeed@6.0.0 codspeed@6.0.0 codspeed-bencher-compat@6.0.0 codspeed-criterion-compat@6.0.0 codspeed-criterion-compat-walltime@6.0.0 codspeed-divan-compat@6.0.0 codspeed-divan-compat-macros@6.0.0 codspeed-divan-compat-walltime@6.0.0 Generated by cargo-workspaces
Configuration menu - View commit details
-
Copy full SHA for 5caa8dc - Browse repository at this point
Copy the full SHA 5caa8dcView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v5.0.3...v6.0.0