github.phpd.cn/hashicorp/consul@v1.4.5/bench/Makefile (about) 1 REQ=262144 2 CLIENTS=64 3 ADDR=http://127.0.0.1:8500/v1/kv/bench 4 DATA="74a31e96-1d0f-4fa7-aa14-7212a326986e" 5 MAXPROCS=4 6 7 all: put get-default get-stale get-consistent 8 9 put: 10 @echo "===== PUT test =====" 11 GOMAXPROCS=${MAXPROCS} boom -m PUT -d ${DATA} -n ${REQ} -c ${CLIENTS} ${ADDR} 12 13 get-default: 14 @echo "===== GET default test =====" 15 GOMAXPROCS=${MAXPROCS} boom -n ${REQ} -c ${CLIENTS} ${ADDR} 16 17 get-stale: 18 @echo "===== GET stale test =====" 19 GOMAXPROCS=${MAXPROCS} boom -n ${REQ} -c ${CLIENTS} ${ADDR}?stale 20 21 get-consistent: 22 @echo "===== GET consistent test =====" 23 GOMAXPROCS=${MAXPROCS} boom -n ${REQ} -c ${CLIENTS} ${ADDR}?consistent 24