Skip to content

Benchmark marker operations - #22610

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/bench-conflicting-extras
Oct 18, 2026
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/bench-conflicting-extras

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Add benchmarks for marker DNF conversion, extra substitution, and conflict simplification, including cases with many conflicting extras.

@charliermarsh
charliermarsh force-pushed the charlie/bench-conflicting-extras branch from f5755f5 to 3d465c9 Compare October 15, 2026 20:40
@charliermarsh charliermarsh changed the title Benchmark locking projects with conflicting extras Benchmark marker DNF conversion and extra substitution Oct 15, 2026
@charliermarsh
charliermarsh force-pushed the charlie/bench-conflicting-extras branch from 3d465c9 to 75a67fa Compare October 15, 2026 20:43
@charliermarsh charliermarsh changed the title Benchmark marker DNF conversion and extra substitution Benchmark marker operations Oct 15, 2026
@charliermarsh
charliermarsh removed this pull request from stack #22611 October 15, 2026 20:58
@charliermarsh
charliermarsh force-pushed the charlie/bench-conflicting-extras branch from 75a67fa to 5d5e4f2 Compare October 15, 2026 21:06
@charliermarsh
charliermarsh force-pushed the charlie/bench-conflicting-extras branch from 5d5e4f2 to 659a4bf Compare October 15, 2026 21:18
@codspeed

codspeed Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 11.61%

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

❌ 2 regressed benchmarks
✅ 67 untouched benchmarks
🆕 50 new benchmarks
⏩ 54 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ ⚠️ Simulation discover_workspace_from_all_members_with_excludes 143 ms 165.3 ms -13.52%
❌ ⚠️ Simulation discover_workspace_from_all_members 140.6 ms 155.6 ms -9.66%
🆕 WallTime imbibe_and_format_marker_conflict_dependent[16] N/A 11.5 ms N/A
🆕 WallTime imbibe_and_format_marker_conflict_dependent[32] N/A 612.6 ms N/A
🆕 WallTime imbibe_and_format_marker_conflict_dependent[4] N/A 6.3 µs N/A
🆕 WallTime imbibe_and_format_marker_environment_only[16] N/A 3.8 ms N/A
🆕 WallTime imbibe_and_format_marker_environment_only[32] N/A 225.3 ms N/A
🆕 WallTime imbibe_and_format_marker_environment_only[4] N/A 3.1 µs N/A
🆕 WallTime imbibe_and_format_marker_no_conflicts[0] N/A 251 ns N/A
🆕 WallTime imbibe_marker_conflict_dependent[16] N/A 131 ns N/A
🆕 WallTime imbibe_marker_conflict_dependent[32] N/A 131 ns N/A
🆕 WallTime imbibe_marker_conflict_dependent[4] N/A 131 ns N/A
🆕 WallTime imbibe_marker_environment_only[16] N/A 99 ns N/A
🆕 WallTime imbibe_marker_environment_only[32] N/A 100 ns N/A
🆕 WallTime imbibe_marker_environment_only[4] N/A 99 ns N/A
🆕 WallTime imbibe_marker_no_conflicts[0] N/A 6 ns N/A
🆕 WallTime resolve_activated_extras_independent_pairs[2] N/A 2.5 µs N/A
🆕 WallTime resolve_activated_extras_independent_pairs[4] N/A 62.5 µs N/A
🆕 WallTime resolve_activated_extras_independent_pairs[8] N/A 33.2 ms N/A
🆕 WallTime marker_to_dnf_conflicting_extras[16] N/A 3.8 ms N/A
... ... ... ... ... ...

ℹ️ 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 charlie/bench-conflicting-extras (d53836f) with main (c8e4086)

Open in CodSpeed

Footnotes

  1. 54 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. ↩

@zanieb

zanieb commented Oct 15, 2026

Copy link
Copy Markdown
Member

fyi you need to steer codex to make more specifc names or we end up with things like shared_subgraphs[2]

Benchmark marker DNF conversion, extra substitution, and conflict simplification directly, with marker construction outside the timed loop.

DNF conversion uses conflict guards with 4, 16, and 32 extras, producing 7, 121, and 497 clauses. Extra substitution uses compact diagrams with 4, 16, and 256 paths that all reduce to the same platform condition. These cases measure both clause simplification and the cost of expanding shared subgraphs.

Conflict simplification measures `UniversalMarker::imbibe` alone and followed by formatting, using 4, 16, and 32 mutually exclusive extras. Environment-only markers cover redundant conflict guards; conflict-dependent markers and a no-conflict case provide controls. Each iteration starts from the original marker, so formatting measures the cost of the guards that remain after simplification.

The benchmarks reuse the global marker interner across iterations and run in both CodSpeed modes. Related to #21954.
@charliermarsh
charliermarsh marked this pull request as ready for review October 18, 2026 02:45
@charliermarsh
charliermarsh merged commit 38b0465 into main Oct 18, 2026
124 of 125 checks passed
@charliermarsh
charliermarsh deleted the charlie/bench-conflicting-extras branch October 18, 2026 03:24

This branch was previously deployed

1 inactive deployment
automations — d53836f3 Deployed Oct 15, 2026 by charliermarsh via review / security review #51264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants