Expand the routing benchmark corpus with 72 boards

This commit is contained in:
Jan Petykiewicz 2026-11-30 15:24:03 -08:00
commit 6c6eb37064

View file

@ -3,6 +3,23 @@
- [Benchmark cases](benchmarks.md#choose-a-case)
- [Corpus registry and profiles](../inire/tests/routing_corpus.py)
## Micron-scale routing cases
The `expanded` group adds 72 deterministic, unseeded boards with independently constructed reference routes. The authored grid units are 10, 100, 250, 500, and 1000 nm. Bend radii span 10–100 µm and trace widths span 1–20 µm. The comparison script records `grid_nm` for these boards. Convert benchmark-weighted lengths to microns by multiplying by `grid_nm / 1000`.
| Group | Boards | Coverage |
| --- | ---: | --- |
| `geometry-corners` | 32 | Exact four-bend spans, tight returns and paired routes, exact-span S-bend slots, mixed widths, and saturated or overloaded apertures. |
| `complex-layouts` | 24 | Serial aperture banks with opposing tracks, concave and fixed-route keepouts, and staggered crossing arrays. |
| `search-challenges` | 8 | Alternating comb walls that force repeated turns and exercise search-budget exhaustion. |
| `scaling` | 8 | Banks and crossing arrays of up to 256 nets, obstacle fields with up to 320 keepouts, and a 240-net board with 240 keepouts and four blocked approaches. |
The 72 reference layouts run in pytest. The corner and complex groups and seven scaling boards also have unseeded coverage assertions at the regression budget. Use `--case search-challenges` or `--case scaling` with an explicit budget to measure search and coverage on the harder boards. For scaling comparisons, use the same grid, mode, and budget and collect repeated timings with `--repeat`.
To exercise the low-budget fallbacks on tight geometry, run `--case geometry-corners --profile corpus-regression --mode automatic --nodes 1 --seed-nodes 1 --iterations 1`.
- [Fixture definitions](../inire/tests/routing_expanded_benchmarks.py)
## Complex-routing example 1
Use `complex-routing-example-1` to test fixed eastbound arrival and `complex-routing-example-1-point-terminals` to test heading inference.