Load/performance testing examples using K6
NOTE: please do not thank me by running these tests and killing my server :) Change the
url
in the tests to a server you own, or use k6's
- run 'em all:
npm test
- run smoke test:
npm run smoke
- run them manually:
k6 run smokeTest.js
- understand results
- install k6
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
echo "deb https://dl.bintray.com/loadimpact/deb stable main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install k6
- run tests:
npm test
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io