Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CodSpeedHQ/codspeed-rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.3
Choose a base ref
...
head repository: CodSpeedHQ/codspeed-rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.0.0
Choose a head ref
  • 11 commits
  • 22 files changed
  • 3 contributors

Commits on Oct 20, 2026

  1. 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.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    76685ee View commit details
    Browse the repository at this point in the history
  2. chore(codspeed): drop unused libc dependency

    The codspeed crate declared libc since its first commit but never used it.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    b250112 View commit details
    Browse the repository at this point in the history
  3. 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.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    06d80d9 View commit details
    Browse the repository at this point in the history
  4. 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.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    43916f8 View commit details
    Browse the repository at this point in the history
  5. 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.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    5622bb3 View commit details
    Browse the repository at this point in the history
  6. 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.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    9ee5ae0 View commit details
    Browse the repository at this point in the history
  7. 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.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    3218867 View commit details
    Browse the repository at this point in the history
  8. 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.
    not-matthias committed Oct 20, 2026
    Configuration menu
    Copy the full SHA
    fef0566 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fce04a6 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2026

  1. 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>
    adriencaccia and claude authored Oct 21, 2026
    Configuration menu
    Copy the full SHA
    a9d5d46 View commit details
    Browse the repository at this point in the history
  2. Release 6.0.0

    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
    adriencaccia committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    5caa8dc View commit details
    Browse the repository at this point in the history
Loading