Output Format Options
Output test results in compact JSON format instead of the default human-readable format.When this flag is enabled:Output:
- Progress messages are suppressed
- Results are printed as a single-line JSON object
- ANSI colors are disabled
Output test results in pretty-printed (indented) JSON format. This flag automatically implies Output:
-json.When this flag is enabled:- Progress messages are suppressed
- Results are printed as formatted JSON with 2-space indentation
- ANSI colors are disabled
- Makes JSON output more human-readable
Usage Examples
Basic Usage
Run a speed test with human-readable output:JSON Output for Automation
Output compact JSON for scripting or API integration:Pretty JSON for Debugging
Output formatted JSON for easier reading:Pipe to jq
Combine withjq for processing JSON output:
Save Results to File
Save pretty-printed results to a file:Notes
- The
-prettyflag automatically enables-json, so you don’t need to specify both - When using JSON output modes, all progress messages are suppressed
- The default output mode (without flags) shows colorized, human-readable results with progress indicators