From 0f087c195b4219a33d45d17ca843d9a74b2e017d Mon Sep 17 00:00:00 2001 From: chaosma Date: Wed, 13 Feb 2019 16:11:22 -0800 Subject: [PATCH] add log for state syncing test; will be used for jenkins server later (#443) --- test/cal_tps.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/cal_tps.sh b/test/cal_tps.sh index 3a0985262..aa6069037 100755 --- a/test/cal_tps.sh +++ b/test/cal_tps.sh @@ -31,6 +31,8 @@ fi NUM_SHARDS=${#FILES[@]} SUM=0 NUM_CONSENSUS=0 +NUM_TOTAL_NODES=$( expr $NUM_SHARDS + $NUM_VALIDATORS ) +NUM_SIGS=0 declare -A TPS @@ -43,12 +45,14 @@ for f in "${FILES[@]}"; do else avg_tps=0 fi + num_sigs=$(grep numOfSignatures $f | tail -1 | cut -f 5 -d , | cut -f 2 -d :) TPS[$leader]="$num_consensus, $avg_tps" NUM_CONSENSUS=$(expr $NUM_CONSENSUS + $num_consensus ) SUM=$( expr $SUM + $avg_tps_int ) + NUM_SIGS=$( expr $NUM_SIGS + $num_sigs) done -echo $NUM_SHARDS shards, $NUM_CONSENSUS consensus, $SUM total TPS, $NUM_VALIDATORS nodes +echo $NUM_SHARDS shards, $NUM_CONSENSUS consensus, $SUM total TPS, $NUM_VALIDATORS nodes, $NUM_TOTAL_NODES total nodes, $NUM_SIGS total signatures for t in "${!TPS[@]}"; do echo $t, ${TPS[$t]} done