add tps extractor script

pull/37/head
Minh Doan 6 years ago
parent 7f46d20cf0
commit 8bff3952ec
  1. 9
      aws-experiment-launch/get_leader_tps_average.sh

@ -0,0 +1,9 @@
if [ $# -eq 0 ]; then
echo "Please the directory of the log"
exit 1
fi
DIR=$1
for file in $(ls $DIR/*leader*)
do
cat $file | egrep -o "TPS=[0-9]+" | cut -f2 -d "=" | awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }';
done
Loading…
Cancel
Save