HTTP CLI Reference
Entry point
net-benchmark http [OPTIONS] COMMAND [ARGS]...
Commands
Command |
Description |
|---|---|
|
Full HTTP benchmark with exports |
|
Rank all targets by speed |
|
Side-by-side target comparison |
|
Continuous monitoring with alerts |
net-benchmark http benchmark
Option |
Type |
Default |
Description |
|---|---|---|---|
|
flag |
off |
Use built-in targets |
|
TEXT |
— |
Comma-sep URLs or path to |
|
TEXT |
|
HTTP method: |
|
TEXT |
— |
Request body string |
|
PATH |
— |
Request body from file |
|
TEXT |
— |
Query parameters: |
|
TEXT |
— |
Custom headers: |
|
TEXT |
— |
|
|
PATH |
— |
Client certificate (mTLS) |
|
PATH |
— |
Client certificate key (mTLS) |
|
TEXT |
— |
Proxy URL |
|
TEXT |
— |
SNI override |
|
TEXT |
— |
Local interface to bind |
|
TEXT |
— |
Custom User-Agent string |
|
TEXT |
— |
Cookie |
|
flag |
off |
Add |
|
flag |
off |
Force HTTP/1.1 |
|
flag |
off |
Skip TLS verification |
|
FLOAT |
— |
TCP connect timeout (seconds) |
|
FLOAT |
— |
Read timeout (seconds) |
|
FLOAT |
— |
Write timeout (seconds) |
|
FLOAT |
|
Overall timeout (seconds) |
|
INT |
|
Retry count on failure |
|
INT |
|
Max concurrent async requests |
|
INT |
|
Number of benchmark passes |
|
flag |
off |
Full warmup before timing |
|
flag |
off |
Lightweight warmup (HEAD per target) |
|
TEXT |
— |
Assertion (repeatable, see below) |
|
TEXT |
|
|
|
flag |
off |
Write structured JSON bundle |
|
flag |
off |
Embed charts in PDF / Excel |
|
PATH |
|
Output directory |
|
flag |
off |
Suppress progress bars |
Assertions
Assert |
Example |
|---|---|
Status code |
|
Body contains |
|
Header exists |
|
Header value |
|
Max latency (ms) |
|
Content-Type |
|
Response size min |
|
Response size max |
|
net-benchmark http top
Option |
Type |
Default |
Description |
|---|---|---|---|
|
flag |
off |
Use built-in targets |
|
TEXT |
— |
Targets |
|
INT |
|
Number of targets to display |
|
TEXT |
|
|
|
INT |
|
Number of passes |
net-benchmark http compare
Argument / Option |
Description |
|---|---|
|
Two or more URLs (auto-scheme: |
|
Authentication |
|
Custom headers |
|
Number of passes |
|
Print per-iteration breakdown |
|
Write results to file |
net-benchmark http monitoring
Option |
Type |
Default |
Description |
|---|---|---|---|
|
flag |
off |
Use built-in targets |
|
TEXT |
— |
Targets |
|
INT |
|
Poll interval in seconds |
|
INT |
|
Total duration in seconds (0 = run forever) |
|
FLOAT |
— |
Alert if mean latency exceeds this (ms) |
|
FLOAT |
— |
Alert if failure rate exceeds this (%) |
|
TEXT |
— |
Proxy URL |
|
PATH |
— |
Log file path |