mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-29 09:18:50 +08:00
mdbx-make: add BENCH_CRUD_MODE option for bench*
targets.
Change-Id: Ic654f0d68868032f288a2948bd4d5427fdaba2d5
This commit is contained in:
parent
7fcf94be64
commit
649dd04020
@ -428,6 +428,7 @@ IOARENA ?= $(shell \
|
|||||||
(test -x ../../@BUILD/src/ioarena && echo ../../@BUILD/src/ioarena) || \
|
(test -x ../../@BUILD/src/ioarena && echo ../../@BUILD/src/ioarena) || \
|
||||||
(test -x ../../src/ioarena && echo ../../src/ioarena) || which ioarena)
|
(test -x ../../src/ioarena && echo ../../src/ioarena) || which ioarena)
|
||||||
NN ?= 25000000
|
NN ?= 25000000
|
||||||
|
BENCH_CRUD_MODE ?= nosync
|
||||||
|
|
||||||
ifneq ($(wildcard $(IOARENA)),)
|
ifneq ($(wildcard $(IOARENA)),)
|
||||||
|
|
||||||
@ -441,10 +442,10 @@ re-bench: clean-bench bench
|
|||||||
define bench-rule
|
define bench-rule
|
||||||
bench-$(1)_$(2).txt: $(3) $(IOARENA) $(lastword $(MAKEFILE_LIST))
|
bench-$(1)_$(2).txt: $(3) $(IOARENA) $(lastword $(MAKEFILE_LIST))
|
||||||
LD_LIBRARY_PATH="./:$$$${LD_LIBRARY_PATH}" \
|
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 && \
|
| tee $$@ | grep throughput && \
|
||||||
LD_LIBRARY_PATH="./:$$$${LD_LIBRARY_PATH}" \
|
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 \
|
| tee -a $$@ | grep throughput \
|
||||||
|| mv -f $$@ $$@.error
|
|| mv -f $$@ $$@.error
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user