You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/11/30 02:38:55 UTC

[GitHub] csantanapr commented on a change in pull request #61: Performance boost

csantanapr commented on a change in pull request #61: Performance boost
URL: https://github.com/apache/incubator-openwhisk-runtime-go/pull/61#discussion_r237729665
 
 

 ##########
 File path: examples/benchmark/Makefile
 ##########
 @@ -0,0 +1,23 @@
+IMG?=whisk/actionloop-golang-v1.11
+IMG2?=whisk/actionloop
+
+all: golang bash
+
+test.lua:
+	echo 'wrk.method = "POST"'>test.lua
+	echo "wrk.body = '{\"value\":{\"name\":\"Mike\"}}'">>test.lua
+	echo 'wrk.headers["Content-Type"] = "application/json"'>>test.lua
+
+golang: test.lua
+	docker run -d --name under-test --rm -p 8080:8080 $(IMG)
+	bash init.sh main.go
+	wrk -t1 -c1 -stest.lua http://localhost:8080/run
+	docker kill under-test
+
+bash: test.lua
+	docker run -d --name under-test --rm -p 8080:8080 $(IMG2)
+	bash init.sh main.sh
+	wrk -t1 -c1 -stest.lua http://localhost:8080/run
+	docker kill under-test
+
+.PHONY: all golang bash
 
 Review comment:
   nice addition for benchmarking both images 🎉 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services