Skip to content

true, false: optimize hot code path#11198

Closed
oech3 wants to merge 2 commits intouutils:mainfrom
oech3:true-cold
Closed

true, false: optimize hot code path#11198
oech3 wants to merge 2 commits intouutils:mainfrom
oech3:true-cold

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Mar 5, 2026

After #11186 , cold path is a bottleneck now.
Only valid for hyperfine.

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 5, 2026

Merging this PR will improve performance by ×39

⚡ 2 improved benchmarks
✅ 6 untouched benchmarks
⏩ 338 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation false_consecutive_calls 6,624.4 ns 170.3 ns ×39
Simulation true_consecutive_calls 6,428.6 ns 170.3 ns ×38

Comparing oech3:true-cold (f510585) with main (1f7c81f)2

Open in CodSpeed

Footnotes

  1. 338 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. No successful run was found on main (60b4d1b) during the generation of this report, so 1f7c81f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@oech3 oech3 closed this Mar 5, 2026
@oech3 oech3 deleted the true-cold branch March 5, 2026 02:03
@oech3 oech3 restored the true-cold branch March 5, 2026 12:09
@oech3 oech3 reopened this Mar 5, 2026
@oech3 oech3 closed this Mar 5, 2026
@oech3 oech3 deleted the true-cold branch March 5, 2026 12:21
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.

1 participant