feat: add build_py target and benchmark for Python isspam implementation

Add a new Makefile target to copy the Python isspam script into the project root, and extend the benchmark script to measure execution time for the Python version alongside existing C and C++ implementations.
This commit is contained in:
2025-03-23 02:25:51 +00:00
parent 49a2136030
commit 219650f4f1
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -1,12 +1,16 @@
CC = gcc
CFLAGS = -Ofast
all: build run valgrind build_risspam run_risspam build_cpp build_borded_cpp
all: build run valgrind build_risspam run_risspam build_cpp build_borded_cpp build_py
build:
@echo "Compiling retoor_c project.".
@$(CC) $(CFLAGS) retoor_c/isspam.c -o isspam
build_py:
@echo "Copying py file"
@cp retoor_c/isspam.py isspam.py
build_cpp:
@echo "Compiling C++ version of isspam."
@g++ -Ofast retoor_c/isspam.cpp -o isspam_cpp