CraftK6

Load-test and stress-benchmark your Minecraft server with real TCP players.

22 Real TCP Virtual Users in Live Multiplayer TAB

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-export JSON, a Prometheus /metrics endpoint and a live web dashboard.

Quick Start

  1. Install Fabric Loader + Fabric API, Forge (1.20.1) or NeoForge (1.21.1+) for your Minecraft version.
  2. Drop the CraftK6 JAR into the server's mods folder and start the server.
  3. Set online-mode=false in server.properties (Virtual Users join with offline UUIDs).
  4. As an operator, run /k6 run smoke.

CraftK6 has no keybinds. Commands (alias /craftk6) need operator permission level 2:

CommandPurpose
/k6 presets / /k6 executorsList 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 · stopControl 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] / stopLive web dashboard (default 5665)
/k6 prometheus start [port] / stopPrometheus endpoint (default 9606)

Features

AreaDetails
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 metricsmc_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
ReportsOffline HTML and JSON reports written to craftk6-reports/

Built-in presets

PresetWorkload
smoke5 VUs for 15s health check
chunk_storm0→12→20→0 explorers stressing Netty and Anvil
mixed_loadExplorers plus a staggered hub crowd
netty_flood30-VU hub cluster, entity broadcast load
sprinter_storm16 fast sprinters stressing chunk loading
reconnect_storm12 VUs cycling handshake, login and compression
arrival_burstOpen-model bursts tracking dropped_iterations
shared_iters / per_vu_iters400 shared iterations / 30 per VU
stress_rampRamp toward 50 VUs with threshold abort
soak15 VUs for 3m endurance run
externally_controlledLive /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.

ConfigMSPT avgMSPT p95vs Vanilla
Vanilla9.30 ms19.8 msn/a
Lithium 0.26.47.74 ms17.3 ms-16.8%
Krypton 0.3.29.42 ms20.3 ms+1.3% (noise)
C2ME 0.4.2-alpha9.94 ms25.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

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

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

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

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

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

MinecraftFabricForgeNeoForgeJava
1.20.1YesYesn/a17+
1.21.1Yesn/aYes21+
1.21.11Yesn/aYes21+
26.3Yesn/aYes25+
  • 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.

CraftK6 Team

profile avatar
  • 1
    Followers
  • 8
    Projects
  • 444
    Downloads

More from AltRossellView all