aboutsummaryrefslogtreecommitdiffstats
path: root/test/c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2019-08-25 19:22:03 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2019-09-17 14:37:15 +0200
commitdb96b0e2b156cfa527493f5890cd805f8aa4543a (patch)
tree0968d79506a93a9621d5c720a8d8d20c482a5fa8 /test/c
parent1b2e0534cc60ea45b17e5e1c70c8a28be682c266 (diff)
downloadcompcert-kvx-db96b0e2b156cfa527493f5890cd805f8aa4543a.tar.gz
compcert-kvx-db96b0e2b156cfa527493f5890cd805f8aa4543a.zip
Revise the "bench" entries of the test suite
Initially, the "bench" entries of the test suite used a "xtime" utility developed in-house and not publically available. This commit adds a version of "xtime" written in OCaml (tools/xtime.ml) and updates the "bench" entries of the test/*/Makefile to use it.
Diffstat (limited to 'test/c')
-rw-r--r--test/c/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/c/Makefile b/test/c/Makefile
index 51a8f105..4b521bb5 100644
--- a/test/c/Makefile
+++ b/test/c/Makefile
@@ -7,8 +7,7 @@ CFLAGS=-O1 -Wall
LIBS=$(LIBMATH)
-TIME=xtime -o /dev/null -mintime 2.0 # Xavier's hack
-#TIME=time >/dev/null # Otherwise
+TIME=ocaml unix.cma ../../tools/xtime.ml -o /dev/null -mintime 2.0 -minruns 4
PROGS=fib integr qsort fft fftsp fftw sha1 sha3 aes almabench \
lists binarytrees fannkuch knucleotide mandelbrot nbody \
@@ -48,12 +47,12 @@ test_gcc:
bench_gcc:
@for i in $(PROGS); do \
- echo -n "$$i: "; $(TIME) ./$$i.gcc; \
+ $(TIME) -name $$i -- ./$$i.gcc; \
done
bench:
@for i in $(PROGS); do \
- echo -n "$$i: "; $(TIME) ./$$i.compcert; \
+ $(TIME) -name $$i -- ./$$i.compcert; \
done
clean: