Software Testing / Learning brief

Tom runs his first k6 load script

What this means in plain language

Tom installs k6, writes a short script, runs it with three virtual users and reads the summary table.

Understand the full idea, step by step

Analogy: a dress rehearsal with volunteer shoppers. Before opening day a shop invites volunteers to walk in together and buy things. The owner watches the queue and notes how long each shopper waits.

A k6 first script file (a short JavaScript file that says what the pretend users do) is the rehearsal plan. k6 (a free load testing tool from Grafana Labs) follows it. A k6 virtual user count (how many pretend users act at once) is the crowd. The k6 summary output (the table printed at the end) is the owner's notes.

PLAIN WORDS · 1 in this section
grafana
a company that makes tools for watching and testing software

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Hands-on steps for this tool. The people and the app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.

Sources for this brief — 3 sources
  1. Market practice

    Running k6 and Install k6 (Grafana k6 documentation) ↗ — Grafana Labs · Grafana k6 docs: k6 run script.js runs a script, the flags --vus and --duration set the crowd and the length, the same settings can sit in an exported options object, packages exist for Linux, Mac and Windows, a Docker image exists and k6 version confirms the install (search excerpt, page not opened)

    The Grafana k6 pages on running and installing: the command k6 run script.js runs a script. The flags --vus and --duration set the crowd and the length. The same settings can sit in an exported options object. Packages exist for Linux, Mac and Windows, a Docker image exists, and k6 version confirms the install. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  2. Market practice

    Built-in metrics (Grafana k6 documentation) ↗ — Grafana Labs · Grafana k6 metrics page: http_req_duration is a trend metric for total request time, http_req_failed is a rate metric, and checks give a pass rate without stopping the test (search excerpt, page not opened)

    The Grafana k6 metrics page: http_req_duration is a trend metric for total request time. http_req_failed is a rate metric. Checks give a pass rate but do not stop the test when one fails. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  3. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREk6 part 1: install k6, write your first script and read the summaryInstall k6, write a ten-line script with a check and a pause, run it with a small crowd of pretend users, and read the table k6 prints at the end.Opens at L0 Explain simply · about 16 min

Related briefs