RustLayout Benchmark Report
All figures in this report are recorded directly from reproducible quiet-host runs on this machine and committed in docs/benchmarks/receipt.json.
Environment
- Host: Apple M6 (
arm64, 12 logical cores, 32.0 GiB unified RAM), Darwin 27.2.0
- GPU Backend: Apple M6 (
Metal via wgpu 30.0.2)
- Compiler:
rustc 1.100.0 (--release, thin LTO, codegen-units = 1)
- Black-Box Oracle:
KLayout 0.30.13 (klayout -b)
- Methodology: Paired alternating blocks (
RustLayout / KLayout) via benchmarks/run_campaign.py (3 blocks for layouts ≤ 2 GiB, 1 block for 5 GiB); peak process RSS measured externally via /usr/bin/time -l.
1. Cold Parse Speed & Peak Memory vs. KLayout 0.30.13
| Layout |
Size |
Cells |
RustLayout Parse |
KLayout Load |
Speedup |
RustLayout RSS |
KLayout RSS |
RSS / File |
sky130_fd_sc_hd (SKY130A) |
4.00 MiB |
446 |
2.23 ms |
7.26 ms |
3.26× |
24.0 MiB |
348.3 MiB |
— |
ihp_sg13g2_stdcell (IHP SG13G2) |
0.60 MiB |
84 |
0.43 ms |
1.22 ms |
2.85× |
10.4 MiB |
342.8 MiB |
— |
gf180mcu_fd_sc_mcu7t5v0 (GF180MCU) |
1.38 MiB |
229 |
1.10 ms |
2.46 ms |
2.24× |
15.3 MiB |
343.9 MiB |
— |
rustroad_combined |
< 0.01 MiB |
5 |
0.12 ms |
0.17 ms |
1.42× |
8.6 MiB |
342.0 MiB |
— |
soc_100mb (hierarchical SoC) |
100 MiB |
35 |
17.49 ms |
104.30 ms |
5.96× |
167.4 MiB |
385.7 MiB |
1.67× |
curvilinear_500mb (32-vtx curves) |
512 MiB |
1 |
148.83 ms |
1,888.86 ms |
12.69× |
1,248.8 MiB |
901.6 MiB |
2.44× |
hier_sram_1gb (SRAM AREFs + 200k SREFs) |
1.0 GiB |
71 |
143.26 ms |
1,137.39 ms |
7.94× |
604.5 MiB |
933.8 MiB |
0.59× |
flat_fill_2gb (33.55M fill rects) |
2.0 GiB |
1 |
276.25 ms |
2,438.02 ms |
8.83× |
1,247.9 MiB |
1,558.5 MiB |
0.61× |
mega_5gb (5 GiB mixed reticle) |
5.0 GiB |
34 |
1,414.19 ms |
6,523.98 ms |
4.61× |
2,497.0 MiB |
3,580.9 MiB |
0.49× |
2. Cold Hilbert 4-Wide BVH + HLOD Indexing & Zero-Copy .rlay Warm Cache
| Layout |
GDS Size |
.rlay Size |
Cold Load + Index |
Index Peak RSS |
Warm .rlay Open |
Full-Die HLOD Query |
soc_100mb |
100 MiB |
28.5 MiB |
51.96 ms |
201.8 MiB |
2.352 ms |
0.701 ms (47k items) |
hier_sram_1gb |
1.0 GiB |
277.8 MiB |
378.93 ms |
965.5 MiB (0.94×) |
0.705 ms |
3.240 ms (233k items) |
flat_fill_2gb |
2.0 GiB |
554.7 MiB |
962.23 ms |
1,864.7 MiB (0.91×) |
0.048 ms |
0.279 ms (25.5k items) |
mega_5gb |
5.0 GiB |
1,386.8 MiB |
2,452.11 ms |
3,395.4 MiB (0.66×) |
0.184 ms |
0.002 ms (7 items) |
3. Headless 4K (3840×2160) PNG Render vs. KLayout 0.30.13
| Layout |
RustLayout Cold Wall |
RustLayout Warm .rlay Wall |
GPU Render Pass |
KLayout Wall |
Cold Speedup |
Warm Speedup |
soc_100mb |
0.112 s |
0.065 s |
13.84 ms |
1.981 s |
17.76× |
30.28× |
flat_fill_2gb |
0.814 s |
0.073 s |
22.88 ms |
7.355 s |
9.03× |
101.24× |
4. Retina (3024×1964) Interactive GPU Flythrough & Layer-Toggle Latency
Scripted full-die pan + continuous logarithmic zoom down to 100 nm + rapid layer visibility toggling (--lod-px 2.0):
| Layout |
Frames |
P50 Frame |
P95 Frame |
P99 Frame |
Max Frame |
Toggle P50 |
Peak / Cap VRAM |
flat_fill_2gb (2 GiB) |
600 |
2.82 ms (354 FPS) |
8.37 ms (119 FPS) |
11.68 ms |
29.18 ms |
1.53 ms |
137 / 1,024 MiB |
hier_sram_1gb (1 GiB) |
600 |
2.50 ms (400 FPS) |
8.56 ms (117 FPS) |
11.61 ms |
20.94 ms |
1.64 ms |
73 / 1,024 MiB |
curvilinear_500mb (512 MiB) |
300 |
16.22 ms (62 FPS) |
66.65 ms |
78.56 ms |
81.25 ms |
0.57 ms |
892 / 1,024 MiB |
mega_5gb (5 GiB, 512 MiB cap) |
1,000 |
1.25 ms (800 FPS) |
1.93 ms |
2.50 ms |
3.02 ms |
0.37 ms |
1.0 / 512 MiB |
Additionally, a dedicated 64 MiB hard-cap LRU eviction stress run on flat_fill_2gb.rlay (1920×1080, 200 frames) held peak VRAM strictly at 64.0 MiB across 54 clean LRU evictions at 1.80 ms P50 / 4.41 ms Max.
- KLayout Visual Pixel Parity (
benchmarks/verify_phase3_render.py): All 6 canonical fixtures (01_rects_and_boxes, 02_polygons_and_keyholes, 03_paths_all_types, 04_hierarchy_d4_sref, 05_aref_transforms, 06_extreme_100mm_zoom) pass with interior_diff_gt1px = 0 and boundary_1px_iou = 1.00000 (06_extreme_100mm_zoom achieves raw_iou = 1.00000 at (100_000_000, 100_000_000) DBU).
- Multi-Format Parity (
benchmarks/verify_phase6_formats_and_xor.py): 100% geometric parity across all 11 layouts (7 canonical fixtures + combined + SKY130A, IHP SG13G2, GF180MCU D) for CBLOCK-compressed .oas, uncompressed .oas, and .gds.gz (0 visual XOR diff pixels between .gds and .oas on fixtures 01, 02, 04, 05, 06).
- Real-Time Retina GPU Visual XOR Diff:
14.95 ms P50 (66.9 FPS at 3024×1964) on soc_100mb.gds, accurately isolating an injected 1-DBU perturbation (1,710 diff pixels).
Reproducing
cargo build --release -p rustlayout-cli -p rustlayout-benchgen
python3 benchmarks/run_campaign.py