Comparing Python Type Checkers: Speed and Memory

Posted by javabster@reddit | Python | View on Reddit | 32 comments

In our latest type checker comparison blog we cover the speed and memory benchmarks we run regularly across 53 popular open source Python packages. This includes results from a recent run, comparing Pyrefly, Ty, Pyright, and Mypy, although exact results change over time as packages release new versions.

The results from the latest run: Rust-based checkers are roughly an order of magnitude faster, with Pyrefly checking pandas in 1.9 seconds vs. Pyright's 144.

https://pyrefly.org/blog/speed-and-memory-comparison/