From adf433a1bc4692211917c375f36702b3198b7025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 28 Dec 2022 21:42:57 +0300 Subject: [PATCH] =?UTF-8?q?mdbx-make:=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1?= =?UTF-8?q?=D0=BE=D1=82=D0=BA=D0=B0=20=D0=BC=D0=B0=D0=BA=D1=80=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20bench-=D1=86=D0=B5=D0=BB=D0=B5=D0=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GNUmakefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 85147f74..e46a36bf 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -813,15 +813,20 @@ define bench-rule bench-$(1)_$(2).txt: $(3) $(IOARENA) $(lastword $(MAKEFILE_LIST)) @echo ' RUNNING ioarena for $1/$2...' $(QUIET)(export LD_LIBRARY_PATH="./:$$$${LD_LIBRARY_PATH}"; \ - ldd $(IOARENA) && \ + ldd $(IOARENA) | grep -i $(1) && \ + $(IOARENA) -D $(1) -B batch -m $(BENCH_CRUD_MODE) -n $(2) \ + | tee $$@ | grep throughput | sed 's/throughput/batch×N/' && \ $(IOARENA) -D $(1) -B crud -m $(BENCH_CRUD_MODE) -n $(2) \ - | tee $$@ | grep throughput && \ + | tee -a $$@ | grep throughput | sed 's/throughput/ crud/' && \ $(IOARENA) -D $(1) -B iterate,get,iterate,get,iterate -m $(BENCH_CRUD_MODE) -r 4 -n $(2) \ - | tee -a $$@ | grep throughput \ - ) || mv -f $$@ $$@.error + | tee -a $$@ | grep throughput | sed '0,/throughput/{s/throughput/iterate/};s/throughput/ get/' && \ + $(IOARENA) -D $(1) -B delete -m $(BENCH_CRUD_MODE) -n $(2) \ + | tee -a $$@ | grep throughput | sed 's/throughput/ delete/' && \ + true) || mv -f $$@ $$@.error endef + $(eval $(call bench-rule,mdbx,$(NN),libmdbx.$(SO_SUFFIX))) $(eval $(call bench-rule,sophia,$(NN)))