From 4d97f8a2e8b119d343705c2ed948b11ec5e274aa Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Wed, 18 Jul 2018 14:58:41 -0700 Subject: [PATCH] add tps calculation --- aws-experiment-launch/cal_tps.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 aws-experiment-launch/cal_tps.sh diff --git a/aws-experiment-launch/cal_tps.sh b/aws-experiment-launch/cal_tps.sh new file mode 100644 index 000000000..2df68dc90 --- /dev/null +++ b/aws-experiment-launch/cal_tps.sh @@ -0,0 +1 @@ +for file in $(ls *leader*); do echo $file; cat $file | grep TPS | head -n 2 | cut -f2 -d ":" | cut -f1 -d "," | awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }'; done