ruff/scripts/benchmarks/run_silent.sh
2024-12-23 11:14:15 +01:00

12 lines
562 B
Bash
Executable file

#!/usr/bin/env sh
###
# Benchmark Ruff's performance against a variety of similar tools, suppressing output as much as
# possible (so as to reduce I/O overhead).
###
hyperfine --ignore-failure --warmup 5 \
"./target/release/ruff check ./crates/ruff_linter/resources/test/cpython/ --no-cache --silent --exit-zero" \
"pycodestyle ./crates/ruff_linter/resources/test/cpython -qq" \
"flake8 ./crates/ruff_linter/resources/test/cpython -qq --exit-zero" \
"pylint ./crates/ruff_linter/resources/test/cpython -j 0 --recursive=y --disable=E,W,C,R--exit-zero"