
CraftK6 spawns real Netty TCP Virtual Users that complete the full Handshake, Login, compression, Configuration and Play lifecycle, so you can measure MSPT, TPS, GC and network latency before going live. It brings the k6 workflow (executors, metrics, thresholds, outputs) into Minecraft.
CraftK6 is an independent, MIT-licensed project inspired by Grafana k6. It is not affiliated with or endorsed by Grafana Labs.
Why CraftK6?
- Real traffic, not fake bots: Virtual Users exercise compression, packet framing, chunk streaming and Anvil saves, and can target external servers with
/k6 run <preset> <host> <port>. - The k6 model, in-game and in CI: 7 k6 executors, Counter/Gauge/Rate/Trend metrics, thresholds with
abortOnFail, and A-B diff reports. - Plugs into your tooling: k6 NDJSON, k6 CSV, InfluxDB Line Protocol,
--summary-exportJSON, a Prometheus/metricsendpoint and a live web dashboard.
Quick Start
- Install Fabric Loader + Fabric API, Forge (1.20.1) or NeoForge (1.21.1+) for your Minecraft version.
- Drop the CraftK6 JAR into the server's
modsfolder and start the server. - Set
online-mode=falseinserver.properties(Virtual Users join with offline UUIDs). - As an operator, run
/k6 run smoke.
CraftK6 has no keybinds. Commands (alias /craftk6) need operator permission level 2:
| Command | Purpose |
|---|---|
/k6 presets / /k6 executors | List the 12 presets / 7 executors |
/k6 run <preset\|file> [host] [port] | Start a local or external load test |
/k6 inspect <preset\|file> | Print and export the resolved plan |
/k6 export <preset> | Save an editable JSON to config/craftk6/scenarios/ |
/k6 status · pause · resume · stop | Control the active run |
/k6 scale <vus> | Rescale an externally-controlled run live |
/k6 compare <a.json> <b.json> | A-B performance diff |
/k6 dashboard start [port] / stop | Live web dashboard (default 5665) |
/k6 prometheus start [port] / stop | Prometheus endpoint (default 9606) |
Features
| Area | Details |
|---|---|
| Executors (7) | shared-iterations, per-vu-iterations, constant-vus, ramping-vus, constant-arrival-rate, ramping-arrival-rate, externally-controlled; multi-scenario plans |
| Thresholds | <, <=, >, >=, ==, !=; p(N), avg, med, min, max, rate, count; tagged selectors; abortOnFail |
| Minecraft metrics | mc_mspt, mc_tps, mc_gc_pause, mc_heap_used, mc_chunks_received, mc_packets_in/out, mc_keepalive_rtt, mc_vu_connect_duration, mc_vu_errors and more |
| VU profiles (4) | explorer, hub, sprinter, reconnect_storm |
| Reports | Offline HTML and JSON reports written to craftk6-reports/ |
Built-in presets
| Preset | Workload |
|---|---|
smoke | 5 VUs for 15s health check |
chunk_storm | 0→12→20→0 explorers stressing Netty and Anvil |
mixed_load | Explorers plus a staggered hub crowd |
netty_flood | 30-VU hub cluster, entity broadcast load |
sprinter_storm | 16 fast sprinters stressing chunk loading |
reconnect_storm | 12 VUs cycling handshake, login and compression |
arrival_burst | Open-model bursts tracking dropped_iterations |
shared_iters / per_vu_iters | 400 shared iterations / 30 per VU |
stress_ramp | Ramp toward 50 VUs with threshold abort |
soak | 15 VUs for 3m endurance run |
externally_controlled | Live /k6 scale, up to 60 VUs |
Benchmarks
Sample A-B run: chunk_storm, 20 VUs, 26.3 Fabric. Method and caveats are in COMPARISON.md.
| Config | MSPT avg | MSPT p95 | vs Vanilla |
|---|---|---|---|
| Vanilla | 9.30 ms | 19.8 ms | n/a |
| Lithium 0.26.4 | 7.74 ms | 17.3 ms | -16.8% |
| Krypton 0.3.2 | 9.42 ms | 20.3 ms | +1.3% (noise) |
| C2ME 0.4.2-alpha | 9.94 ms | 25.6 ms | +6.9% |
Configuration
CraftK6 has no global config file. Scenarios are JSON files in config/craftk6/scenarios/; create one with /k6 export <preset>, edit it, then /k6 run <file>. Run output goes to craftk6-reports/.
Showcase
Real-Time k6 Web Dashboard & Live Controls

Built-in HTTP dashboard with live MSPT avg/p95 and Active VUs/Chunks/s SVG graphs, k6 pass/fail thresholds, and interactive Scale, Pause, Resume, and Stop controls.
Interactive HTML Load Test Report

Auto-generated dark HTML report featuring MSPT p95, TPS, Peak VUs, GC, Heap, Netty TCP throughput, dual-axis SVG timelines, and k6 Thresholds.
Live F3 & CraftK6 Status Under Multi-Scenario Load

Real-time /k6 status telemetry (58,520 packets, 1,322 chunks, 0 errors) alongside Minecraft 26.3 F3 metrics while 22 TCP Virtual Users stream chunks.
Built-in In-Game A-B Performance Comparator

Compare any two benchmark runs directly in chat (/k6 compare a.json b.json) and export Markdown diffs covering MSPT percentiles, TPS, GC, Heap, Chunks, and Netty.
12 Built-In k6 Presets & 7/7 Official Executors

Run smoke, chunk_storm, mixed_load, netty_flood, sprinter_storm, reconnect_storm, soak, or live externally_controlled scaling directly from /k6.
Compatibility
| Minecraft | Fabric | Forge | NeoForge | Java |
|---|---|---|---|---|
| 1.20.1 | Yes | Yes | n/a | 17+ |
| 1.21.1 | Yes | n/a | Yes | 21+ |
| 1.21.11 | Yes | n/a | Yes | 21+ |
| 26.3 | Yes | n/a | Yes | 25+ |
- Side: server-side tool. Players do not need CraftK6 installed.
- Fabric builds are published with a Fabric API dependency.
Building from Source
Requires JDK 25.
./gradlew build --no-daemon
License
Released under the MIT License.