|
|
||
|---|---|---|
| .. | ||
| build | ||
| size | ||
| 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:
- Append the measurement to the file
radar.jsonlin the repository root. This file follows the JSON Lines format. - 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.