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
sharkdp
9b5dd60a92
Refactored ExporterManager
2018-03-20 21:40:06 +01:00
sharkdp
bd81fe65a2
create_export_manager -> ExportManager::new
2018-03-20 21:40:06 +01:00
sharkdp
aabe1331a2
Some renamings and documentation updates
2018-03-20 21:40:06 +01:00
Steve Pentland
c59110d652
Add option to export JSON, change file handling
...
No longer serialize into strings, instead use Vec<u8> as it is
what we're writing to the files.
Fixup comments
2018-03-20 20:14:14 +01:00
Steve Pentland
7c7277777a
Change the structure of everything to remove Manager trait.
...
Manager is now a simple struct, that no longer stores the results,
but instead takes in a Vec<ExportEntry> and has all exporters
write from this collection.
Benchmark and run both return their results, no more mut manager.
Change f64 in ExportEntry to hyperfine::internal::Second.
Remove multiple export files for a single type.
2018-03-19 07:53:10 +01:00
Steve Pentland
12d8fdbf61
Make it possible to export to multiple files at once
2018-03-19 07:53:10 +01:00
Steve Pentland
a91912f322
Add export manager and CSV export capability
2018-03-19 07:53:10 +01:00
Steve Pentland
4829dfbc85
Make checks more concise
2018-02-20 21:42:47 +01:00
Steve Pentland
faf00b6985
Add 'nocolor' option for output.
...
This maintains most output styles, but removes coloring from output. On Windows,
this is the default setting if Full would have been used
2018-02-20 21:42:47 +01:00
Steve Pentland
cad3d0c8e4
Remove extra trait, clean up cfg statements
2018-02-13 21:02:32 +01:00
Steve Pentland
9753eed85b
Initial working version with child proc HANDLE.
...
Still very ugly, and more work needs to be done to make it all pretty again. Additionally, cleaned
up all the cfg attrs to shor version
2018-02-13 21:02:32 +01:00
Steve Pentland
42635fbaaf
Initial windows timing support
2018-02-13 21:01:59 +01:00
Steve Pentland
92a0d4cfad
Don't disable styling on Windows
2018-02-12 22:43:28 +01:00
sharkdp
eb92bd4674
No hybrid between basic and full
2018-02-02 22:42:53 +01:00
Steve Pentland
038c05eee0
Keep coloring on Windows if auto or full
2018-02-02 22:42:53 +01:00
Steve Pentland
ff798ad615
Exclude entire cputime file, force basic output
2018-02-02 22:42:53 +01:00
Steve Pentland
1ddf729c7a
Initial changes to skip libc for cpu time on windows
...
Mark more non-windows as conditional
2018-02-02 22:42:53 +01:00
sharkdp
89e6d37562
Updates for 0.4.0
2018-01-28 18:49:54 +01:00
Steve Pentland
2e24ff012a
Add new style option to disable coloring and progress bars ( #24 )
2018-01-28 14:35:52 +01:00
sharkdp
d5c21ec272
Update warnings, switch to colored crate
2018-01-24 20:30:40 +01:00
sharkdp
241b89f12b
Add unit tests
2018-01-20 13:21:21 +01:00
sharkdp
ef2bef588c
Initial support for user and system time
2018-01-20 13:21:21 +01:00
sharkdp
35a513917d
Fix a few clippy warnings
2018-01-18 20:19:03 +01:00
sharkdp
ae47586998
Formatting
2018-01-18 19:00:04 +01:00
sharkdp
d42994bf64
Use enum instead of bool
2018-01-18 18:39:17 +01:00