Add buffered printing and lock output stream to tsort - #12733
Merged
CodSpeed HQ / CodSpeed Performance Analysis
succeeded
Jun 14, 2026
Performance Gate Passed
⚠️ Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.
⚡ 4 improved benchmarks
✅ 319 untouched benchmarks
⏩ 46 skipped benchmarks1
Performance Changes
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | tsort_tree_dag[(10, 3)] |
29.1 ms | 25.3 ms | +15.16% |
| ⚡ | Simulation | tsort_wide_dag[100000] |
115.9 ms | 102.4 ms | +13.23% |
| ⚡ | Simulation | tsort_linear_chain[1000000] |
1.4 s | 1.3 s | +10.34% |
| ⚡ | Simulation | tsort_complex_dag[50000] |
73.2 ms | 66.8 ms | +9.65% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing mrkalling:martink (78b6f7e) with main (8243543)
Footnotes
-
46 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. ↩
Loading