From 60cedddde8a77e1509bc1148bf1c08c64471a2ad Mon Sep 17 00:00:00 2001 From: 12bitfloat <12bitfloat@example.com> Date: Mon, 6 Oct 2025 13:52:54 +0200 Subject: [PATCH] Update makefile and README --- Makefile | 9 ++++++++- README.md | 29 ++++++++++++++++++++++------- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index cc9a6e7..c69eb12 100644 --- a/Makefile +++ b/Makefile @@ -21,12 +21,14 @@ build_borded_cpp: build_risspam: @echo "Compiling 12bitfloat_risspam project." - cd 12bitfloat_rust/risspam && cargo run --release && cp target/release/risspam ../../ + cd 12bitfloat_rust/risspam && cargo build --release && cp target/release/risspam ../../ build_jest: @echo "compiling jest_rust project" cd jest_rust && cargo build --release && cp target/release/jisspam .. +build_all: build build_py build_cpp build_borded_cpp build_risspam build_jest + run: run_spam wl run_not_spam run_risspam: run_spam_risspam run_not_spam_risspam @@ -59,9 +61,14 @@ publish: @./publish risspam @rm publish @rm env.py + benchmark: -@rm -rf books @echo "Extracting books." @tar -xzf books.tar.gz books/ @echo "Extracted books." @python bench.py + +# Skip extracting books over and over +benchmark_only: + @python bench.py diff --git a/README.md b/README.md index e7144d2..0151cbf 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,36 @@ -# Isspam +# isspam Fast as light evaluator for text files to summarize specific details about the text files. -This repository contains two versions of the same algorithm. +This repository contains multiple versions of the same(-ish) algorithm. -Versions: +## Versions + - C (isspam) written by **@retoor** + - Rust (risspam) written by **@12bitfloat** + - C++ (isspam_cpp) written by **@BordedDev** + - Rust (jisspam) written by **@jestdotty** - - Rust (risspam) written by 12bitfloat. - - C (isspam) written by retoor. ## Building +Build all versions to the repo root: ``` -make build +make build_all ``` -Build isspam with memory check (requires valgrind to be installed): + +Build isspam (C) with memory check (requires valgrind to be installed): ``` make valgrind ``` + +## Benchmarking +After all binaries have been build to the repo root, you can benchmark them like this: +``` +make benchmark +``` +or without extracting books again: +``` +make benchmark_only +``` + ## Running ### Using files as parameter ```