Skip to content

Load Performance Testing

Load Performance Testing uses k6.

  • See from Grafana Labs!


You need a test file. This was a bit weird to me at first but it can be .....a Java script file.

The GitLab Performance Tool (GPT) also makes use of k6. (OK, lots of things use k6. )

Example Projects

Publicly available projects of interest for Load Performance Testing.

Example k6 Load Test Files


import { sleep } from 'k6';
import http from 'k6/http';

export const options = {
  duration: '1m',
  vus: 50,

export default function () {

To run load test files like these outside of GitLab CI, you'd use something like:

k6 run performance-test.js
import http from 'k6/http';
export default function () {
  const url = '';
  const payload = JSON.stringify({
    email: 'aaaa',
    password: 'bbbb',

    const params = {
      headers: {
          'Content-Type': 'application/json',
    let, payload, params);


When you use the template, the script section does something like this:

docker run --rm -v "$(pwd)":/k6 -w /k6 $K6_DOCKER_OPTIONS $K6_IMAGE:$K6_VERSION run $K6_TEST_FILE --summary-export=load-performance.json $K6_OPTIONS

We see that we're interested in load-performance.json.


  • Artillery , which can be integrated with GitLab CI.