diff --git a/.gitignore b/.gitignore index d853c60..1a2569a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ isspam risspam isspam_cpp .build-trigger-2014-12-02 15:26 +borded_cpp_exec \ No newline at end of file diff --git a/Makefile b/Makefile index 5f45dc8..fbc3bbd 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CC = gcc CFLAGS = -Ofast -all: build run valgrind build_risspam run_risspam build_cpp +all: build run valgrind build_risspam run_risspam build_cpp build_borded_cpp build: @echo "Compiling retoor_c project.". diff --git a/bench.py b/bench.py index 0385e0c..5ada2fc 100644 --- a/bench.py +++ b/bench.py @@ -11,4 +11,7 @@ print("Time Rust:",time.time() - time_start) time_start = time.time() subprocess.check_output('./isspam_cpp books/*.txt', shell=True) print("Time CPP:",time.time() - time_start) +time_start = time.time() +subprocess.check_output('./borded_cpp_exec books/*.txt', shell=True) +print("Time Borded CPP:",time.time() - time_start) print("***end benchmark***") diff --git a/borded_cpp/Dockerfile b/borded_cpp/Dockerfile index 92d7b8b..92dfc4e 100644 --- a/borded_cpp/Dockerfile +++ b/borded_cpp/Dockerfile @@ -1,3 +1,3 @@ -FROM alpine:latest -RUN apk update && apk add build-base sqlite-dev vim jansson-dev jansson-static cmake +FROM gcc:latest +RUN apt update && apt install -y cmake gdb WORKDIR /home