Download scripts/bench/README.md from cfahlgren1/lean-flt: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/datasets/cfahlgren1/lean-flt/resolve/main/scripts/bench/README.md
- Command line
-
hf download hf://datasets/cfahlgren1/lean-flt/scripts/bench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/cfahlgren1/lean-flt/resolve/main/scripts/bench/README.md
FLT benchmark suite
This directory contains the FLT benchmark suite. It is built around radar and benchmark results can be viewed on the Lean FRO radar instance.
To execute the benchmark suite, run scripts/bench/run from the repo root.
All measurements will be placed into measurements.jsonl in the repo root.
Radar sums any duplicated measurements with matching metrics.
To post-process the measurements.jsonl file this way,
run scripts/bench/combine.py measurements.jsonl -o measurements_combined.jsonl
in the repo root after executing the benchmark suite.
The *.py symlinks exist only so the python files are a bit nicer to edit
in text editors that rely on the file ending.
Adding a benchmark
To add a benchmark to the suite, follow these steps:
- Create a new folder containing a
runscript and aREADME.mdfile describing the benchmark, as well as any other files required for the benchmark. - Edit
scripts/bench/runto call therunscript of your new benchmark.
The following environment variables are available to an individual benchmark's run script:
ROOT_DIR: absolute path to the root of the repoBENCH_DIR: absolute path to this directory (scripts/bench).OUTPUT_FILE: absolute path to themeasurements.jsonlfile that benchmarks should append their measurements to