Ævar Arnfjörð Bjarmason
bffd476128
Add support for one run with --runs=1
...
Extend the --runs=N option added in d78c33b
(Added options to specify
the max/exact numbers of runs., 2018-09-09) to support --runs=1
instead of dying with a usage error.
This is useful to do ad-hoc testing of your commands while they might
still have syntax errors, or just for doing one run where you don't
care about the stddev.
Before:
$ /usr/bin/hyperfine -s basic -r 1 -L n 5,10 'sleep 0.{n}'
Error: Number of runs below two
After (-s basic) also works:
$ hyperfine -r 1 -L n 5,10 'sleep 0.{n}'
Benchmark 1: sleep 0.5
Time (abs ≡): 500.6 ms [User: 0.6 ms, System: 0.0 ms]
Benchmark 2: sleep 0.10
Time (abs ≡): 100.8 ms [User: 0.7 ms, System: 0.0 ms]
Summary
'sleep 0.10' ran
4.97 ± 0.00 times faster than 'sleep 0.5'
This likewise combines correctly with -m and -M, probably not very
useful, but if you're tweaking an existing command-line:
$ hyperfine -m 1 -M 1 -L n 5,10 'sleep 0.{n}'
Benchmark 1: sleep 0.5
Time (abs ≡): 500.6 ms [User: 0.5 ms, System: 0.0 ms]
Benchmark 2: sleep 0.10
Time (abs ≡): 100.6 ms [User: 0.6 ms, System: 0.0 ms]
Summary
'sleep 0.10' ran
4.98 ± 0.00 times faster than 'sleep 0.5'
The "± 0.00" output in "faster than" should probably be adjusted too,
or we could keep it for consistency. I didn't implement that because
this is the first time I do anything in Rust, and I ran out of
template to copy when wanting to quickly implement this in
write_benchmark_comparison() in main.rs.
2021-11-14 10:28:24 +01:00
dependabot[bot]
4b419c6ab4
Bump rust_decimal from 1.16.0 to 1.17.0
...
Bumps [rust_decimal](https://github.com/paupino/rust-decimal ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/paupino/rust-decimal/releases )
- [Commits](https://github.com/paupino/rust-decimal/commits )
---
updated-dependencies:
- dependency-name: rust_decimal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 17:31:37 +01:00
dependabot[bot]
b44890ba90
Bump libc from 0.2.104 to 0.2.106
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.104 to 0.2.106.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.104...0.2.106 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 17:31:24 +01:00
David Peter
8b60a06ee5
Update CI file
2021-10-17 19:45:12 +02:00
David Peter
21a5ed2b89
Update dependencies
2021-10-17 19:45:12 +02:00
David Peter
a36e5990c5
Update dependencies
2021-10-17 19:45:12 +02:00
David Peter
93c16534c0
Prepare release v1.12
2021-10-17 19:45:12 +02:00
David Peter
58d3eada61
Enable colors on Windows, closes #427
2021-10-17 18:03:18 +02:00
Clément Joly
5c6b302591
Document different increase pattern for -P
...
Document values of `-P` increasing as powers of 2 and following other
patterns.
Fixes #403
2021-10-17 17:24:32 +02:00
David Peter
8a4e791025
Fix merge conflict
2021-10-17 17:10:46 +02:00
Heikki Hellgren
f592155db7
Fix clippy warnings from tests
2021-10-17 17:04:46 +02:00
rhysd
f2bfedd3a6
Fix clippy warnings
2021-10-17 17:03:36 +02:00
rhysd
1b7d139f21
Add tests for options::Shell
2021-10-17 17:03:36 +02:00
rhysd
e2fdaceb9f
Parse --shell option value as shell command
2021-10-17 17:03:36 +02:00
dependabot[bot]
5c6879e4c1
Bump assert_cmd from 2.0.0 to 2.0.1
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: assert_cmd
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-17 17:00:09 +02:00
dependabot[bot]
bf40395428
Bump rust_decimal from 1.15.0 to 1.16.0
...
Bumps [rust_decimal](https://github.com/paupino/rust-decimal ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/paupino/rust-decimal/releases )
- [Commits](https://github.com/paupino/rust-decimal/compare/1.15.0...1.16.0 )
---
updated-dependencies:
- dependency-name: rust_decimal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-17 16:59:53 +02:00
dependabot[bot]
c6bc4e3320
Bump serde_json from 1.0.67 to 1.0.68
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.67 to 1.0.68.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.67...v1.0.68 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-17 16:59:46 +02:00
dependabot[bot]
85963af061
Bump libc from 0.2.101 to 0.2.103
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.101 to 0.2.103.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.101...0.2.103 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-17 16:59:35 +02:00
David Peter
a16781b252
Fix description of Debian package
2021-10-03 19:08:58 +02:00
invakid404
f5db7834dd
chore: add funtoo linux instructions
2021-10-03 15:29:59 +02:00
dependabot[bot]
446b84d5d8
Bump serde_json from 1.0.66 to 1.0.67
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.66...v1.0.67 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 07:29:48 +02:00
dependabot[bot]
faa18bb316
Bump serde from 1.0.129 to 1.0.130
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.129 to 1.0.130.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 07:29:43 +02:00
dependabot[bot]
df2bb23586
Bump libc from 0.2.100 to 0.2.101
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.100 to 0.2.101.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.100...0.2.101 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-03 07:29:37 +02:00
David Peter
1027940e3a
Completely remove internal.rs
2021-08-24 22:44:08 +02:00
David Peter
76dd9d40f0
Move relative-speed computation to separate module
2021-08-24 22:44:08 +02:00
David Peter
d5a2590b98
Move benchmark comparison to main.rs
2021-08-24 22:44:08 +02:00
David Peter
eb31e0f5f9
Move tokenize to new file
2021-08-24 22:44:08 +02:00
David Peter
13986b17f4
Move progress bar to separate module
2021-08-24 22:44:08 +02:00
David Peter
8618c86421
Fix float eq check
2021-08-24 22:44:08 +02:00
David Peter
9d61130b44
Remove timer/internal.rs
2021-08-24 22:44:08 +02:00
David Peter
36d4f82abd
Do not specify exact versions
2021-08-24 22:44:08 +02:00
David Peter
da7165fa58
Remove outdated version check
2021-08-24 22:44:08 +02:00
David Peter
3a0bcd977d
Update dependencies
2021-08-24 22:44:08 +02:00
David Peter
60e9771ad5
Remove cfg-if dependency
2021-08-24 22:44:08 +02:00
David Peter
9df6174bc2
Re-order imports
2021-08-24 22:44:08 +02:00
David Peter
30c381fe2a
Flat directory/module structure
2021-08-24 22:44:08 +02:00
David Peter
d31936ec28
Fix tests on Windows
2021-08-23 22:37:02 +02:00
David Peter
e71ff559f3
Add simple integration tests
2021-08-23 22:37:02 +02:00
David Peter
9b328ff354
Move BenchmarkResult to new file
2021-08-23 21:47:58 +02:00
David Peter
cbfd9f5b41
Move DEFAULT_SHELL to options
2021-08-23 21:47:58 +02:00
David Peter
465160b9aa
Move Options struct to new module
2021-08-23 21:47:58 +02:00
David Peter
eee32308b7
Move Command struct to new module
2021-08-23 21:47:58 +02:00
David Peter
b5bd054cf4
Remove years from copyright notice
2021-08-22 17:17:48 +02:00
David Peter
068bebb4e6
Fix remaining clippy warnings
2021-08-22 16:33:43 +02:00
David Peter
85730b3f0f
Auto-fix clippy warnings
2021-08-22 16:33:43 +02:00
David Peter
489e30cbae
Remove --lib option
2021-08-22 15:51:28 +02:00
David Peter
f860c3cf6b
Run cargo fmt
2021-08-22 15:51:28 +02:00
David Peter
75919ad884
Set --locked everywhere
2021-08-22 15:51:28 +02:00
David Peter
a5cac67ee6
Sync CI config with fd
2021-08-22 15:51:28 +02:00
David Peter
768c2e9f24
Sync CI config with bat
2021-08-22 15:51:28 +02:00