Skip to content
Myr

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

6 files+21 added−13 removed

modified:.github/workflows/CICD.yml+5 added-1 removed
220 unmodified lines
221 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/-/\~}227228 unset DPKG_ARCH229 case ${{ matrix.job.target }} in230 aarch64-*-linux-*) DPKG_ARCH=arm64 ;;
110 unmodified lines
341 - 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 lines
353 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.hyperfine
2 unmodified lines
modified:Cargo.lock+1 added-1 removed
375 unmodified lines
376checksum = "15cdd26707701c53297e2fa6afb323d55fbc1d0810c3aec078ae3ef0424c3c15"377378[[package]]379name = "hyperfine"380version = "1.21.0"380version = "2.0.0-alpha.1"381dependencies = [382 "anyhow",383 "approx",384 "assert_cmd",
826 unmodified lines
modified:Cargo.toml+1 added-1 removed
modified:CHANGELOG.md+10 added-6 removed
1# Unreleased1# v2.0.0-alpha.123This 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.45## Features65- 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).1112## Breaking changes1311- 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:1617 ```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 lines
58 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.6364# v1.21.06566## Features
453 unmodified lines
modified:CITATION.cff+2 added-2 removed
11 unmodified lines
12 orcid: 'https://orcid.org/0000-0001-7950-9915'13repository-code: 'https://github.com/sharkdp/hyperfine'14abstract: A command-line benchmarking tool.15license: MIT16version: 1.21.017date-released: '2026-10-05'16version: 2.0.0-alpha.117date-released: '2026-10-06'
modified:README.md+2 added-2 removed
218 unmodified lines
219220 - Linux: Same scope as `cpu_cycles`.221 - macOS/Windows: Currently not supported.222223Note that hardware counters are not available if a `--shell` is used.223Note that hardware counters are not available when a shell is enabled (`--shell=..`).224225Time measurements support units `ns`, `us`, `ms`, `s`, `min`, and `h`. Memory measurements226support `B`, `kB`, `MB`, `GB`, `TB`, `KiB`, `MiB`, `GiB`, and `TiB`. Hardware counters227support `count` (1), `k` (thousand), `M` (million), and `B` (billion).
8 unmodified lines
236237### Exporting results238239Hyperfine can export results to CSV, JSON, Markdown, AsciiDoc, and org-mode. Non-JSON formats240contain only the primary metric.240contain only the primary metric, which is the first metric selected by `--metrics`.241242#### Markdown243244You can use the `--export-markdown <file>` option to create tables like the following:
206 unmodified lines