lean4-htt/tests/bench-radar
Garmelon cec9758c2d
chore: measure dynamic symbols in benchmarks (#11568)
Add back the dynamic symbol measurements that were removed in #11264.
2025-12-11 16:10:27 +00:00
..
build
size chore: measure dynamic symbols in benchmarks (#11568) 2025-12-11 16:10:27 +00:00
measure.py
README.md
repeatedly.py
run_build

Lean 4 benchmark suite

This directory contains the new Lean 4 benchmark suite. It is built around radar and benchmark results can be viewed on the Lean FRO radar instance. To run the entire benchmark suite, execute the script called run.

Benchmarks are organized into subdirectories. Each benchmark directory must contain a script called run that executes the benchmark, as well as any additional benchmark-specific required files. Ideally, each benchmark directory also contains a README.md explaining the benchmark.

A benchmark's run script emits measurements as JSON objects as defined by radar's bench repo specification. It can emit the measurement in one of two ways:

  1. Append the measurement to the file radar.jsonl in the repository root. This file follows the JSON Lines format.
  2. Print a line on stdout or stderr containing radar::measurement= followed by the measurement. After the measurement, only whitespace is allowed.

All scripts related to the new benchmark suite are contained in this directory. The files at tests/bench belong to the old suite. The *.py symlinks are only for convenience when editing the python scripts in VSCode, so the python extensions (in particular pyrefly) treat it as a python file.