From fbb1db28d7d4ec4a94dded5015fe27d074f48d6c Mon Sep 17 00:00:00 2001 From: BordedDev <> Date: Thu, 20 Mar 2025 23:32:24 +0100 Subject: [PATCH] Updated Dockerfile to use gcc Added borded cpp to bench Made borded part of make all --- .gitignore | 1 + Makefile | 2 +- bench.py | 3 +++ borded_cpp/Dockerfile | 4 ++-- 4 files changed, 7 insertions(+), 3 deletions(-) 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