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 c092f1ac15ee0796645b5fe4c82ad648e28ef74c Author: Markus Thoemmes <[email protected]> AuthorDate: Mon Apr 24 09:49:20 2017 +0200 Actually use a performance test --- test.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 2d8cd2e..6be3ff6 100755 --- a/test.sh +++ b/test.sh @@ -1,7 +1,14 @@ #!/bin/sh +action="noop" + # create a noop action -curl -u "$(cat openwhisk/ansible/files/auth.guest)" "172.17.0.1:10001/api/v1/namespaces/_/actions/curlTest" -XPUT -d '{"namespace":"_","name":"test","exec":{"kind":"nodejs:default","code":"function main(){return {};}"}}' -H "Content-Type: application/json" +echo "Creating noop action" +curl -u "$(cat openwhisk/ansible/files/auth.guest)" "172.17.0.1:10001/api/v1/namespaces/_/actions/$action" -XPUT -d '{"namespace":"_","name":"test","exec":{"kind":"nodejs:default","code":"function main(){return {};}"}}' -H "Content-Type: application/json" # run the noop action -curl -u "$(cat openwhisk/ansible/files/auth.guest)" "172.17.0.1:10001/api/v1/namespaces/_/actions/curlTest?blocking=true" -XPOST \ No newline at end of file +echo "Running noop action once to assert an intact system" +curl -u "$(cat openwhisk/ansible/files/auth.guest)" "172.17.0.1:10001/api/v1/namespaces/_/actions/$action?blocking=true" -XPOST + +# run performance harness +ab -n 1000 -m POST -k -A "$(cat openwhisk/ansible/files/auth.guest)" "172.17.0.1:10001/api/v1/namespaces/_/actions/$action?blocking=true" \ No newline at end of file -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
