benchmark/make is no longer a trap

This commit is contained in:
anon 2023-09-09 18:20:25 +02:00
parent 0456f8595b
commit a158a27697

View File

@ -3,11 +3,6 @@
CXXFLAGS := -O2
BUILD.cpp := ${CXX} ${CXXFLAGS} ${CPPFLAGS}
test: build
export LD_LIBRARY_PATH=$$(realpath .):$$LD_LIBRARY_PATH
perf stat -r 10000 ./gnu_racer.out
perf stat -r 10000 ./jeger_racer.out
build: jeger gnu
jeger: ../source/vector.c ../source/jeger.c jeger_racer.cpp
@ -18,5 +13,12 @@ jeger: ../source/vector.c ../source/jeger.c jeger_racer.cpp
gnu: gnu_racer.cpp
${BUILD.cpp} gnu_racer.cpp -o gnu_racer.out
test: build
export LD_LIBRARY_PATH=$$(realpath .):$$LD_LIBRARY_PATH
perf stat -r 10000 ./gnu_racer.out
perf stat -r 10000 ./jeger_racer.out
clean:
rm *.so *.out
.PHONY: test