Load Testing

Install k6

Windows installer or Mac Brew install installation instructions can be found at K6 Installation

Running the test

A KGrid Activator loaded with CPIC Objects will need to be running. By default the scripts look to localhost:8080 but you can change the hostname when running the script. k6 works with the concept of virtual users (VUs), which run scripts - they're essentially glorified, parallel while(true) loops.

The following script hits the activator at localhost:8080 (the default) using the 99999-fk4bz6hp15 KO, running a 10-second, 5-VU load test

k6 run --vus 5 --duration 10s tests/k6/recommendationsjs

The following script hits the activator at localhost:8080 (the default) using the 99999-fk4bz6hp15 KO, running a 10-second, 5-VU load test

k6 run -e HOSTNAME=kgrid-activator.herokuapp.com  --vus 5 --duration 10s tests/k6/recommendations.js

Last Updated: 10/4/2018, 6:50:42 PM