More Benchmarks

This commit is contained in:
Dorian Zedler 2022-07-24 11:59:59 +02:00
parent dc3ceecd44
commit a2817b2681
Signed by: dorian
GPG key ID: 989DE36109AFA354
2 changed files with 3 additions and 3 deletions

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" >> $@; \