Skip to content

ci: disable CodSpeed process isolation for Rust simulation benchmarks - #10796

Merged
robert3005 merged 1 commit into
developfrom
rk/codspeed
Oct 26, 2026
Merged

robert3005 merged 1 commit into
developfrom
rk/codspeed

Conversation

@robert3005

@robert3005 robert3005 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

codspeed 6.0.0 (#10784, #10785) adds process isolation, which is on by default. codspeed-divan-compat now runs each benchmark in a new copy of the benchmark binary. Simulation mode measures one iteration without warmup, so each benchmark also pays for allocator setup (mimalloc) and for simulated cache misses on memory it touches for the first time. Before, an earlier benchmark in the same process had already paid these costs.

The CodSpeed report on #10785 shows a near-constant ~15 µs added to short benchmarks:

codspeed-divan-compat 6 runs each benchmark in a new process by default.
Simulation measures one iteration without warmup, so each benchmark also
pays for a cold allocator and cold caches. This adds about 15 µs to each
benchmark and hides small changes in short benchmarks.

Signed-off-by: Robert Kruszewski <github@robertk.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robert3005 robert3005 added the changelog/chore A trivial change label Oct 26, 2026
@robert3005
robert3005 enabled auto-merge (squash) October 26, 2026 12:22
@codspeed

codspeed Bot commented Oct 26, 2026

Copy link
Copy Markdown

Merging this PR will regress 258 benchmarks

3 warnings, 1 note

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ Unable to measure the execution of 2 benchmarks

These benchmarks measured no execution time, so their results are not comparable and count as unchanged. This usually happens when the compiler removes the code under test.

Prevent compiler optimizations

See affected benchmarks

⚠️ 20 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

ℹ️ 40 benchmarks have no flamegraph

The flamegraph wasn't generated: the symbols of the profiling trace could not be resolved, because no information about the language frames was collected.

See affected benchmarks

⚡ 405 improved benchmarks
❌ 258 regressed benchmarks
✅ 1745 untouched benchmarks
⏩ 12 skipped benchmarks1
🗄️ 43 archived benchmarks run2

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ CPU Simulation take_map[(0.01, 0.05)] 871.4 ns 26,076.1 ns -96.66%
❌ CPU Simulation bench_compare_varbinview[(10000, 2)] 15 µs 100.9 µs -85.17%
❌ CPU Simulation bench_compare_varbinview[(10000, 4)] 15 µs 101.1 µs -85.12%
❌ CPU Simulation bench_compare_varbinview[(10000, 128)] 15.8 µs 104.2 µs -84.79%
❌ CPU Simulation bench_compare_varbinview[(10000, 8)] 15.8 µs 101.7 µs -84.47%
❌ CPU Simulation bench_compare_varbinview[(10000, 32)] 16.3 µs 102.5 µs -84.08%
❌ CPU Simulation take_search[(0.1, 0.05)] 7.4 µs 36.6 µs -79.68%
❌ CPU Simulation take_search[(0.01, 0.1)] 8 µs 37.3 µs -78.66%
❌ CPU Simulation take_map[(0.01, 0.1)] 10.4 µs 43.9 µs -76.35%
❌ CPU Simulation filter_ultra_sparse[10000] 8.6 µs 26 µs -66.95%
❌ CPU Simulation take_search_chunked[(0.1, 0.05)] 14.4 µs 41.7 µs -65.5%
❌ CPU Simulation filter_random_by_mostly_false[1000] 9.4 µs 26.4 µs -64.49%
❌ CPU Simulation filter_powerlaw_by_power_law[1000] 8.8 µs 24.2 µs -63.42%
❌ CPU Simulation filter_random_by_power_law[1000] 9 µs 24.2 µs -62.83%
❌ CPU Simulation bench_compare_varbinview[(10000, 2048)] 47.8 µs 124.8 µs -61.72%
❌ CPU Simulation take_search[(0.1, 0.1)] 18.6 µs 48 µs -61.24%
❌ CPU Simulation decode_varbin[(1000, 4)] 19 µs 44.3 µs -57.25%
❌ CPU Simulation decode_varbin[(1000, 2)] 19 µs 44.3 µs -57.22%
❌ CPU Simulation decode_varbin[(1000, 8)] 19 µs 44.4 µs -57.14%
❌ CPU Simulation decode_varbin[(1000, 32)] 19.4 µs 44.7 µs -56.66%
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing rk/codspeed (ffe4657) with develop (747928a)

Open in CodSpeed

Footnotes

  1. 12 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. 43 benchmarks were run, but are now archived. If they were deleted in another branch, consider rebasing to remove them from the report. Instead if they were added back, click here to restore them. ↩

@robert3005
robert3005 merged commit e5a4e66 into develop Oct 26, 2026
115 of 117 checks passed
@robert3005
robert3005 deleted the rk/codspeed branch October 26, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants