David Peter
02157eb6ca
Add histogram image
v1.13.0
2022-03-05 12:51:01 +01:00
David Peter
65932dd5ce
Update warning text
2022-03-05 12:47:30 +01:00
David Peter
851e9b8dfa
Update documentation
2022-03-05 12:39:00 +01:00
David Peter
5c676a9626
Bump version to v1.13.0
2022-03-05 12:10:38 +01:00
David Peter
f1557d47fb
Add plot_progression.py
2022-03-05 12:03:29 +01:00
David Peter
bcd3705ce0
Add number of runs to advanced_statistics.py
2022-03-05 11:53:59 +01:00
David Peter
176275ecab
Update dependencies
2022-03-05 11:53:45 +01:00
Vin Singh
56cce61077
Add scipy to scripts README.md pre-requisites
2022-03-03 20:37:09 +01:00
dependabot[bot]
770e23bc1b
Bump clap from 3.1.1 to 3.1.3
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.1 to 3.1.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.1...v3.1.3 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-01 08:43:19 +01:00
David Peter
0601a1971e
Add --t-min/--t-max to histogram script
2022-02-27 20:11:13 +01:00
David Peter
f742329f1e
Adjust image size
2022-02-27 17:04:00 +01:00
David Peter
d13454a0d4
Add additional integration test for failing command
2022-02-22 22:51:09 +01:00
David Peter
e666b01e09
Add simple integation test for --shell=none
2022-02-22 22:51:09 +01:00
David Peter
e38ac46179
Add CHANGELOG entry
2022-02-22 22:51:09 +01:00
David Peter
365ff2584d
Switch to --shell=none/-N, do not change the default
2022-02-22 22:51:09 +01:00
David Peter
d9418e0731
Use raw executor by default, skip intermediate shell
...
This adds a new "raw executor" (next to the "shell executor") that
allows hyperfine to execute commands directly without any intermediate
shell.
The command line is split into tokens (using the `shell-words` crate),
and according to POSIX rules. The first token is taken as the executable,
and the rest as arguments.
The new executor is enabled by default. In order to select the shell
executor, users will have to pass `--shell=default`.
This allows us to reduce measurement noise and to benchmark very quick
commands. It also decreases the time to run benchmarks, as we don't need
the calibration phase.
Also, it allows one to make sure that the executed command is not
implemented as a shell builtin. For example `hyperfine true`
and `hyperfine --shell=default true` return different times due
to the fact that `bash` executes `true` as a NOP.
Co-authored: Ciprian Dorin Craciun <ciprian@volution.ro >
2022-02-22 22:51:09 +01:00
David Peter
f2f1dd9d40
Update dependencies
2022-02-22 14:04:07 +01:00
David Peter
308bf5cd26
Extract common functionality
2022-02-22 13:24:05 +01:00
David Peter
f19223ba9d
Simplify
2022-02-22 13:24:05 +01:00
David Peter
7fd4aea495
Rename to TimerResult
2022-02-22 13:24:05 +01:00
David Peter
55f0ef6637
Move wall clock timer into execute_and_measure
2022-02-22 13:24:05 +01:00
David Peter
e001530f61
Change argument order
2022-02-22 13:24:05 +01:00
David Peter
d27cbceed2
Add integration test for --show-output
2022-02-22 13:24:05 +01:00
David Peter
9b8f2a9ee2
Move Stdio extraction to enum
2022-02-22 13:24:05 +01:00
David Peter
e1da8ba00f
Further simplify execute_and_measure
2022-02-22 13:24:05 +01:00
David Peter
0ffc6d7cc0
Move to timer module
2022-02-22 13:24:05 +01:00
David Peter
1f3943e7d1
Move custom functionality to executor
2022-02-22 13:24:05 +01:00
David Peter
f822455d99
Rename functions
2022-02-22 13:24:05 +01:00
David Peter
7c929f7e48
Rename to run_command_and_measure
2022-02-22 13:24:05 +01:00
David Peter
826449bc8f
Rename to get_command_line
2022-02-22 13:24:05 +01:00
David Peter
defafdf707
Refactor timer module
2022-02-22 10:51:06 +01:00
David Peter
f029a46ff9
Fix clippy warnings
2022-02-22 10:13:06 +01:00
David Peter
b6ff23a77f
Update outdated comment
2022-02-22 10:08:15 +01:00
David Peter
eb72702956
Update LICENSE
2022-02-22 10:05:04 +01:00
David Peter
197e5df9f0
Add environment randomization on Windows
2022-02-22 09:42:31 +01:00
David Peter
cb6f2f7c4e
Remove comment
2022-02-22 09:15:40 +01:00
David Peter
62e82a9b4b
Update CHANGELOG
2022-02-22 09:15:25 +01:00
David Peter
6887835f34
Proper shell overhead computation
2022-02-22 09:07:40 +01:00
David Peter
6f51232a8a
Add debug/mock mode
2022-02-22 09:07:40 +01:00
David Peter
3348b37b8e
Faster tests
2022-02-22 09:07:40 +01:00
David Peter
c0ce6b9537
Add integration test for '--shell'
2022-02-22 09:07:40 +01:00
David Peter
5c9c8c2383
New Benchmark struct
2022-02-22 09:07:40 +01:00
David Peter
d3c7c7974a
Improve error message
2022-02-22 09:07:40 +01:00
David Peter
701a38323d
Formatting
2022-02-22 09:07:40 +01:00
David Peter
8c5ae87ca2
Better error handling in run_intermediate_command
2022-02-22 09:07:40 +01:00
David Peter
662d5ca9ac
Restructure run_intermediate_command
2022-02-22 09:07:40 +01:00
David Peter
f4ef945923
Update BenchmarkResult documentation
2022-02-22 09:07:40 +01:00
David Peter
021583b89b
Simplify code
2022-02-22 09:07:40 +01:00
David Peter
0b5ad72872
Rename to command
2022-02-22 09:07:40 +01:00
David Peter
4cfccf1168
Rename num
2022-02-22 09:07:40 +01:00