Commit a153c86
bench: publish 2026-07 refresh results - regenerated benchmarks page + committed artifacts
Full gated run (20 cells x 3 arms, zero flags, single environment
fingerprint) on the released diff-diff 3.7.0 wheel vs R 4.5.2
(did 2.5.1 / fixest 0.14.2 / synthdid 0.0.9), Apple M4 Max:
- CallawaySantAnna: 4.6x (small) -> 15.5x (10k) / 14.8x (20k) faster
than R, advantage now GROWS with scale (previously published numbers
showed it shrinking, 11x -> 4x); exact SE parity (0.0%) and all
per-(g,t)/event-study/group surfaces at ~5e-11.
- SyntheticDiD: Rust backend 18-55x faster than R at matched
200-replication placebo variance (the invalidated published table
showed Rust SLOWER than pure Python); id-aligned unit/time weights
reproduce R at <= 5e-13; SE gaps 3.1-11.5% = documented placebo Monte
Carlo dispersion.
- Honest regressions published as-is: warmed-up fixest wins the sub-35ms
BasicDiD/TWFE interaction-OLS cells at 10k-20k (0.6-0.9x); pure-Python
SDID at equal bootstrap counts is 0.5-4.4x vs R (old 2.4-16.5x claim
reflected a 50-vs-200 replication asymmetry).
- MPDTA real data: exact ATT match (-0.039951), ~5x faster.
docs/benchmarks.rst fully regenerated from the committed artifact
(gen_benchmark_tables.py --check clean) with prose reconciled: new
median/warm-up protocol wording, split BasicDiD vs absorbed-FE TWFE
tables + estimator-mapping row, rewritten Rust-backend and SDID notes,
honest Key Observations, corrected stale gelsy/14x claims, refresh
harness documented as the source of the published tables (legacy runner
labeled). llms.txt Rust-backend line updated to the measured range.
Internal optimization story committed (version_story.{json,md}),
CS-focused per direction: CallawaySantAnna ~4.9-5.0x faster on the 3.7.0
wheel than 3.5.3 at 20k units and 2M rows with identical estimates;
BasicDiD/MultiPeriodDiD context rows 1.15-1.31x.
CHANGELOG updated with the public before/after; delivered phase-2 TODO
row removed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GPX5Rv8ozQXPdUV23QTfjr1 parent 1044044 commit a153c86
8 files changed
Lines changed: 8476 additions & 187 deletions
File tree
- benchmarks/refresh_2026_07
- results
- diff_diff/guides
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 48 | | |
56 | 49 | | |
57 | 50 | | |
| |||
0 commit comments