mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-12-03 21:31:03 +00:00
Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b596b3873 | ||
|
|
04e2f6378e | ||
|
|
e8c2c9312e | ||
|
|
21f1081e73 | ||
|
|
8ad94d6fad | ||
|
|
de78139aea | ||
|
|
88870c13c2 | ||
|
|
9a14dd83e6 | ||
|
|
b2fb73bf4d | ||
|
|
7f9fde2c50 | ||
|
|
f418a592ac |
No files matched your search
@@ -330,15 +330,3 @@ jobs:
|
|||||||
${{ steps.debian-package.outputs.DPKG_PATH }}
|
${{ steps.debian-package.outputs.DPKG_PATH }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
winget:
|
|
||||||
name: Publish to Winget
|
|
||||||
runs-on: windows-latest # Action can only run on Windows
|
|
||||||
needs: build
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
steps:
|
|
||||||
- uses: vedantmgoyal2009/winget-releaser@v2
|
|
||||||
with:
|
|
||||||
identifier: sharkdp.hyperfine
|
|
||||||
installers-regex: '-pc-windows-msvc\.zip$'
|
|
||||||
token: ${{ secrets.WINGET_TOKEN }}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
name: Publish to Winget
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: windows-latest # Action can only run on Windows
|
||||||
|
steps:
|
||||||
|
- uses: vedantmgoyal2009/winget-releaser@v2
|
||||||
|
with:
|
||||||
|
identifier: sharkdp.hyperfine
|
||||||
|
installers-regex: '-pc-windows-msvc\.zip$'
|
||||||
|
token: ${{ secrets.WINGET_TOKEN }}
|
||||||
@@ -15,13 +15,6 @@
|
|||||||
## Other
|
## Other
|
||||||
|
|
||||||
|
|
||||||
# v1.16.1
|
|
||||||
|
|
||||||
## Bugfixes
|
|
||||||
|
|
||||||
- Fix line-wrapping of `--help` text (@sharkdp)
|
|
||||||
- Fix `--input=null` (@sharkdp)
|
|
||||||
|
|
||||||
|
|
||||||
# v1.16.0
|
# v1.16.0
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -13,5 +13,5 @@ authors:
|
|||||||
repository-code: 'https://github.com/sharkdp/hyperfine'
|
repository-code: 'https://github.com/sharkdp/hyperfine'
|
||||||
abstract: A command-line benchmarking tool.
|
abstract: A command-line benchmarking tool.
|
||||||
license: MIT
|
license: MIT
|
||||||
version: 1.16.1
|
version: 1.16.0
|
||||||
date-released: '2023-03-21'
|
date-released: '2023-03-15'
|
||||||
Generated
+1
-1
@@ -405,7 +405,7 @@ checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hyperfine"
|
name = "hyperfine"
|
||||||
version = "1.16.1"
|
version = "1.16.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"approx",
|
"approx",
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ license = "MIT/Apache-2.0"
|
|||||||
name = "hyperfine"
|
name = "hyperfine"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/sharkdp/hyperfine"
|
repository = "https://github.com/sharkdp/hyperfine"
|
||||||
version = "1.16.1"
|
version = "1.16.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
rust-version = "1.64.0"
|
rust-version = "1.64.0"
|
||||||
|
|||||||
@@ -170,8 +170,8 @@ like `--warmup`, `--prepare <cmd>`, `--setup <cmd>` or `--cleanup <cmd>`:
|
|||||||
Download the appropriate `.deb` package from the [Release page](https://github.com/sharkdp/hyperfine/releases)
|
Download the appropriate `.deb` package from the [Release page](https://github.com/sharkdp/hyperfine/releases)
|
||||||
and install it via `dpkg`:
|
and install it via `dpkg`:
|
||||||
```
|
```
|
||||||
wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.1/hyperfine_1.16.1_amd64.deb
|
wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.0/hyperfine_1.16.0_amd64.deb
|
||||||
sudo dpkg -i hyperfine_1.16.1_amd64.deb
|
sudo dpkg -i hyperfine_1.16.0_amd64.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
### On Fedora
|
### On Fedora
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ fn build_command() -> Command {
|
|||||||
.hide_possible_values(true)
|
.hide_possible_values(true)
|
||||||
.about("A command-line benchmarking tool.")
|
.about("A command-line benchmarking tool.")
|
||||||
.help_expected(true)
|
.help_expected(true)
|
||||||
.max_term_width(80)
|
.term_width(100)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("command")
|
Arg::new("command")
|
||||||
.help("The command to benchmark. This can be the name of an executable, a command \
|
.help("The command to benchmark. This can be the name of an executable, a command \
|
||||||
|
|||||||
+6
-10
@@ -379,17 +379,13 @@ impl Options {
|
|||||||
}
|
}
|
||||||
|
|
||||||
options.command_input_policy = if let Some(path_str) = matches.get_one::<String>("input") {
|
options.command_input_policy = if let Some(path_str) = matches.get_one::<String>("input") {
|
||||||
if path_str == "null" {
|
let path = PathBuf::from(path_str);
|
||||||
CommandInputPolicy::Null
|
if !path.exists() {
|
||||||
} else {
|
return Err(OptionsError::StdinDataFileDoesNotExist(
|
||||||
let path = PathBuf::from(path_str);
|
path_str.to_string(),
|
||||||
if !path.exists() {
|
));
|
||||||
return Err(OptionsError::StdinDataFileDoesNotExist(
|
|
||||||
path_str.to_string(),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
CommandInputPolicy::File(path)
|
|
||||||
}
|
}
|
||||||
|
CommandInputPolicy::File(path)
|
||||||
} else {
|
} else {
|
||||||
CommandInputPolicy::Null
|
CommandInputPolicy::Null
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user