jolt
A fast HTTP/1.1 & HTTP/2 load tester with a live terminal UI, written in Valk.
Install
Install globally with vman:
vman global install github.com/ctxcode/jolt
Or build from source:
vman install
make release
Usage
# 50 concurrent workers for 10 seconds with live TUI
jolt https://example.com
# 200 connections across 4 threads for 30 seconds
jolt -c 200 -t 4 -d 30s http://127.0.0.1:8080/api
# Fixed number of requests over HTTP/2
jolt -n 10000 -c 100 --http2 https://example.com/health
# POST JSON with custom headers and rate limit (500 req/s)
jolt -m POST -H "Content-Type: application/json" -b '{"ping":true}' -r 500 http://127.0.0.1:8080/events
# Pipelined HTTP/1.1 (16 requests per write, like wrk -s pipe.lua -- 16)
jolt -c 900 -t 8 -d 5s -p 16 http://127.0.0.1:9000/plaintext
# Machine-readable JSON report (for CI / scripts)
jolt -n 5000 --json http://127.0.0.1:8080/
Press q or Ctrl+C at any time during a run to stop early and print the final summary.
Options
| Flag | Description | Default |
| --- | --- | --- |
| -c, --connections <num> | Concurrent workers | 50 |
| -d, --duration <dur> | Test duration (500ms, 10s, 1m, 1h) | 10s |
| -n, --requests <num> | Total requests instead of duration (0 = use duration) | 0 |
| -t, --threads <num> | OS worker threads (0 = auto) | 0 |
| -m, --method <method> | HTTP method | GET |
| -H, --header <k: v> | Custom header (repeatable) | — |
| -b, --body <data> | Request body string | — |
| -B, --body-file <path> | Read request body from file | — |
| -r, --rate <rps> | Target rate limit in requests/sec (0 = unlimited) | 0 |
| -p, --pipeline <num> | HTTP/1.1 pipeline depth per connection | 1 |
| --timeout <dur> | Per-request timeout | 10s |
| --http2 | Use HTTP/2 (ALPN h2 on HTTPS, h2c on HTTP) | off |
| --no-keepalive | Disable HTTP keep-alive connection reuse | off |
| --no-redirects | Do not follow 3xx redirects | off |
| -k, --insecure | Skip TLS certificate verification | off |
| --no-tui | Disable live TUI dashboard | off |
| --json | Output final report as JSON (implies --no-tui) | off |
Development
make test # run unit, TUI, and live HTTP/1.1 + HTTP/2 tests
make lint # lint src and tests with --deny-warnings
make release # build optimized binary ./jolt
valk bench ./tests