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.
27 lines
943 B
27 lines
943 B
# !/bin/bash
|
|
|
|
set -x
|
|
|
|
export LOG_LEVEL=warn
|
|
export STORE_DRIVER=redis
|
|
export STORE_HOST=localhost
|
|
export STORE_PORT=6379
|
|
cd .. && bench/bench redis &
|
|
echo 'sleeping 3s for dtm bench to run up.' && sleep 3
|
|
ab -n 1000000 -c 10 "http://127.0.0.1:8083/api/busi_bench/benchEmptyUrl"
|
|
pkill bench
|
|
|
|
redis-benchmark -n 300000 SET 'abcdefg' 'ddddddd'
|
|
|
|
redis-benchmark -n 300000 EVAL "redis.call('SET', 'abcdedf', 'ddddddd')" 0
|
|
|
|
redis-benchmark -n 300000 EVAL "redis.call('SET', KEYS[1], ARGV[1])" 1 'aaaaaaaaa' 'bbbbbbbbbb'
|
|
|
|
redis-benchmark -n 3000000 -P 50 SET 'abcdefg' 'ddddddd'
|
|
|
|
redis-benchmark -n 300000 EVAL "for k=1, 10 do; redis.call('SET', KEYS[1], ARGV[1]);end" 1 'aaaaaaaaa' 'bbbbbbbbbb'
|
|
|
|
redis-benchmark -n 300000 -P 50 EVAL "redis.call('SET', KEYS[1], ARGV[1])" 1 'aaaaaaaaa' 'bbbbbbbbbb'
|
|
|
|
redis-benchmark -n 300000 EVAL "for k=1,10 do;local c = cjson.decode(ARGV[1]);end" 1 'aaaaaaaaa' '{"aaaaa":"bbbbb","b":1,"t":"2012-01-01 14:00:00"}'
|
|
|
|
|