Files
mercury/tests/benchmarks/Mmakefile
Peter Wang adb22a74a7 Delete MERCURY_OPTIONS -a -r -t options.
The MERCURY_OPTIONS environment variable supported these options

    -a  benchmark_all_solns
    -r  repeats
    -t  use_own_timer

to perform microbenchmarks very early on in the Mercury project,
but the time for that is past.

runtime/mercury_wrapper.c:
    Delete code supporting -a, -r and -t options.

scripts/mprof_merge_runs:
    Delete mention of -r option.

tests/benchmarks/Mmakefile:
    Delete/comment out rules that makes use of the -r option.
2023-07-14 11:03:03 +10:00

59 lines
1.5 KiB
Makefile

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#
TESTS_DIR = ..
THIS_DIR = benchmarks
MAYBE_J1 =
# To test the performance of the benchmarks (with I/O suppressed),
# uncomment one the following two lines. The `.hlc' version should be
# used for --high-level-code grades, the other version for LLDS grades.
#
# MLFLAGS += -w "`extract $(*:_init=) '' BenchEntry.hlc`"
# MLFLAGS += -w "`extract $(*:_init=) '' BenchEntry`"
#-----------------------------------------------------------------------------#
PROGS = \
cqueens \
crypt \
deriv \
deriv2 \
nrev \
poly \
primes \
qsort \
queens \
query \
tak
TESTS = $(PROGS)
include ../Mmake.common
# Module-specific options should go in Mercury.options so they can be found
# by `mmc --make'.
include Mercury.options
#-----------------------------------------------------------------------------#
%.runtest: %.res ;
CS = $(PROGS:%=%.c)
cs: $(CS)
dir.%: $(PROGS)
-mkdir $@
cp $(PROGS) $@
cp BenchEntry $@
# The MERCURY_OPTIONS -r option was removed so if you want to time these
# programs you will need to modify them to use the benchmarking module.
#%.time: %
# { count=`awk '/$*/ { print $$2; exit; }' < BenchRepeatCounts`; \
# echo "$$count "; \
# MERCURY_OPTIONS="-t -r$$count" ./repeat_time 3 ./$*; } 2>&1 | tee $@
#-----------------------------------------------------------------------------#