Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nicholas Gates <nick@nickgates.com>
Polar Signals Profiling ResultsLatest Run
Powered by Polar Signals Cloud |
Benchmarks: TPC-H SF=1 on NVME 📖Commits: PR How to read Verdict and Engines
Hot runs: geomean 1.003x ➖ · 22 queries × 7 targets (1↑ 0↓)Each cell is develop
Cold runs (first iteration): geomean 1.013x ➖ · 22 queries × 7 targets (0↑ 1↓)
No file size changes detected. |
Benchmarks: Clickbench on NVME 📖Commits: PR How to read Verdict and Engines
Hot runs: geomean 0.999x ➖ · 43 queries × 7 targets (3↑ 1↓)Each cell is develop
Cold runs (first iteration): geomean 0.998x ➖ · 43 queries × 7 targets (4↑ 7↓)
No file size changes detected. |
Merging this PR will improve performance by 12.96%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
CurrentThreadRuntime::block_onandCurrentThreadIterator::nextnow poll the future once on the calling thread and return its output directly when it is ready, entering smol'sExecutor::runonly for a future that is not. Every entry intoExecutor::runregisters the calling thread with the executor: it takes a write lock on the executor's shared list of local queues, allocates a 512-slot queue, and takes the write lock again to deregister on the way out. A host that drives a scan from its own threads entersblock_ononce per unit of work. DuckDB's V1 scan, for example, blocks on every split task, and most of those polls find the work already done, so with one thread per core every split pays a registration that all the host's threads contend on. A future that is not ready is polled again insideExecutor::runand runs the runtime's tasks while the thread waits, as before, so behaviour is unchanged. Only a ready future skips the executor, and it has nothing for the executor to do. On CI, the same change on the Scan API stack brought DuckDB V1's short ClickBench queries from 1.30/1.25/1.20/1.11 (q01, q02, q07, q26) to 0.99/1.01/1.03/1.02 of develop.Part of #9062
🤖 Generated with Claude Code