Added borded cpp to bench Made borded part of make all
This commit is contained in:
parent
b24b1b933c
commit
fbb1db28d7
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ isspam
|
|||||||
risspam
|
risspam
|
||||||
isspam_cpp
|
isspam_cpp
|
||||||
.build-trigger-2014-12-02 15:26
|
.build-trigger-2014-12-02 15:26
|
||||||
|
borded_cpp_exec
|
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Ofast
|
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:
|
build:
|
||||||
@echo "Compiling retoor_c project.".
|
@echo "Compiling retoor_c project.".
|
||||||
|
3
bench.py
3
bench.py
@ -11,4 +11,7 @@ print("Time Rust:",time.time() - time_start)
|
|||||||
time_start = time.time()
|
time_start = time.time()
|
||||||
subprocess.check_output('./isspam_cpp books/*.txt', shell=True)
|
subprocess.check_output('./isspam_cpp books/*.txt', shell=True)
|
||||||
print("Time CPP:",time.time() - time_start)
|
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***")
|
print("***end benchmark***")
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
FROM alpine:latest
|
FROM gcc:latest
|
||||||
RUN apk update && apk add build-base sqlite-dev vim jansson-dev jansson-static cmake
|
RUN apt update && apt install -y cmake gdb
|
||||||
WORKDIR /home
|
WORKDIR /home
|
||||||
|
Loading…
Reference in New Issue
Block a user