Skip to content

k6 not displaying http stats despite multiple samples #79

@ragnarlonn

Description

@ragnarlonn

It seems k6 is a little silly when trying to figure out if there have been multiple HTTP requests or not (and so, whether it should display HTTP stats at the end or not).

I can run many VUs where each VU completes one HTTP request, and the stats will not show up. I suspect the decision to show stats is done by just looking at a single VU, and how many HTTP requests it has generated?

I.e. if I have a script that looks like this:

import http from "k6/http";
import { group, sleep, check } from "k6";
export default function() {
  http.get("...some-URL...");
  sleep(5.0);
};

And then run it for 5 seconds with 10 VUs: k6 run --vus 10 --duration 5s script.js

It will make 10 HTTP requests, but I get no HTTP stats at the end of the test run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions