index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2020-03-04 0:56:14.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2020-03-04 0:56:14.0 +00:00:00
commit
d8727b2caaab3c1dfba566e761bc99ae6ec8c274 [patch]
tree
0235829ec991fdea75eb701b80f8794f50b236dc
parent
3354ecdaa30789454a43de3740752623c38d1f05
download
d8727b2caaab3c1dfba566e761bc99ae6ec8c274.tar.gz

feat: add load testing task



Diff

 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 82147ca..39ba5a6 100644
--- a/Makefile
+++ b/Makefile
@@ -225,3 +225,10 @@ prod.release.dockerfiles:
	# Update docker files to latest tag per platform
	./docker/version.sh v$(PKG_TAG)
.ONESHELL: prod.release.dockerfiles

loadtest:
	@echo "GET http://localhost:1234" | \
		vegeta -cpus=12 attack -workers=10 -duration=5s -connections=10000 -rate=200 -http2=false > results.bin
	@cat results.bin | vegeta report -type='hist[0,2ms,4ms,6ms]'
	@cat results.bin | vegeta plot > plot.html
.PHONY: loadtest