shithub: mc

ref: 3e24000ddb275369ba68282e2c9406f6b1c23736
dir: /bench/bld.sub/

View raw version
bin intsort {noinst,tag=bench} =
	intsort.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
;;
bin copious-allocs {noinst,tag=bench} =
	copious-allocs.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
;;
bin sha1-compute {noinst,tag=bench} =
	sha1-compute.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
	lib ../lib/cryptohash:cryptohash
;;
bin bigfactorial {noinst,tag=bench} =
	bigfactorial.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
;;
bin mandelbrot {noinst,tag=bench} =
	mandelbrot.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
	lib ../lib/bio:bio
;;
bin regex-match {noinst,tag=bench} =
	regex-match.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
	lib ../lib/regex:regex
;;

bin many-memcpy {noinst,tag=bench} =
	many-memcpy.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
;;

# benchmark runner
bin runbench {noinst,tag=bench} =
	runbench.myr
	lib ../lib/std:std
	lib ../lib/sys:sys
;;

cmd benchit {tag=bench} =
	./runbench
		intsort
		copious-allocs 
		sha1-compute
		bigfactorial
		mandelbrot
		regex-match
		many-memcpy
;;