~/sot/docs/commands/bench
sot bench --help
~/sotsot bench --help
usage: sot bench [-h] [--output OUTPUT] [--disk DISK] [--duration DURATION]

options:
  -h, --help            show this help message and exit
  --output, -o OUTPUT   Output file for benchmark results (JSON format)
  --disk DISK           Disk to benchmark, by id (disk3, /dev/sda) or
                        mountpoint; skips the prompt
  --duration, -d DURATION
                        Duration for each benchmark test in seconds (default:
                        10s)
~/sotcat commands/bench.md

sot bench

A disk benchmark - sequential read and write throughput, random read and write IOPS, and latency.

What it measures

Four tests on the disk you pick: sequential read, sequential write, random read IOPS and random write IOPS, each with min/avg/max and p50/p95/p99 latency.

sh
sot bench                                    # pick a disk in the Bench view
sot bench --disk disk3 --duration 5          # no prompt, 5 s per test (default 10)
sot bench --disk / --output results.json     # save results as JSON

--disk takes a disk id (disk3, /dev/sda) or a mountpoint and skips the prompt. With --disk or --output, or when it isn't run in a terminal, the benchmark runs without the app and prints its results.

In the Bench view

Key Action
Enter Run
+ / - Longer / shorter tests, one second at a time
e Export the results as JSON
Esc Cancel after the current test
search
↑ ↓ move↵ openEsc close
keys

The same keys as sot, where they make sense.

/ Ctrl+KSearch, jump to a page or switch theme
1-6Switch section (the windows in the status bar)
[ ]Previous / next page
j kScroll down / up
Ctrl+D Ctrl+UHalf a page down / up
g GTop / bottom
tSwitch between light and dark
?Show these keys
EscClose