Performance upgrade C version.

This commit is contained in:
2024-12-01 22:02:32 +01:00
parent 6be2d372f2
commit 00d8bdf3ce
4 changed files with 124 additions and 171 deletions
+8 -1
View File
@@ -1,7 +1,7 @@
CC = gcc
CFLAGS = -Wall -Werror -Wextra -Ofast -std=c2x
all: build run valgrind build_risspam run_risspam
all: build run valgrind build_risspam run_risspam benchmark
build:
@echo "Compiling retoor_c project.".
@@ -39,3 +39,10 @@ run_not_spam_risspam:
valgrind: build
valgrind ./isspam ./spam/*.txt
benchmark:
-@rm -rf books
echo "Extracting books."
tar -xzf books.tar.gz books/
echo "Extracted books."
python bench.py