Skip to content

Skip the executor in block_on when the future is already ready - #11896

Open
gatesn wants to merge 1 commit into
developfrom
ngates/block-on-ready-fast-path
Open

gatesn wants to merge 1 commit into
developfrom
ngates/block-on-ready-fast-path

Skip the executor in block_on when the future is already ready

a4c5be8
Select commit
Loading
Failed to load commit list.
CodSpeed / CodSpeed Performance Analysis succeeded Nov 24, 2026 in 0s

Performance Gate Passed

2 warnings

⚠️ 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

⚠️ 2 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

⚡ 1 improved benchmark
✅ 2051 untouched benchmarks
⏩ 150 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Walltime scalar_subtract_neon 13.1 µs 11.6 µs +12.96%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ngates/block-on-ready-fast-path (a4c5be8) with develop (1fd572b)

Open in CodSpeed

Footnotes

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