mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
makefile: add bench-fib target
This commit is contained in:
parent
3d972cc0cd
commit
bbe96de306
1 changed files with 12 additions and 0 deletions
12
Makefile
12
Makefile
|
|
@ -16,4 +16,16 @@ WATCH?=@all
|
|||
watch:
|
||||
dune build $(DUNE_OPTS) -w $(WATCH)
|
||||
|
||||
DUNE_OPTS_BENCH?=--profile=release
|
||||
|
||||
N?=40
|
||||
bench-fib:
|
||||
@echo running for N=$(N)
|
||||
dune build $(DUNE_OPTS_BENCH) benchs/fib_rec.exe
|
||||
hyperfine \
|
||||
'./_build/default/benchs/fib_rec.exe -psize=1 -n $(N)' \
|
||||
'./_build/default/benchs/fib_rec.exe -psize=8 -n $(N)' \
|
||||
'./_build/default/benchs/fib_rec.exe -psize=16 -n $(N)' \
|
||||
'./_build/default/benchs/fib_rec.exe -n $(N) -seq'
|
||||
|
||||
.PHONY: test clean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue