Closed Neved4 closed 12 months ago
Did you see the --style
option? In particular: --style=none
@sharkdp Spot on. Thanks!
Missed that, the manpage description can be a bit misleading:
Set this to 'none' to disable all the output of the tool.
Closing.
Currently,
hyperfine
allows markdown export tostdout
with--export-markdown -
. This also includes its regular output, requiring manual filtering.Feature request
Add flag to suppress
hyperfine
's regular output.As
--quiet
would be vague in this context, consider something like--minimal-output, -qm
or
--low-verbosity, -ql
.A better, if more involved, enhancement would be to allow doing a single
hyperfine
call awith configurable markdown sections. Ultimately, this will organise each benchmark below its corresponding section.Background
When running multiple benchmarks to later be unified in a single markdown file, one needs to call
hyperfine
and create intermediate files, to later structure the saved outputs in an unified manner, cleaning the intermediates:Alternatively, since
hyperfine
allows to export tostdout
instead, we can get rid of the temporary files and filter the desired output:See: tukosmo-errhandle/b795a31
Overall this streamlined approach avoids temporary files, although in other scenarios the ability to suppress the regular output entirely can be more suitable, removing the need of a filtering function.