mdbx-make: add stub bench-related targets for case no ioarena.

This commit is contained in:
Leonid Yuriev 2021-07-25 18:18:57 +03:00
parent f4f166a66d
commit e6a83654a8

View File

@ -664,16 +664,22 @@ endif
NN ?= 25000000 NN ?= 25000000
BENCH_CRUD_MODE ?= nosync BENCH_CRUD_MODE ?= nosync
ifneq ($(wildcard $(IOARENA)),false)
.PHONY: bench bench-clean bench-couple re-bench bench-quartet bench-triplet
bench-clean: bench-clean:
@echo ' REMOVE bench-*.txt _ioarena/*' @echo ' REMOVE bench-*.txt _ioarena/*'
$(QUIET)rm -rf bench-*.txt _ioarena/* $(QUIET)rm -rf bench-*.txt _ioarena/*
re-bench: bench-clean bench re-bench: bench-clean bench
ifeq ($(or $(IOARENA),false),false)
bench bench-quartet bench-triplet bench-couple:
$(QUIET)echo 'The `ioarena` benchmark is required.' >&2 && \
echo 'Please clone and build the https://github.com/pmwkaa/ioarena.git within a neighbouring `ioarena` directory.' >&2 && \
false
else
.PHONY: bench bench-clean bench-couple re-bench bench-quartet bench-triplet
define bench-rule define bench-rule
bench-$(1)_$(2).txt: $(3) $(IOARENA) $(lastword $(MAKEFILE_LIST)) bench-$(1)_$(2).txt: $(3) $(IOARENA) $(lastword $(MAKEFILE_LIST))
@echo ' RUNNING ioarena for $1/$2...' @echo ' RUNNING ioarena for $1/$2...'