Rust acceleration, scaling performance, and multi-engine comparison.
| Workload | Python/NumPy | Rust Batch | Notes |
|---|---|---|---|
| High-frequency control (N=16) | 15.9 µs/step | 1.7 µs/step | Real-time control loop |
| Massive swarms (N=1,024) | 14.2 ms/step | 12.9 ms/step | Swarmalator dynamics |
| City-scale networks (N=10,000) | ∼850 ms for 100M edges | Stress test limit | |
54 Rust modules via PyO3 FFI. Pure Python fallback always available. Two modules (phase_extract, coupling_est) use Python/LAPACK because FFT/BLAS outperforms Rust.
| Module | Speedup | Notes |
|---|---|---|
| Ott-Antonsen reduction | 96× | Best case: O(1) mean-field |
| Standard Kuramoto step | 9.4× | N=16, RK4 |
| Coupling plasticity | 8.2× | Hebbian update |
| Chimera detection | 5.7× | Local R profiling |
| Transfer entropy | 4.1× | Directed causality |
| Stuart-Landau step | 3.8× | Complex amplitude |
| Hodge decomposition | 2.4× | Sparse matrix ops |
| Phase extraction | 0.8× | LAPACK FFT faster |
| Coupling estimation | 0.9× | LAPACK BLAS faster |
Honest comparison: Rust auto-select disabled for 2 modules where Python/LAPACK wins.
Property-based testing with Hypothesis (680+ tests). Physics validation suite: 194 tests across 13 phases. Stress tests: N=1,000 oscillators, T=50,000 steps. Degenerate edge cases: N=1, dt=0, zero coupling. Mutation testing: 32 killer tests. 9 CI/CD workflows with security scanning (Bandit, CodeQL, Trivy).