Commit Graph
408 Commits
Author SHA1 Message Date
David Peter 4d7e229017 Add iteration information to failure error message 2024-11-10 22:21:22 +01:00
Jan-Eric Nitschke 13547e973c Change message for identical time and add test for it 2024-06-30 22:45:40 +02:00
Jan-Eric Nitschke d4749b015f Fix prepare and conclude behaviour and add tests. 2024-06-30 22:45:40 +02:00
Jan-Eric Nitschke 9806ed7694 Added option to manually specify a reference to compare the results to. 2024-06-30 22:45:40 +02:00
Hamir Mahal 981db9d102 fix: formatting in src/command.rs 2024-06-01 11:07:23 +02:00
Hamir Mahal ef1263279d style: simplify string interpolation 2024-06-01 11:07:23 +02:00
one230six c0921351e7 refactor: Optimize code based on cargo clippy suggestions
Signed-off-by: one230six <723682061@qq.com>

refactor: Optimize code based on cargo clippy suggestions

Signed-off-by: one230six <723682061@qq.com>
2024-03-14 08:46:35 +01:00
Hamir Mahal 6c774103d9 refactor: replace repeated string allocation
on each iteration with one `String` creation in
`fold`, for efficiency
2024-03-12 21:32:40 +01:00
Hamir Mahal 96f8ae52ad refactor: remove redundant redefinition 2024-03-10 21:02:09 +01:00
Jack O'Connor e13d0cb144 Add --conclude option with tests
This implementation of --conclude is basically identical
to the existing implementation for --prepare. I have not
adapted any existing tests. All tests which test --conclude
functionality are new.

The --conclude commands will run in the same order in which
they are supplied on the cli in the same manner as --prepare
and there must either be one --conclude command, or else the
same number of --concludes as there are commands.
2024-02-02 17:46:23 +01:00
Albert Safin 4ffe96bda5 Specify clap::ValueHint for arguments 2024-01-16 20:22:03 +01:00
overclockworked64 798ea2dca1 fix: add a space in the progress bar template 2023-10-23 19:31:30 +02:00
Lena 69ee1738d4 Remove dependency on atty and use std::io::IsTerminal instead 2023-10-18 20:54:12 +02:00
David Peter 4564977b7a Add support for microseconds, closes #684 2023-10-05 09:39:00 +02:00
Pedro Witzel ae9b0bbdfd cfg: adding more pre-processing for windows-only parser 2023-10-05 09:25:07 +02:00
Pedro Witzel c2f99e5f94 fmt: apply cargo fmt suggestions 2023-10-05 09:25:07 +02:00
Pedro Witzel bece2eacf0 bug: quoting failure on windows-platform (#296) 2023-10-05 09:25:07 +02:00
David Peter 3d4710f6e0 Clippy suggestions 2023-06-03 23:24:11 +02:00
David Peter ac617c8714 Add new --sort option
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 #614
closes #601
2023-06-03 21:34:36 +02:00
Ville Skyttä 178bdaa205 Spelling and grammar fixes 2023-05-18 16:31:44 +02:00
David Peter a8752769ab Show unused parameters in command names
closes #600
2023-04-20 21:39:23 +02:00
David Peter 9859ecaafe Always compute relative speed comprison for export, closes #642 2023-04-20 13:22:00 +02:00
David Peter 926b8d07c8 Improve error message, mention --shell=none 2023-04-20 13:22:00 +02:00
David Peter 2793d7b994 Do not export intermediate results to stdout, closes #640 2023-04-20 13:22:00 +02:00
Clemens Wasser d2fb7d4c4c Use windows-sys and fix feature flag 2023-04-20 12:51:59 +02:00
Clemens Wasser ccda6c4712 Fix winapi type definition change 2023-04-17 21:10:59 +02:00
David Peter 80ec1c5ddf Fix usage of --input=null 2023-03-21 21:03:34 +01:00
David Peter fbe9ca6669 Use max. term width, not term width 2023-03-21 21:03:34 +01:00
David Peter 1c7a8cc2f6 Fix clippy suggestions 2023-03-15 10:13:58 +01:00
David Peter 2dfc919227 Help text wrapping 2023-03-15 10:13:58 +01:00
David Peter c44aa1d006 Fix clippy suggestions 2023-03-15 10:13:58 +01:00
David Peter 5f5adda8b4 Prevent creation of file named '-' 2023-03-15 10:13:58 +01:00
Humble Penguin e50050f53d removed unused imports 2023-03-15 09:34:29 +01:00
Humble Penguin 9d0f67838f used cfg!(windows) instead of env::consts::OS 2023-03-15 09:34:29 +01:00
Humble Penguin acf156e5d4 ran cargo fmt 2023-03-15 09:34:29 +01:00
Humble Penguin bbe706bcc1 PR for issue #615 2023-03-15 09:34:29 +01:00
David Peter 42e85f240c Fix merge conflicts 2023-03-15 09:33:49 +01:00
David Peter e4790ab441 Change error message 2023-03-15 09:33:49 +01:00
David Peter e88fa27c07 Change order of input/outut 2023-03-15 09:33:49 +01:00
David Peter 5db7516dd9 Formatting of help text 2023-03-15 09:33:49 +01:00
Steve Nease d32b90ee5c Add the rest of the suggestions from code review 2023-03-15 09:33:49 +01:00
sneaseandDavid Peter bbb59fd7fa Apply suggestions from code review
Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
2023-03-15 09:33:49 +01:00
Steve Nease 0e3bad1391 ran cargo fmt 2023-03-15 09:33:49 +01:00
Steve Nease e38acdb683 Added --stdin-data argument
This argument accepts a path to a file. The data contained in the file will be passed to the command via stdin.

Closes sharkdp/hyperfine#541
2023-03-15 09:33:49 +01: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
Benjamin Rombaut 781a6815c1 remove unneeded var 2022-11-19 15:13:30 +01:00
Benjamin Rombaut a2e85a25b6 remove unneeded var 2022-11-19 15:13:30 +01:00
Benjamin Rombaut fcaa6d32dc chore: run fmt 2022-11-19 15:13:30 +01:00
Benjamin Rombaut 17aca87df9 use wrap_help 2022-11-19 15:13:30 +01:00
Benjamin Rombaut 8d38ef3eaa update to clap 4 2022-11-19 15:13:30 +01:00