diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-22 13:02:01 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-22 13:02:01 -0800 |
commit | 0bc5cd38d4387e2624b8c67db0b5e282fd486421 (patch) | |
tree | 2e2df49f0a292899bfdf2d832ee45a1f546bb450 /Makefile | |
parent | 36f6ab248ab8391bb6dbaab97e23010a9fb82ce8 (diff) |
Revised benchmark procedure.
Now we take the difference of the time to process the input
and the time to run with no input. This compensates for
slow startup time in dynamic languages.
See comments on 2dcef8a
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -127,6 +127,7 @@ progit/progit.md: progit bench: $(BENCHFILE) { sudo renice 99 $$$$; \ for x in `seq 1 $(NUMRUNS)` ; do \ + /usr/bin/env time -p ${PROG} </dev/null >/dev/null ; \ /usr/bin/env time -p ${PROG} $< >/dev/null ; \ done \ } 2>&1 | grep 'real' | awk '{print $$2}' | python3 'bench/stats.py' |