aboutsummaryrefslogtreecommitdiffstats
path: root/test/raytracer
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/raytracer
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/raytracer')
-rw-r--r--test/raytracer/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/raytracer/Makefile b/test/raytracer/Makefile
index 8f6541a1..24461bd1 100644
--- a/test/raytracer/Makefile
+++ b/test/raytracer/Makefile
@@ -3,7 +3,7 @@ include ../../Makefile.config
CC=../../ccomp
CFLAGS=$(CCOMPOPTS) -stdlib ../../runtime -dparse -dclight -dasm -fstruct-return
LIBS=$(LIBMATH)
-TIME=xtime
+TIME=ocaml unix.cma ../../tools/xtime.ml -mintime 2.0 -minruns 4
OBJS=memory.o gmllexer.o gmlparser.o eval.o \
arrays.o vector.o matrix.o object.o intersect.o surface.o light.o \
@@ -30,4 +30,4 @@ test:
fi
bench:
- @echo -n "raytracer: "; $(TIME) sh -c './render < kal.gml'
+ @$(TIME) -name raytracer -- sh -c './render < kal.gml'