Commit Graph
21 Commits
Author SHA1 Message Date
David Peter ebf127338c Further simplification of the API 2026-10-05 16:00:08 +02:00
David Peter 4badeb6312 Quantity API cleanup 2026-10-05 15:59:56 +02:00
David Peter be66a6668f Move quantity module 2026-10-05 15:59:11 +02:00
David Peter 641451aea6 Use uom 2026-10-05 15:59:10 +02:00
David Peter f9aa299c0f Switch to unit-safe quantities 2026-10-05 15:58:56 +02:00
David Peter 8745487c60 Remove comment 2026-10-05 14:21:04 +02:00
David Peter 0f2871bd66 Address review feedback 2026-10-05 14:16:33 +02:00
Devon Hollowood ce704016f9 Make time elapsed only show up initially 2026-10-05 14:14:15 +02:00
Devon Hollowood f39b497bdd Add elapsed time to progress bar 2026-10-05 14:13:56 +02:00
David Peter 6f557e0494 Extract typed quantity formatting 2026-10-05 11:46:49 +02:00
David Peter aa14b8c0d9 Group units, formatting, and statistics under quantity 2026-10-05 10:46:51 +02:00
David Peter a8e56efecc Use uom quantities for benchmark measurements 2026-10-05 10:32:32 +02:00
David Peter 84ff04f35d Support minutes, hours, and time unit aliases 2026-10-05 10:18:42 +02:00
c0b3834277 Handle broken pipe errors on stdout gracefully (#932)
Replace `println!` calls on the results paths with `writeln!` on
`io::stdout()` and propagate the `io::Error` to `main`, where
`ErrorKind::BrokenPipe` is turned into a quiet `exit(0)`. This matches
the conventional behavior of command-line tools when their output pipe
is closed early (e.g. `hyperfine ... | head -n 0`), and fixes panics in
all run-output paths: the per-benchmark header and results, the speed
comparison summary, and `-`-style exports to stdout. The warnings and
"Note" outputs to stderr are converted the same way.


---------

Co-authored-by: Mathjk <Mathjk@users.noreply.github.com>
Co-authored-by: David Peter <mail@david-peter.de>
2026-10-02 11:18:56 +02:00
overclockworked64 798ea2dca1 fix: add a space in the progress bar template 2023-10-23 19:31:30 +02:00
David Peter 4564977b7a Add support for microseconds, closes #684 2023-10-05 09:39:00 +02:00
David Peter 5b5daa0493 Improve hints for outlier warnings
Improve hints for outlier warnings if `--warmup` or `--prepare` are in
use already.

Closes #570
2022-11-20 21:19:27 +01:00
David Peter 71c139c81e Updates for indicatif 0.17 2022-09-23 08:34:10 +02:00
David Peter 65932dd5ce Update warning text 2022-03-05 12:47:30 +01:00
David Peter 5c634c9f2f Move a few modules to util 2022-02-06 20:19:50 +01:00
David Peter 865290a144 New output module 2022-02-06 20:19:50 +01:00