clarify README
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Peter · committed by David Peter · parent 579b762 · Browse files · 1 file·+17 added−12 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+17 added−12 removed
- other:+17 added−12 removed
Provenance
- Commit
3cf3c5d- Tree
f5c477a- Author
David Peter <mail@david-peter.de>- Committer
David Peter <mail@david-peter.de>- Parent
579b762
1 file changed+17 added−12 removed
modified:README.md+17 added-12 removed
158 unmodified lines159 #### JSON160 161 The JSON export includes the following metrics for each measured run (excluding warmup runs):162 163-| Metric | Unit | Meaning and platform differences |164-|:---|:---|:---|165-| `time_wall_clock` | second | Elapsed time, including time spent waiting or descheduled. Available on all platforms. |166-| `time_user` | second | CPU time spent in user mode, accumulated across threads. On Unix, includes descendants whose usage propagates through parents waiting for them. On Windows, includes processes associated with the benchmark's job object. |167-| `time_system` | second | CPU time spent in kernel mode, with the same process accounting as `time_user`. |168-| `memory_peak_resident` | byte | Peak resident set size (RSS) on Linux and macOS; omitted on Windows. This is the largest per-process peak among the command and descendants whose usage is collected by waiting for them, **not the simultaneous total memory of the process tree**. Linux's KiB counter and macOS's byte counter are both exported in bytes. On macOS, this is RSS, not Apple's separate memory-footprint metric. |163+- **`time_wall_clock`**: Time from start to finish, including time spent waiting, in seconds.164 170-Metrics unavailable on a platform are omitted, rather than reported as zero. Time values are always171-exported in seconds, regardless of `--time-unit`. When using a shell, the estimated shell startup172-CPU and wall-clock times are subtracted; memory usage is not adjusted.165+- **`time_user`**: CPU time spent running the program's code, summed across threads, in seconds.166 174-For example, two concurrent worker processes that each use 128 MiB can produce a175-`memory_peak_resident` of about 128 MiB, even though their combined memory use is about 256 MiB.176-Threads share a process's address space and are covered by its RSS measurement.167+ - Linux/macOS: Includes child-process time when parents wait for their children to finish.168+ - Windows: Includes the command and its child processes.169 170+- **`time_system`**: CPU time spent running operating-system code for the program, for example171+ to read files, summed across threads, in seconds.172+173+ - Linux/macOS: Includes child-process time when parents wait for their children to finish.174+ - Windows: Includes the command and its child processes.175+176+- **`memory_peak_resident`**: Peak memory held in physical RAM, in bytes.177+178+ - Linux/macOS: Peak resident set size (RSS). This is the largest per-process peak among the179+ command and child processes (whose usage is collected when their parents wait for them),180+ *not the simultaneous total memory of the full process tree*.181+ - Windows: Currently not supported.182+183 The JSON output is useful if you want to analyze the benchmark results in more detail. The184 [`scripts/`](https://github.com/sharkdp/hyperfine/tree/master/scripts) folder includes a lot185 of helpful Python programs to further analyze benchmark results and create helpful186 visualizations, like a histogram of runtimes or a whisker plot to compare190 unmodified lines