Measured on arm64 macOS (Darwin 25.5.0) with CPython 3.12.13, NumPy 2.5.5 and the release RTTA extension. Run python benchmarks/benchmark_econometrics.py --windows 64 1024 --updates 8192. Inputs are preconstructed seeded Gaussian observations. Each estimator first ingests a full window, then every timed call produces and releases a Python result. End-to-end throughput includes the timing loop. Per-call latency includes argument conversion, native estimation and result construction. The clock is quantized at this scale. Maxima include reconstruction and operating-system scheduling.
| Algorithm | Window | Parameters | Updates/s | p50 (ns) | p95 (ns) | p99 (ns) | Maximum (ns) |
|---|---|---|---|---|---|---|---|
| DurbinWatson | 64 | - | 5836491 | 84 | 125 | 166 | 458 |
| RollingOLS | 64 | p=1 | 1188854 | 708 | 875 | 2128 | 13792 |
| RollingOLS | 64 | p=4 | 609575 | 1500 | 1750 | 4542 | 18042 |
| RollingOLS | 64 | p=12 | 165211 | 5833 | 7250 | 17625 | 28375 |
| AugmentedDickeyFuller | 64 | L=0 | 1189257 | 709 | 792 | 2041 | 4875 |
| AugmentedDickeyFuller | 64 | L=2 | 763844 | 1167 | 1334 | 3375 | 12417 |
| AugmentedDickeyFuller | 64 | L=8 | 258253 | 3667 | 4417 | 10083 | 16833 |
| EngleGranger | 64 | L=2 | 452659 | 2084 | 2167 | 2625 | 16250 |
| KPSS | 64 | b=4 | 3231506 | 208 | 250 | 958 | 1166 |
| ThresholdAutoregression | 64 | p=2,r=2 | 144368 | 6750 | 7292 | 8416 | 27250 |
| DurbinWatson | 1024 | - | 5496448 | 84 | 125 | 125 | 6000 |
| RollingOLS | 1024 | p=1 | 1297143 | 625 | 750 | 834 | 36667 |
| RollingOLS | 1024 | p=4 | 632569 | 1416 | 1625 | 1875 | 55167 |
| RollingOLS | 1024 | p=12 | 160225 | 5792 | 7125 | 9844 | 213500 |
| AugmentedDickeyFuller | 1024 | L=0 | 1188797 | 708 | 792 | 917 | 56583 |
| AugmentedDickeyFuller | 1024 | L=2 | 740827 | 1167 | 1375 | 1583 | 43125 |
| AugmentedDickeyFuller | 1024 | L=8 | 253002 | 3667 | 4334 | 5083 | 138000 |
| EngleGranger | 1024 | L=2 | 62582 | 15666 | 16792 | 19000 | 102584 |
| KPSS | 1024 | b=4 | 3309954 | 208 | 250 | 250 | 11917 |
| ThresholdAutoregression | 1024 | p=2,r=2 | 9471 | 104459 | 110833 | 126181 | 346833 |
At w=1024, increasing the OLS predictor count from 1 to 12 raised median latency from 0.625 to 5.792 µs. Increasing fixed ADF augmentation from 0 to 8 lags raised the median from 0.708 to 3.667 µs. QR rotations occur once per window, so maximum latency can grow with window length even when p99 does not capture a rotation. The exact two-stage EG refit and SETAR threshold search both revisit the active sample. Their larger-window costs are visible in the median.
