RustRCX Benchmarks & Accuracy Verification
All numbers below come directly from reproducible local executions on Apple M6 (12 cores, 32 GiB RAM, macOS, rustc 1.100.0) captured in benchmarks/results.json via bench_vs_magic_kpex.py. Both Magic 8.3.703 and KPEX 0.10.0 were invoked strictly as black-box CLI executables over identical official foundry GDSII files (IHP SG13G2, SKY130A, GF180MCU D).
1. Feature Capability Matrix
| Capability |
RustRCX |
Magic 8.3.703 |
KPEX 0.10.0 |
| Pure single binary (zero external Tcl/KLayout/FasterCap deps) |
Yes |
No (Tcl) |
No (KLayout + Magic + FasterCap) |
Full GDSII + .gds.gz extraction (plus OASIS / .rlay via RustLayout) |
Yes |
GDS/CIF |
GDS/OASIS (via KLayout) |
Post-route RustROAD strip extraction + streamed IEEE 1481 SPEF |
Yes |
No |
No |
Multi-corner (min, nom, max) out-of-the-box across SKY130A / SG13G2 / GF180MCU |
Yes |
Manual tech style |
Nominal only in bundled catalog |
| 2D FVM arbitrary-polygon sheet resistance (exact L/T/U corners) |
Yes |
extresist (fragile on macros) |
2D FEM/mesh |
| Multi-cut parallel via array clustering |
Yes |
Partial |
No (per-cut) |
| Built-in 3D Layered-Dielectric Finite-Volume Laplace solver |
Yes (3d-fd) |
No |
No |
| Built-in 3D Boundary Element Method solver |
Yes (3d-bem) |
No |
External C++ FasterCap only |
O(N) TICER RC reduction + Y(jω) Frobenius error verifier |
Yes |
No |
Yes |
Exclusion markers (ignore/tie/ports + custom L/D), --cut, --exclude-net |
Yes |
Partial |
Yes |
Interactive GPU layout overlay (rustrcx.overlay.v1 in RustLayout) |
Yes |
No |
RDB static export only |
2. Wall-Clock Runtime & Memory on Real Foundry Silicon
| Benchmark (PDK / Cell) |
RustRCX 2.5D+FVM |
RustRCX 3D-BEM |
RustRCX 3D-FD |
Magic 8.3.703 (C-only) |
KPEX 0.10.0 (2.5D RC) |
ihp-sg13g2 / sg13g2_inv_1 |
7.9 ms¹ (6.1 MiB) |
13.1 ms (9.0 MiB) |
166.4 ms (19.8 MiB) |
280.5 ms (62.5 MiB) |
1,814.0 ms (408.3 MiB) |
ihp-sg13g2 / sg13g2_nand2_1 |
8.8 ms (6.3 MiB) |
17.5 ms (10.8 MiB) |
234.1 ms (26.9 MiB) |
247.5 ms (62.6 MiB) |
1,724.5 ms (407.6 MiB) |
ihp-sg13g2 / sg13g2_dfrbp_1 (34 FETs) |
13.7 ms (7.9 MiB) |
— |
— |
248.5 ms (62.6 MiB) |
2,687.2 ms (408.8 MiB) |
sky130A / sky130_fd_sc_hd__inv_1 |
14.2 ms (13.8 MiB) |
20.1 ms (16.5 MiB) |
1,035.2 ms (42.6 MiB) |
979.3 ms (94.3 MiB) |
1,481.8 ms (385.0 MiB) |
sky130A / sky130_fd_sc_hd__dfxtp_1 (24 FETs) |
19.3 ms (15.4 MiB) |
— |
— |
977.4 ms (94.1 MiB) |
2,208.2 ms (386.0 MiB) |
gf180mcuD / gf180mcu_fd_sc_mcu7t5v0__inv_1 |
12.4 ms (8.2 MiB) |
16.8 ms (11.4 MiB) |
215.6 ms (23.2 MiB) |
514.1 ms (76.0 MiB) |
Failed (1,131 ms, 343.5 MiB) |
ihp-sg13g2 / rfcmim_30x15x10_full |
6.2 ms (5.0 MiB) |
— |
— |
465.8 ms (60.0 MiB) |
— |
ihp-sg13g2 / RM_IHPSG13_2P_64x22_c2 (30,764 FETs) |
7,613 ms (1,099 MiB) |
— |
— |
44,579 ms (186 MiB) |
> 90,000 ms timeout |
¹ Warmed 5-run median (5.66–10.79 ms, internal 3.44 ms); first uncached launch in results.json recorded 228.0 ms wall due to macOS first-exec verification. Notice that on all standard cells, RustRCX's 3D BEM solver (13–20 ms) is 14×–74× faster than Magic's and KPEX's 2.5D engines.
Key Notes & Fairness Observations
- SRAM memory asymmetry: On the 30,764-MOSFET SRAM macro
RM_IHPSG13_2P_64x22_c2, Magic extracted hierarchically without extresist (323 top-level MOSFETs, 5 resistors, 186 MiB RSS, 44.58 s), whereas RustRCX flattened all 209,472 shapes, recognized all 30,764 MOSFETs, and solved full distributed 2D FVM sheet resistance (314,664 resistors) in 7.61 s (1,099 MiB RSS). KPEX --2.5D timed out past the 90 s limit.
- GF180MCU D: KPEX 0.10.0 failed with a KLayout LVS extraction error on
gf180mcu_fd_sc_mcu7t5v0__inv_1, whereas RustRCX cleanly extracted both MOSFETs (w=0.82u/l=0.60u, w=1.22u/l=0.50u), distributed RC (R=46.2 Ohm, C=1.085 fF), and 3D-FD/3D-BEM capacitance matrices across all three corners.
3. Device & Parasitic Accuracy Verification
Real Foundry Silicon Capacitance & Device Parity
| Benchmark |
Devices (RCX / Magic / KPEX) |
RustRCX 2.5D C_tot |
Magic 8.3.703 C_tot |
KPEX 2.5D C_tot |
Notes |
sg13g2_inv_1 |
2 / 2 / 2 (exact w,l,as,ad,ps,pd) |
0.924 fF |
0.905 fF |
0.834 fF |
2.2% vs Magic; R=329 Ohm vs KPEX 281 Ohm |
sg13g2_nand2_1 |
4 / 4 / 4 |
1.812 fF |
1.623 fF |
1.438 fF |
Same 34 resistor elements as KPEX |
sg13g2_dfrbp_1 |
34 / 34 / 34 |
20.431 fF |
16.981 fF |
14.251 fF |
Full 2D FVM R (247 elems) |
sky130_fd_sc_hd__inv_1 |
2 / 2 / 2 (exact 0.65u/0.15u, 1.00u/0.15u) |
1.165 fF |
1.467 fF |
1.154 fF |
0.98% vs KPEX; TICER ≤ 1% to 10 GHz |
sky130_fd_sc_hd__dfxtp_1 |
24 / 24 / 24 |
11.344 fF |
10.880 fF |
9.752 fF |
4.3% vs Magic |
gf180mcu_fd_sc_mcu7t5v0__inv_1 |
2 / 2 / Err (exact 0.82u/0.60u, 1.22u/0.50u) |
1.085 fF (3D-FD: 2.183 fF) |
2.429 fF |
— |
3D-FD includes 3D tungsten contact plugs |
rfcmim_30x15x10_full |
1 MIM (30u × 15u) |
274.6 fF (+ XCMIM0) |
— |
— |
Exact R=0.344 Ohm via array clustering; zero MIM double-counting |
Analytical & First-Principles Physics Unit Verification (cargo test --workspace: 88/88 PASS)
| Physics Verification Test |
Reference Ground Truth |
Measured Result |
| 3D-FD 2-layer stacked dielectric parallel plate |
Analytical C = ε₀ A / (d₁/ε₁ + d₂/ε₂) |
< 1e-6 relative error |
3D-FD Maxwell symmetry on real silicon sg13g2_inv_1 (70×48×40) |
C_ij = C_ji |
7.96e-8 fF max asymmetry |
| 3D-BEM free-space unit cube |
Classical benchmark C / (4πε₀ a) = 0.660678 |
< 2% relative error |
| 2D FVM 90° L-bend metal trace |
Analytical corner factor (~8.36 sq incl. pads) |
Within exact theoretical band (7.8–9.0 sq) |
TICER RC reduction + Y(jω) sweep (1 MHz–10 GHz) |
Exact complex port admittance Y_orig(jω) |
≤ 1.0% relative Frobenius error |
| Capacitance monotonicity |
Adding nearby grounded/signal conductors never decreases C_tot |
Verified strictly monotone |