lean4-htt/tests/bench
2019-05-31 10:48:50 +02:00
..
.gitignore
arith_eval.ml
binarytrees.ghc-6.hs
binarytrees.lean
binarytrees.ocaml-2.ml
binarytrees.swift feat(tests/bench): add safe binarytrees.swift from https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/binarytrees-swift-1.html 2019-05-30 19:33:38 +02:00
compile.sh
const_fold.hs chore(tests/bench): rename benchmarks 2019-05-30 16:25:41 +02:00
const_fold.lean chore(tests/bench): rename benchmarks 2019-05-30 16:25:41 +02:00
const_fold.ml chore(tests/bench): rename benchmarks 2019-05-30 16:25:41 +02:00
const_fold.sml chore(tests/bench): rename benchmarks 2019-05-30 16:25:41 +02:00
const_fold.swift chore(tests/bench): rename benchmarks 2019-05-30 16:25:41 +02:00
default.nix feat(tests/bench): add Swift support 2019-05-30 19:33:23 +02:00
deriv.hs
deriv.lean
deriv.ml
deriv.sml
deriv.swift test(tests/bench): add deriv.swift 2019-05-30 11:34:58 -07:00
frontend_test.lean
ghc-gc.py
lean-gc.py
leanpkg.path
Makefile chore(tests/bench): further tweak Swift support 2019-05-31 10:48:50 +02:00
mlkit-gc.py
nixpkgs.nix
ocaml-gc.py
perf.py
qsort.hs
qsort.lean
qsort.ml
qsort.sml
qsort.swift feat(tests/bench): add qsort.swift 2019-05-31 00:40:09 +02:00
rbmap.hs
rbmap.lean
rbmap.library.lean
rbmap.ml
rbmap.sml
rbmap.swift tests(tests/bench): add rbmap.swift 2019-05-30 14:47:06 -07:00
rbmap2.lean
rbmap3.lean
rbmap4.lean
rbmap_checkpoint.hs chore(tests/bench/rbmap_checkpoint): myLen version for GHC 2019-05-30 07:35:22 -07:00
rbmap_checkpoint.lean chore(tests/bench/rbmap_checkpoint): use myLean 2019-05-30 07:30:07 -07:00
rbmap_checkpoint.ml test(tests/bench/rbmap_checkpoint): OCaml version using myLen 2019-05-30 07:40:53 -07:00
rbmap_checkpoint.sml chore(tests/bench/rbmap_checkpoint): use myLean 2019-05-30 07:30:07 -07:00
rbmap_checkpoint.swift test(tests/bench/rbmap_checkpoint): add swift version 2019-05-30 14:35:58 -07:00
rbmap_checkpoint2.lean
rbmap_checkpoint2.sml
README.md chore(tests/bench): add readme 2019-05-29 17:32:35 +02:00
report.py chore(tests/bench): further tweak Swift support 2019-05-31 10:48:50 +02:00
run.sh
temci.yaml
unionfind.lean chore(tests/bench): rename benchmarks 2019-05-30 16:25:41 +02:00

Lean Benchmark Suite

This folder contains multiple small Lean programs for benchmarking and comparing their performance to other Lean configurations and functional compilers using the temci benchmarking tool.

We recommend using Nix for building/obtaining all Lean variants and used compilers in a reproducible way. After installing Nix, running the benchmarks is as easy as

nix-shell --run make

This will record 50 runs for each benchmark configuration (this can be changed with min_runs in temci.yaml), generate results in report_lean.csv and report_cross.csv, and print them to stdout in a tabulated format. It will also generate HTML reports in report/ comparing the time-based benchmarks.

In order to reduce noise in the benchmarking data, you may instead want to try calling make inside a temci shell:

nix-shell --run "temci short shell --sudo --preset usable --cpuset_active make"

Using root powers, this will temporarily configure your machine similarly to the LLVM benchmarking recommendations and move all your other processes to a single CPU core.