perf: apply init-and-skip pattern to ciou and diou distance#88
Merged
CodSpeed HQ / CodSpeed Performance Analysis
succeeded
Jun 13, 2026 in 0s
Performance Gate Passed
⚡ 3 improved benchmarks
✅ 172 untouched benchmarks
🆕 2 new benchmarks
⏩ 1 skipped benchmark1
Performance Changes
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | parallel giou distance benchmark |
529 µs | 341.1 µs | +55.08% |
| ⚡ | test_diou_distance[float64] |
224.2 µs | 165.1 µs | +35.84% |
| ⚡ | test_diou_distance[float32] |
212.6 µs | 157 µs | +35.43% |
| 🆕 | ciou distance benchmark |
N/A | 1.5 ms | N/A |
| 🆕 | diou distance benchmark |
N/A | 257.5 µs | N/A |
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 perf/ciou-diou-init-skip (2afc989) with main (7c94775)
Footnotes
-
1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩
Loading