tysonnorris commented on a change in pull request #1: Moving from 'loadtest' to 
'wrk' for better loadtest performance
URL: 
https://github.com/apache/incubator-openwhisk-performance/pull/1#discussion_r138406123
 
 

 ##########
 File path: 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)
 
 Review comment:
   @bbrowning  Does having a newline cause problems? It doesn't on mac, afaik. 
It would be great if this script would work on both mac and linux. It's very 
annoying to have to change it to run locally, if local is a mac, and it's also 
important for to run via linux for automation (and for those using linux 
locally). 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to