From 5940254d9363ed8de9ba79a65cb074ec5aa4e69f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 27 Oct 2024 16:17:32 +0200 Subject: initial containers --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..48e8cb8 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +check: + mkdir -p build + $(CC) -g -Iinclude tests/vec.c -o build/vec + $(CC) -g -Iinclude tests/htrie.c -o build/htrie + valgrind -q --error-exitcode=1 ./build/vec + valgrind -q --error-exitcode=1 ./build/htrie + +bench: + mkdir -p build + $(CC) -g -O2 -Iinclude tests/vec.c -o build/vec_opt + $(CC) -g -O2 -Iinclude tests/htrie.c -o build/htrie_opt + time ./build/vec_opt 2> build/vec_bench.txt + time ./build/htrie_opt 2> build/htrie_bench.txt + +clean: + rm -rf build -- cgit v1.2.3