Files
quorum-examples/examples/7nodes/bench/public-sync.sh
2018-02-08 16:50:13 -05:00

14 lines
346 B
Bash
Executable File

#!/bin/sh
set -u
set -e
# c = number of concurrent connections (sending transactions over and over)
# d = duration, e.g. 30 (30 seconds), 5m, 1h
# t = threads Wrk should use, e.g. 2
#
# Example: ./bench-public-sync.sh 10 1m 2
c=$1
d=$2
t=$3
curl -d '' http://localhost:22000/
wrk -s send-public-sync.lua -c $c -d $d -t $t http://localhost:22000/