From 649dd040203dd8ba7d5a9e33c07a6757e4947162 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 30 Sep 2020 23:42:55 +0300 Subject: [PATCH] mdbx-make: add BENCH_CRUD_MODE option for `bench*` targets. Change-Id: Ic654f0d68868032f288a2948bd4d5427fdaba2d5 --- GNUmakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 59a1e1e7..6467330d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -428,6 +428,7 @@ IOARENA ?= $(shell \ (test -x ../../@BUILD/src/ioarena && echo ../../@BUILD/src/ioarena) || \ (test -x ../../src/ioarena && echo ../../src/ioarena) || which ioarena) NN ?= 25000000 +BENCH_CRUD_MODE ?= nosync ifneq ($(wildcard $(IOARENA)),) @@ -441,10 +442,10 @@ re-bench: clean-bench bench define bench-rule bench-$(1)_$(2).txt: $(3) $(IOARENA) $(lastword $(MAKEFILE_LIST)) LD_LIBRARY_PATH="./:$$$${LD_LIBRARY_PATH}" \ - $(IOARENA) -D $(1) -B crud -m nosync -n $(2) \ + $(IOARENA) -D $(1) -B crud -m $(BENCH_CRUD_MODE) -n $(2) \ | tee $$@ | grep throughput && \ LD_LIBRARY_PATH="./:$$$${LD_LIBRARY_PATH}" \ - $(IOARENA) -D $(1) -B get,iterate -m sync -r 4 -n $(2) \ + $(IOARENA) -D $(1) -B get,iterate -m $(BENCH_CRUD_MODE) -r 4 -n $(2) \ | tee -a $$@ | grep throughput \ || mv -f $$@ $$@.error