Skip to content

Releases: criterion-rs/criterion.rs

criterion-v0.8.1

07 Dec 17:56
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Fixed

  • Homepage link

Other

  • (deps) bump crate-ci/typos from 1.23.5 to 1.40.0
  • (deps) bump jontze/action-mdbook from 3 to 4
  • (deps) bump actions/checkout from 4 to 6

criterion-plot-v0.8.1

07 Dec 17:55
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

criterion-v0.8.0

30 Nov 00:12
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

BREAKING

  • Drop async-std support

Changed

  • Bump MSRV to 1.86, stable to 1.91.1

Added

  • Add ability to plot throughput on summary page.
  • Add support for reporting throughput in elements and bytes - Throughput::ElementsAndBytes allows the text summary to report throughput in both units simultaneously.
  • Add alloca-based memory layout randomisation to mitigate memory effects on measurements.
  • Add doc comment to benchmark runner in criterion_group macro (removes linter warnings)

Fixed

  • Fix plotting NaN bug

Other

  • Remove Master API Docs links temporarily while we restore the docs publishing.

criterion-plot-v0.8.0

30 Nov 00:12
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

chore: Release package criterion-plot version 0.8.0

criterion-plot-v0.7.0

29 Nov 23:54
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

chore: Release package criterion-plot version 0.7.0

0.7.0

22 Oct 11:40
Immutable release. Only release title and notes can be modified.
567405d

Choose a tag to compare

  • Bump version of criterion-plot to align dependencies.

0.6.0

22 Oct 11:39
Immutable release. Only release title and notes can be modified.
43bf90a

Choose a tag to compare

Changed

  • MSRV bumped to 1.80
  • The real_blackbox feature no longer has any impact. Criterion always uses std::hint::black_box() now.
    Users of criterion::black_box() should switch to std::hint::black_box().
  • clap dependency unpinned.

Fixed

  • gnuplot version is now correctly detected when using certain Windows binaries/configurations that used to fail

Added

  • Async benchmarking with Tokio may be done via a tokio::runtime::Handle, not only a tokio::runtime::Runtime

0.5.1

22 Oct 11:39
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Fixed

  • Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active

0.5.0

22 Oct 11:39
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Changed

  • Replaced lazy_static dependency with once_cell
  • Improved documentation of the html_reports feature
  • Replaced atty dependency with is-terminal
  • MSRV bumped to 1.64
  • Upgraded clap dependency to v4
  • Upgraded tempfile dependency to v3.5.0

Fixed

  • Quick mode (--quick) no longer outputs 1ms for measured times over 5 seconds
  • Documentation updates

0.4.0

22 Oct 11:39
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Removed

  • The Criterion::can_plot function has been removed.
  • The Criterion::bench_function_over_inputs function has been removed.
  • The Criterion::bench_functions function has been removed.
  • The Criterion::bench function has been removed.

Changed

  • HTML report hidden behind non-default feature flag: 'html_reports'
  • Standalone support (ie without cargo-criterion) feature flag: 'cargo_bench_support'
  • MSRV bumped to 1.57
  • rayon and plotters are optional (and default) dependencies.
  • Status messages ('warming up', 'analyzing', etc) are printed to stderr, benchmark results are printed to stdout.
  • Accept subsecond durations for --warm-up-time, --measurement-time and --profile-time.
  • Replaced serde_cbor with ciborium because the former is no longer maintained.
  • Upgrade clap to v3 and regex to v1.5.

Added

  • A --discard-baseline flag for discarding rather than saving benchmark results.
  • Formal support for benchmarking code compiled to web-assembly.
  • A --quiet flag for printing just a single line per benchmark.
  • A Throughput::BytesDecimal option for measuring throughput in bytes but printing them using
    decimal units like kilobytes instead of binary units like kibibytes.

Fixed

  • When using bench_with_input, the input parameter will now be passed through black_box before
    passing it to the benchmark.