Files
mercury/tests/benchmarks/repeat_time
Fergus Henderson 4870d6445f Add some code for running timing tests on the
Estimated hours taken: 1

Add some code for running timing tests on the
programs in the tests/benchmarks directory.

tests/benchmarks/Mmakefile:
	Add new target `times'.

tests/benchmarks/BenchEntry:
tests/benchmarks/BenchEntry.hlc:
	New files, for use by the `times' target in the Mmakefile.
	These two files contain the names of the non-I/O entry points
	for the various benchmarks, for LLDS and MLDS grades respectively.

tests/benchmarks/BenchRepeatCounts:
	New file.  The contents of this file specify how many times
	to repeat each benchmark.

tests/benchmarks/repeat_time:
	New file, for use by the `times' target in the Mmakefile.
	This is a tiny (t)csh script for running a command repeatedly
	and timing how long it takes.
2001-02-28 02:57:06 +00:00

7 lines
109 B
Tcsh
Executable File

#!/bin/csh -f
#!/usr/bin/csh -f
#!/usr/local/bin/tcsh -f
set count=$argv[1]
shift
repeat $count time $argv:q