- Unix:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
- Build red_knot:
cargo build --bin red_knot --release
cd
into the benchmark directory:cd scripts/knot_benchmark
- Run benchmarks:
uv run benchmark
Red Knot only implements a tiny fraction of Mypy's and Pyright's functionality, so the benchmarks aren't in any way a fair comparison today. However, they'll become more meaningful as we build out more type checking features in Red Knot.
The script should work on Windows, but we haven't tested it yet.
We do make use of shlex
which has known limitations when using non-POSIX shells.