mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
377 B
14 lines
377 B
# !/bin/bash
|
|
|
|
set -x
|
|
|
|
export LOG_LEVEL=fatal
|
|
export STORE_DRIVER=redis
|
|
export STORE_HOST=localhost
|
|
export STORE_PORT=6379
|
|
export BUSI_REDIS=localhost:6379
|
|
./bench redis &
|
|
echo 'sleeping 3s for dtm bench to run up.' && sleep 3
|
|
curl "http://127.0.0.1:8083/api/busi_bench/benchFlashSalesReset"
|
|
ab -n 300000 -c 20 "http://127.0.0.1:8083/api/busi_bench/benchFlashSales"
|
|
pkill bench
|
|
|