Commit Graph
98 Commits
Author SHA1 Message Date
Andrii Radyk 9a064b7a8f remove deprecated Error::description 2019-12-19 21:55:16 +01:00
sharkdp 3e217f4233 Add simple tokenizer for parameter list 2019-10-20 13:45:41 +02:00
sharkdp d7dc232e2f Use 'enum' to represent numeric/textual parameter values 2019-10-20 13:45:41 +02:00
Hasan Ibraheem 4a5d08ddc2 Implement basic --parameter-list with naive list parsing 2019-10-20 13:45:41 +02:00
knidarkness 34eb150fef updates as requested in the review 2019-10-15 17:49:48 +02:00
knidarkness 5bc94416ad Fixed error with borrowing 2019-10-15 17:49:48 +02:00
knidarkness 5bdfdbf1cb Added 'none' as a possible value for "style" option
This commit allows to remove all non-errornous output of the tool.
2019-10-15 17:49:48 +02:00
sharkdp 33591d1433 Update error message 2019-10-13 15:11:39 +02:00
Saurav Sharma d1cd30b2a3 refactor code
Signed-off-by: Saurav Sharma <appdroiddeveloper@gmail.com>
2019-10-13 15:11:39 +02:00
Saurav Sharma bc82bd5f23 raise error if preparation_command length is not equal to command or 1
Signed-off-by: Saurav Sharma <appdroiddeveloper@gmail.com>
2019-10-13 15:11:39 +02:00
Saurav Sharma 0c0713da30 Add multiple --prepare support
Signed-off-by: Saurav Sharma <appdroiddeveloper@gmail.com>
2019-10-13 15:11:39 +02:00
Piyush Rungta b10b93f473 Add support for floats in --parameter-scan 2019-09-01 14:31:35 +02:00
Piyush Rungta 737403df35 Run cargo fmt 2019-09-01 14:31:35 +02:00
Piyush Rungta 3e3f4d9a26 Add argument to take parameter range step size 2019-08-24 08:56:59 +02:00
philipp 16210a1d13 Pass Copyable enums by value 2019-07-17 21:11:44 +02:00
philipp c0ada7d044 Use slices instead of borrowed vectors 2019-07-17 21:11:44 +02:00
philipp f3f8c9ca98 Avoid redundant ref 2019-07-17 21:11:44 +02:00
philipp 5849446315 Avoid long literal without separator 2019-07-17 21:11:44 +02:00
philipp cfd298ef14 Avoid redundant return 2019-07-17 21:11:44 +02:00
philipp 3f79985473 Factor common operations into closure 2019-07-17 21:11:44 +02:00
philipp a5ce659b9c Avoid closure 2019-07-17 21:11:44 +02:00
philipp b573617a7c Return value directly 2019-07-17 21:11:44 +02:00
sharkdp e09707c90f Extract computation of relative speed 2019-06-08 12:29:28 +02:00
Andrii Radyk 2d0b0488f2 convert to rust edition 2018 2019-05-08 08:10:02 -05:00
philipp fdc92cb204 Reduce repetition 2019-02-25 07:04:40 +01:00
Chloe Kudryavtsev e31dc91151 Add Asciidoc export option
Signed-off-by: Chloe Kudryavtsev <toast@toastin.space>
2019-01-30 21:27:25 +01:00
Colin Wahl 5af43cfc7b add cleanup command which is executed at the end of each benchmark 2019-01-14 20:21:50 +01:00
sharkdp a4cf1eaa29 Format source code 2018-11-21 19:55:58 +01:00
Jason Peacock 3aa26a3e27 Moved types::Second and types::Unit to new unit module
Also review feedback.
2018-11-04 10:15:05 +01:00
Jason Peacock f0b6f130ea Add option to set time units for CLI & Markdown, closes #80
Add option to set the time units to either `MilliSecond` or `Second`
for both CLI output and Markdown export, overriding the default logic.
2018-11-04 10:15:05 +01:00
Jason Peacock 01581f60e0 Add option to set the shell, closes #61
Allow the user to set the shell used for executing benchmark commands.

The option (-S/--shell) can be overridden, when there are duplicate
options the last option's value will be used.
2018-10-31 18:02:37 +01:00
sharkdp df171392ec Change color override part 2018-09-28 21:57:53 +02:00
Jason Peacock 3246ec27e1 Compact output, add -s color option, closes #70
Strip the empty lines within the results for each benchmark, but keep
the empty line between each benchmark, and before the summary.

Add `color` style option to show color but not be interactive (no
progress bar).
2018-09-28 21:57:53 +02:00
sharkdp f85e61dc39 cargo fmt 2018-09-27 23:07:24 +02:00
Diogo Sousa 0466a1d7cf Addressed review comments. 2018-09-09 23:18:18 +02:00
Diogo Sousa d78c33b864 Added options to specify the max/exact numbers of runs.
Fixes #77.
2018-09-09 23:18:18 +02:00
Felix Yan 4d68c5f72c Fix a typo in main.rs 2018-06-15 20:59:46 +02:00
sharkdp 22491e2385 Run 'cargo fmt' 2018-05-22 22:57:51 +02:00
Christian Duerr 556788c160 Print stderr with --show-output flag
The `--print-stdout` flag has been changed to `--show-output` and now
both stderr and stdout are forwarded when this option is specified.
2018-05-22 22:54:08 +02:00
Christian Duerr 4be435436e Allow forwarding benchmark's stdout to hyperfine
This change makes it possible to forward the stdout of the command the
user tries to benchmark to hyperfine's stdout using the `--print-stdout`
flag.

This should be irrelevant for most use-cases, however it makes it
possible to get some crude benchmarks of terminal emulators similar to
what's currently often done with `time cat file`.
2018-05-22 22:54:08 +02:00
Steve Pentland 6b19af9415 All parsing of arguments now split out. 2018-04-24 21:20:05 +02:00
sharkdp be09ae413f Clean up the --help text 2018-03-24 20:41:35 +01:00
sharkdp d677901341 Allow for negative numbers 2018-03-24 20:33:50 +01:00
sharkdp 07f142528e Rename parameter to '--parameter-scan' 2018-03-24 20:33:50 +01:00
sharkdp e862cf8567 Implement '--parameter-range var min max', see #19 2018-03-24 20:33:50 +01:00
Steve Pentland 3966bf05c1 Add comparison output when 2 or more commands are run
This also includes a restructure to the internal types used
2018-03-24 19:20:09 +01:00
Steve Pentland 5fb66db100 Change to export-markdown long opt, update help text 2018-03-20 23:19:06 +01:00
Steve Pentland 8b933dc64d Add markdown support.
Don't create Strings to convert to bytes later, just serialize directly
to bytes in the first place
2018-03-20 23:19:06 +01:00
sharkdp 97920d5b74 Help message update 2018-03-20 22:00:11 +01:00
sharkdp 1bd5436109 Proper error handling for the exporter 2018-03-20 21:40:06 +01:00