GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ruff/scripts/benchmarks at rustpython-class-base-syntax · RustPython/ruff

Expand file tree

/

benchmarks

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

benchmarks

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
dark.svg
dark.svg
 
 
graph-spec.json
graph-spec.json
 
 
light.svg
light.svg
 
 
pyproject.toml
pyproject.toml
 
 
run.sh
run.sh
 
 
run_all.sh
run_all.sh
 
 
run_comparisons.sh
run_comparisons.sh
 
 
run_formatter.sh
run_formatter.sh
 
 
run_plugins.sh
run_plugins.sh
 
 
run_silent.sh
run_silent.sh
 
 
setup.sh
setup.sh
 
 
uv.lock
uv.lock
 
 

README.md

Outline

benchmarks

Utilities for benchmarking Ruff.

Getting Started

Run ./scripts/benchmarks/setup.sh to clone the benchmarking target (CPython).

If you're looking to benchmark Ruff against other tools, you'll also need to run uv venv --project ./scripts/benchmarks, activate the venv and finally uv sync --project ./scripts/benchmarks to create a virtual environment with the required dependencies.

Running Benchmarks

Run ./scripts/benchmarks/run.sh to run Ruff over the target repo (CPython). The ./scripts/benchmarks folder contains a few other benchmarks (e.g., scripts/benchmarks/run_comparisons.sh compares Ruff to a variety of other tools).

Generating Plots

The Vega specification for the benchmark plot depicted in the root README can be found at scripts/benchmarks/graph-spec.json. You can render this JSON spec in the Vega Editor.

The images seen in the README are generated by exporting the rendered Vega spec as SVG (at around 688px wide) and manually bolding the Ruff title and benchmark time. The dark mode variant is generated by changing the fill from fill="#333333" to fill="#C9D1D9".

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.