mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 02:13:54 +00:00
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.
7 lines
109 B
Tcsh
Executable File
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
|