diff options
author | 2020-04-24 13:46:06 -0400 | |
---|---|---|
committer | 2020-05-01 09:32:17 -0400 | |
commit | 4f1f7aa8086b81fa37d1e198dcb1e31e68c58f5e (patch) | |
tree | d423d3e9a8b6f8c7fc143463bd1490897e38c127 /testsuites/performance/src/main/resources/testplans/results.sh | |
parent | 67f4023478b3b944024c36db98bfe61e26ea7d49 (diff) |
Update S3P tests for xacml-pdp
Modified jmeter S3P tests per new tosca models. Also added
tests for "default" guard, naming, and optimization policies.
Issue-ID: POLICY-2455
Change-Id: I4607fa0fb5bec1949c6daae6a00948310e1b5531
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'testsuites/performance/src/main/resources/testplans/results.sh')
-rwxr-xr-x | testsuites/performance/src/main/resources/testplans/results.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/performance/src/main/resources/testplans/results.sh b/testsuites/performance/src/main/resources/testplans/results.sh index 3e74bb4e..2cbb589f 100755 --- a/testsuites/performance/src/main/resources/testplans/results.sh +++ b/testsuites/performance/src/main/resources/testplans/results.sh @@ -26,9 +26,13 @@ if [[ ! -f $LOGFILE ]]; then fi echo "File being processed: " $LOGFILE +MS=$(awk -F "," 'NR==2 { tbeg = $1 } + NR>1 { tend = $1 } + END { print tend-tbeg }' $LOGFILE) RES=$(awk -F "," 'NR>1 { total += $15 } END { print total/NR }' $LOGFILE) -echo "Average Latency: " $RES +echo "Average Latency (ms): " $RES LC=$(awk 'END{print NR}' $LOGFILE) echo "Total Requests:" $LC -echo "Requests/sec:" $((LC/5)) +MPS=$(echo $LC $MS | awk '{ print 1000*$1/$2 }') +echo "Measured requests/sec:" $MPS |