Skip to content

Commit d93e463

Browse files
committed
Add CPython C PEG parser to benchmark comparison (4th parser)
Benchmark CPython's internal PEG parser at the mod_ty (C struct) level, calling _PyPegen_run_parser_from_string() directly without Python AST object creation. CPython is 6.45x slower than Ruff (4,648ms vs 721ms). All 12 plots regenerated with 4 parsers. Report updated with CPython architectural analysis (PEG memoization overhead, generated parser dispatch, arena allocation) and updated recommendations. https://claude.ai/code/session_0116H8dSsjY7pmMiZs5WWjF3
1 parent f612c00 commit d93e463

15 files changed

+2013
-57
lines changed
4.87 KB
Loading
2.28 KB
Loading
42 KB
Loading
6.29 KB
Loading
96.2 KB
Loading
10.1 KB
Loading

benchmark-plots/07_cdf.png

29.4 KB
Loading
86.1 KB
Loading

benchmark-plots/09_errors.png

15.3 KB
Loading
22.3 KB
Loading

0 commit comments

Comments
 (0)