Compare commits

..

7 commits

Author SHA1 Message Date
482c24f90e
Update benchmarks 2022-07-24 12:22:35 +02:00
83ad1c837e
Update benchmarks 2022-07-24 12:05:28 +02:00
a2817b2681
More Benchmarks 2022-07-24 11:59:59 +02:00
dc3ceecd44
Update benchmarks 2022-07-24 10:10:34 +02:00
74c632aa5d
Update benchmarks 2022-07-24 10:07:57 +02:00
a4a061c95b
More benchmarks 2022-07-24 09:48:19 +02:00
996c444ac9
Add benchmarks 2022-07-24 07:54:14 +02:00
3 changed files with 4 additions and 6 deletions

BIN
Ausarbeitung/Benchmarks.ods Normal file

Binary file not shown.

View file

@ -9,7 +9,7 @@ ifeq ($(DETAILED_BENCHMARK), true)
CFLAGS += -DMD2_DETAILED_BENCHMARK CFLAGS += -DMD2_DETAILED_BENCHMARK
endif endif
LDFLAGS = -pthread LDFLAGS = -pthread
TESTFILES = t/1 t/2 t/5 t/7 t/10 t/25 t/50 t/75 t/100 t/250 t/500 t/750 t/1000 t/1500 t/2000 t/2500 t/3000 t/3500 t/4000 t/4500 t/5000 t/5500 t/6000 t/6500 t/7000 t/7500 t/8000 t/8500 t/9000 t/9500 t/10000 TESTFILES = t/1 t/2 t/5 t/7 t/10 t/25 t/50 t/75 t/100 t/250 t/500 #t/750 t/1000 t/1500 t/2000 t/2500 t/3000 t/3500 t/4000 t/4500 t/5000 t/5500 t/6000 t/6500 t/7000 t/7500 t/8000 t/8500 t/9000 t/9500 t/10000
TESTFILES_SIZES = ${subst t/,,${TESTFILES}} TESTFILES_SIZES = ${subst t/,,${TESTFILES}}
BLUE=\033[1;36m BLUE=\033[1;36m
RED=\033[1;31m RED=\033[1;31m
@ -56,13 +56,13 @@ benchmarks.csv: md2 ${TESTFILES}
done done
@echo "" >> $@ @echo "" >> $@
@for i in 4; do \ @for i in 0 1 2 3 4; do \
echo ;\ echo ;\
echo -e "${BLUE}=== Testing implementation $$i ===${NC}";\ echo -e "${BLUE}=== Testing implementation $$i ===${NC}";\
echo -n "Implementierung-$$i" >> $@; \ echo -n "Implementierung-$$i" >> $@; \
for t in $(TESTFILES_SIZES); do \ for t in $(TESTFILES_SIZES); do \
echo -n "- with $${t}MB ... "; \ echo -n "- with $${t}MB ... "; \
if ! rr=$$(./md2 t/$${t} -B1 -V$${i}); then \ if ! rr=$$(./md2 t/$${t} -B3 -V$${i}); then \
echo; \ echo; \
echo -e "${RED}ERROR -> SKIPPED!${NC}"; \ echo -e "${RED}ERROR -> SKIPPED!${NC}"; \
echo -n ";0" >> $@; \ echo -n ";0" >> $@; \
@ -81,7 +81,7 @@ benchmarks: benchmarks.csv
valgrind-check: md2 t/3 valgrind-check: md2 t/3
@for i in 0 1 2 3 4; do \ @for i in 0 1 2 3; do \
echo; \ echo; \
echo -e "${BLUE}=== Testing implementation $$i ===${NC}";\ echo -e "${BLUE}=== Testing implementation $$i ===${NC}";\
if ! valgrind --error-exitcode=1 --leak-check=full --tool=memcheck -s ./md2 t/3 -V$$i -B1; then \ if ! valgrind --error-exitcode=1 --leak-check=full --tool=memcheck -s ./md2 t/3 -V$$i -B1; then \

View file

@ -1,2 +0,0 @@
Implementierung;1;2;5;7;10;25;50;75;100;250;500;750;1000;1500;2000;2500;3000;3500;4000;4500;5000;5500
Implementierung-4;0.179950;0.308132;0.768091;1.077839;1.793499;3.786488;7.788925;11.049307;15.051300;37.564573;74.324851;112.160912;150.740498;225.111342;305.938520;381.063308;463.611798;533.670234;614.535749;63.418839;137.076754;292.555679
1 Implementierung 1 2 5 7 10 25 50 75 100 250 500 750 1000 1500 2000 2500 3000 3500 4000 4500 5000 5500
2 Implementierung-4 0.179950 0.308132 0.768091 1.077839 1.793499 3.786488 7.788925 11.049307 15.051300 37.564573 74.324851 112.160912 150.740498 225.111342 305.938520 381.063308 463.611798 533.670234 614.535749 63.418839 137.076754 292.555679