This is an automated email from the ASF dual-hosted git repository. markusthoemmes pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-performance.git
commit 1be1191260c7caca66afa996427ff9b2233ec4d8 Author: Markus Thoemmes <markus.thoem...@de.ibm.com> AuthorDate: Mon Apr 24 14:56:19 2017 +0200 Add throughput test with concurrency switch --- .travis.yml | 2 +- test.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8231114..9dd9bd2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ install: - ./deploy.sh script: - - ./test.sh "http://172.17.0.1:10001" "$(cat openwhisk/ansible/files/auth.guest)" \ No newline at end of file + - ./test.sh "http://172.17.0.1:10001" "$(cat openwhisk/ansible/files/auth.guest)" 4 \ No newline at end of file diff --git a/test.sh b/test.sh index e2d0510..2dbf029 100755 --- a/test.sh +++ b/test.sh @@ -3,6 +3,7 @@ set -e host=$1 credentials=$2 +concurrency=$3 action="noop" @@ -14,5 +15,8 @@ curl -u "$credentials" "$host/api/v1/namespaces/_/actions/$action" -XPUT -d '{"n echo "Running noop action once to assert an intact system" curl -u "$credentials" "$host/api/v1/namespaces/_/actions/$action?blocking=true" -XPOST -# run performance harness -docker run --rm markusthoemmes/loadtest loadtest -n 10000 -k -m POST -H "Authorization: basic $(echo $credentials | base64 -w 0)" "$host/api/v1/namespaces/_/actions/$action?blocking=true" \ No newline at end of file +# run latency tests +docker run --rm markusthoemmes/loadtest loadtest -n 10000 -k -m POST -H "Authorization: basic $(echo $credentials | base64 -w 0)" "$host/api/v1/namespaces/_/actions/$action?blocking=true" + +# run maximum throughput tests +docker run --rm markusthoemmes/loadtest loadtest -n 10000 -c "$concurrency" -k -m POST -H "Authorization: basic $(echo $credentials | base64 -w 0)" "$host/api/v1/namespaces/_/actions/$action?blocking=true" \ No newline at end of file -- To stop receiving notification emails like this one, please contact "commits@openwhisk.apache.org" <commits@openwhisk.apache.org>.