summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--bench/bld.sub45
2 files changed, 42 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 78f8b54..3e6eb19 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,10 @@ check: all
./mbldwrap.sh test:runtest
./mbldwrap.sh test
-bench: all
- $(MAKE) -C bench bench
+.PHONY: bench
+bench:
+ mbld
+ mbld bench:benchit
.PHONY: bootstrap
bootstrap: buildmyr
diff --git a/bench/bld.sub b/bench/bld.sub
index c6f6365..a6117ba 100644
--- a/bench/bld.sub
+++ b/bench/bld.sub
@@ -1,10 +1,41 @@
-bin intsort = intsort.myr ;;
-bin copious-allocs = copious-allocs.myr ;;
-bin sha1-compute = sha1-compute.myr ;;
-bin bigfactorial = bigfactorial.myr ;;
-bin mandelbrot = mandelbrot.myr ;;
-bin regex-match = regex-match.myr ;;
-bin runbench = runbench.myr ;;
+bin intsort =
+ intsort.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
+bin copious-allocs =
+ copious-allocs.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
+bin sha1-compute =
+ sha1-compute.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+ lib @/lib/cryptohash:cryptohash
+;;
+bin bigfactorial =
+ bigfactorial.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
+bin mandelbrot =
+ mandelbrot.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+ lib @/lib/bio:bio
+;;
+bin regex-match =
+ regex-match.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+ lib @/lib/regex:regex
+;;
+bin runbench =
+ runbench.myr
+ lib @/lib/std:std
+ lib @/lib/sys:sys
+;;
cmd benchit =
./runbench