You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We add some dune rules to benchmark the compilation of single .v files.
It works by writing (theories/file/to/bench.v) in a file called
`file_to_bench` and running `dune build @bench`. This uses a program
called `hyperfine` which must be available for this to work. After the
bench is run it outputs a bench report.
Typical output:
```
[ali@allosaurus:~/HoTT]$ dune build @bench
Starting bench. This may take a while.
Bench finished, report at bench_report:
Benchmark 1: /nix/store/v97xkrdzqhwrz8305w05vfix32y5qifa-coq-8.19.1/bin/coqc -R ./theories HoTT -noinit -indices-matter benched_file.v
Time (mean ± σ): 6.421 s ± 0.024 s [User: 6.202 s, System: 0.195 s]
Range (min … max): 6.364 s … 6.461 s 10 runs
```
Signed-off-by: Ali Caglayan <[email protected]>
<!-- ps-id: 9ddbc823-231a-471c-9eb2-ec07405c0998 -->
0 commit comments