Skip to the content.

Crankfire

Crankfire is a single-binary load-testing CLI for HTTP, WebSocket, SSE and gRPC. You describe a workload with flags or a YAML/JSON file and watch it live in the terminal. The results come back as a text, JSON or HTML report, and you can gate CI on thresholds. Saved tests can be grouped into suites, compared and diffed, and run on a schedule.

crankfire --target https://api.example.com --concurrency 20 --rate 100 --duration 30s --dashboard

Only load-test systems you own or have explicit permission to test.

What you can do

Capability Where to read
Run a test from flags or a config file Getting Started, Configuration
Shape traffic: rate limits, Poisson arrivals, ramp/step/spike patterns, weighted endpoints, retries Configuration → Workload modeling
Test WebSocket, SSE and gRPC services Protocols
Authenticate with OAuth2 client credentials, password grant or static tokens Authentication
Inject per-request data from CSV/JSON files Data Feeders
Extract values from responses and reuse them Request Chaining
Replay a browser session from a HAR file HAR Import
Fail a run on latency, error-rate or throughput limits Thresholds
Watch a live dashboard; export JSON and HTML reports Dashboard & Reporting
Export OpenTelemetry spans and propagate trace context Tracing
Keep a library of tests in a terminal UI Terminal UI
Run suites of tests with stages, overrides, thresholds, diffs and cron schedules Sets, Scheduling & Session CLI

Commands at a glance

Command Purpose
crankfire [flags] Run one load test (see Configuration)
crankfire tui [--data-dir DIR] Open the terminal UI
crankfire session list, crankfire session edit Manage saved sessions and their tags (Session CLI)
crankfire set list, show, run, new, diff Run and compare sets
crankfire daemon [--data-dir DIR] Run scheduled sets (Scheduling)

Feature support by protocol

Feature HTTP WebSocket SSE gRPC
Rate limiting, arrival models, load patterns ✅ ✅ ✅ ✅
Authentication ✅ ✅ ✅ ✅
Data feeders ({{key}} placeholders) ✅ ✅ ✅ ✅
Placeholder default values ✅ — — —
Request chaining (extractors) ✅ — — —
Weighted multi-endpoint tests, HAR import ✅ — — —
Retries, --log-errors ✅ — — —
Thresholds, dashboard, JSON/HTML reports ✅ ✅ ✅ ✅
Tracing and trace-context propagation ✅ ✅ ✅ ✅

For contributors