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>
This adds a new `--sort` option to choose the way in which the results
in the speed comparison and the markup exports are ordered.
closes#614closes#601
* added new command-line option '--export-orgmode <FILE>' to create
Emacs org-mode table output by reusing markup result formatting
* based on the new MarkdownFormatter trait, see PR #490