Prepare release v2.0.0-alpha.1
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Peter · committed by David Peter · parent bdbfae9 · Browse files · 6 files·+21 added−13 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+21 added−13 removed
- other:+21 added−13 removed
Provenance
- Commit
ccc8449- Tree
a50ae5b- Author
David Peter <mail@david-peter.de>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
bdbfae9
6 files changed+21 added−13 removed
modified:.github/workflows/CICD.yml+5 added-1 removed
220 unmodified lines221 DPKG_BASENAME=${{ needs.crate_metadata.outputs.name }}222 DPKG_CONFLICTS=${{ needs.crate_metadata.outputs.name }}-musl223 case ${{ matrix.job.target }} in *-musl*) DPKG_BASENAME=${{ needs.crate_metadata.outputs.name }}-musl ; DPKG_CONFLICTS=${{ needs.crate_metadata.outputs.name }} ;; esac;224 DPKG_VERSION=${{ needs.crate_metadata.outputs.version }}225+ # Debian prereleases must sort before the corresponding stable version.226+ DPKG_VERSION=${DPKG_VERSION/-/\~}227 228 unset DPKG_ARCH229 case ${{ matrix.job.target }} in230 aarch64-*-linux-*) DPKG_ARCH=arm64 ;;110 unmodified lines341 - name: Publish archives and packages342 uses: softprops/action-gh-release@v3343 if: steps.is-release.outputs.IS_RELEASE344 with:345+ prerelease: ${{ contains(needs.crate_metadata.outputs.version, '-') }}346+ make_latest: ${{ contains(needs.crate_metadata.outputs.version, '-') && 'false' || 'true' }}347 files: |348 ${{ steps.package.outputs.PKG_PATH }}349 ${{ steps.debian-package.outputs.DPKG_PATH }}350 env:2 unmodified lines353 winget:354 name: Publish to Winget355 runs-on: ubuntu-latest356 needs: build353- if: startsWith(github.ref, 'refs/tags/v')357+ if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')358 steps:359 - uses: vedantmgoyal2009/winget-releaser@v2360 with:361 identifier: sharkdp.hyperfine2 unmodified linesmodified:Cargo.lock+1 added-1 removed
375 unmodified lines376 checksum = "15cdd26707701c53297e2fa6afb323d55fbc1d0810c3aec078ae3ef0424c3c15"377 378 [[package]]379 name = "hyperfine"380-version = "1.21.0"380+version = "2.0.0-alpha.1"381 dependencies = [382 "anyhow",383 "approx",384 "assert_cmd",826 unmodified linesmodified:Cargo.toml+1 added-1 removed
5 unmodified lines678910101112131474 unmodified lines5 unmodified lineslicense = "MIT OR Apache-2.0"name = "hyperfine"readme = "README.md"repository = "https://github.com/sharkdp/hyperfine"version = "1.21.0"version = "2.0.0-alpha.1"edition = "2018"build = "build.rs"rust-version = "1.97.0"
74 unmodified linesmodified:CHANGELOG.md+10 added-6 removed
1-# Unreleased1+# v2.0.0-alpha.12 3+This is the first alpha release of hyperfine 2.0. Command-line options and export formats may change before the stable release. See the breaking changes below when migrating from hyperfine 1.x.4+5 ## Features6 5-- Add support for alternative performance metrics (peak memory usage, CPU cycles, instructions, cache misses, branch misses, ...). By default, hyperfine will now display wall-clock time and peak memory usage,7+- Add support for alternative performance metrics (peak memory usage, CPU cycles, instructions, cache misses, branch misses, ...). By default, hyperfine will now display wall-clock time and peak memory usage (wall-clock time only on Windows),8 but users can use the new `--metrics` option to select different performance metrics.7-- The terminal output now shows an overview of all measured performance metrics, including relative changes.9+- The terminal output now shows an overview of all selected performance metrics, including relative changes.10+- Python plotting and analysis scripts support the new JSON format and can select performance metrics with `--metric`, see #981 and #984 (@sharkdp).11 12 ## Breaking changes13 11-- Benchmarked commands are now always executed directly, without an intermediate shell (`--shell=none`). Use `-S` (an alias for `--shell=default`) to restore the previous behavior (`sh` on Unix, `cmd.exe` on Windows), or select a shell with `--shell <SHELL>`.14+- Benchmarked commands are now executed directly by default, without an intermediate shell (`--shell=none`). Use `-S` (an alias for `--shell=default`) to restore the previous behavior (`sh` on Unix, `cmd.exe` on Windows), or select a shell with `--shell <SHELL>`.15 - The JSON format for `--export-json` has changed (schema version 2). The new format now includes metadata, per-run measurements, and statistical summaries for all measured quantities, see #790 (@sharkdp). Code that reads those exported JSON files must be updated. For example, `results[i].mean` is now `results[i].summary.time_wall_clock.mean`, and `results[i].times` is replaced by `results[i].measurements[j].time_wall_clock.value`. The new structure looks like this:16 17 ```python18 {19 "schema_version": 2,20+ "primary_metric": "time_wall_clock",21 "metadata": {18- "hyperfine_version": "1.21.0",22+ "hyperfine_version": "2.0.0-alpha.1",23 "start_time": "2026-10-06T12:00:00Z",24 "platform": {"os": "Linux", "architecture": "x86_64"}25 },26 "results": [31 unmodified lines58 Times are always exported in seconds and memory in bytes.59 - `--time-unit`/`-u` has been removed. Units can now be selected using the `--metrics METRIC[:UNIT],…` option, e.g. `--metrics time_wall_clock:ms,memory_peak_resident:MiB`.60 - `--sort` has been removed. It complicated hyperfine significantly and doesn't make too much sense with the new output format.61 - `--reference` and `--reference-name` have been removed (for now). The first command is always considered as the reference command.58-- The format of Markdown, AsciiDoc, org-mode and CSV exports has also been changed. CSV now includes columns with the name and the unit of the primary metric.62+- The format of Markdown, AsciiDoc, org-mode and CSV exports has also been changed. These formats contain only the primary metric (the first metric selected by `--metrics`). CSV now includes columns with the name and the unit of the primary metric.63 64 # v1.21.065 66 ## Features453 unmodified linesmodified:CITATION.cff+2 added-2 removed
11 unmodified lines12 orcid: 'https://orcid.org/0000-0001-7950-9915'13 repository-code: 'https://github.com/sharkdp/hyperfine'14 abstract: A command-line benchmarking tool.15 license: MIT16-version: 1.21.017-date-released: '2026-10-05'16+version: 2.0.0-alpha.117+date-released: '2026-10-06'modified:README.md+2 added-2 removed
218 unmodified lines219 220 - Linux: Same scope as `cpu_cycles`.221 - macOS/Windows: Currently not supported.222 223-Note that hardware counters are not available if a `--shell` is used.223+Note that hardware counters are not available when a shell is enabled (`--shell=..`).224 225 Time measurements support units `ns`, `us`, `ms`, `s`, `min`, and `h`. Memory measurements226 support `B`, `kB`, `MB`, `GB`, `TB`, `KiB`, `MiB`, `GiB`, and `TiB`. Hardware counters227 support `count` (1), `k` (thousand), `M` (million), and `B` (billion).8 unmodified lines236 237 ### Exporting results238 239 Hyperfine can export results to CSV, JSON, Markdown, AsciiDoc, and org-mode. Non-JSON formats240-contain only the primary metric.240+contain only the primary metric, which is the first metric selected by `--metrics`.241 242 #### Markdown243 244 You can use the `--export-markdown <file>` option to create tables like the following:206 unmodified lines