You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2017/09/07 09:03:07 UTC

[incubator-openwhisk-performance] branch wrk-load created (now a965bdf)

This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a change to branch wrk-load
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-performance.git.


      at a965bdf  Moving from 'loadtest' to 'wrk' for better loadtest performance

This branch includes the following new commits:

     new a965bdf  Moving from 'loadtest' to 'wrk' for better loadtest performance

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].

[incubator-openwhisk-performance] 01/01: Moving from 'loadtest' to 'wrk' for better loadtest performance

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch wrk-load
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-performance.git

commit a965bdf3e7db74d0b498ee449b16eda1a05341f9
Author: Markus Thoemmes <ma...@de.ibm.com>
AuthorDate: Thu Sep 7 11:03:01 2017 +0200

    Moving from 'loadtest' to 'wrk' for better loadtest performance
    
    Signed-off-by: Christian Bickel <cb...@de.ibm.com>
---
 tests/post.lua      |  1 +
 tests/throughput.sh | 18 ++++++++++++++----
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/tests/post.lua b/tests/post.lua
new file mode 100644
index 0000000..e3e664c
--- /dev/null
+++ b/tests/post.lua
@@ -0,0 +1 @@
+wrk.method = "POST"
\ No newline at end of file
diff --git a/tests/throughput.sh b/tests/throughput.sh
index 743e8a7..b6e0c92 100755
--- a/tests/throughput.sh
+++ b/tests/throughput.sh
@@ -9,12 +9,22 @@ credentials=$2
 # concurrency level of the throughput test: How many requests should
 # open in parallel.
 concurrency=$3
-# How many samples to create by the test. Default: 10000
-samples=${4:-10000}
+# How many threads to utilize, directly correlates to the number
+# of CPU cores
+threads=${4:-4}
+# How long to run the test
+duration=${5:-30s}
 
 action="noopThroughput"
 "$currentDir/create.sh" "$host" "$credentials" "$action"
 
 # run throughput tests
-encodedAuth=$(echo "$credentials" | base64 -w 0)
-docker run --rm markusthoemmes/loadtest loadtest -n "$samples" -c "$concurrency" -k -m POST -H "Authorization: basic $encodedAuth" "$host/api/v1/namespaces/_/actions/$action?blocking=true"
\ No newline at end of file
+encodedAuth=$(echo "$credentials" | base64)
+docker run --pid=host --userns=host --rm -v $(pwd):/data williamyeh/wrk \
+  --threads "$threads" \
+  --connections "$concurrency" \
+  --duration "$duration" \
+  --header "Authorization: basic $encodedAuth" \
+  "$host/api/v1/namespaces/_/actions/$action?blocking=true" \
+  --latency \
+  --script post.lua
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>.