shithub: mc

ref: 21ead16ccde2a943abe68ef279c89dbff030cb87
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/crypto:crypto
;;
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
;;