Performance upgrade C version.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user