k6load

command
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command k6load runs the crud-list workload against a target for a fixed window and KEEPS + validates the k6 summary, exiting non-zero unless the load was a clean measurement (traffic sent, no HTTP errors, no failed checks — benchmarks/internal/k6's Summary.Validate). It is the load half of the footprint measurement: the load generator, not a wall-clock guess, is the authority for whether load actually happened, so footprint-all.sh only records loaded-memory / CPU numbers when this exits 0. Unlike run-crud it writes no results row — it exists purely to drive validated load while the orchestrator samples `docker stats` concurrently.

go run ./benchmarks/scripts/k6load \
  -target-url 'http://127.0.0.1:8081/api/projects?page=1&limit=20' \
  -vus 100 -duration 10s -k6-image grafana/k6:0.55.0 \
  -workload benchmarks/workloads/crud-list.js

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL