aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'CHANGELOG.md')
-rwxr-xr-xCHANGELOG.md46
1 files changed, 41 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4472ef7..a747ed8 100755
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,13 +4,48 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
+## [Unreleased]
+
+## [0.3.4]
+### Added
+- Added support for benchmarking async functions
+- Added `with_output_color` for enabling or disabling CLI output coloring programmatically.
+
+### Fixed
+- Criterion.rs will now give a clear error message in case of benchmarks that take zero time.
+- Added some extra code to ensure that every sample has at least one iteration.
+- Added a notice to the `--help` output regarding "unrecognized option" errors.
+- Increased opacity on violin charts.
+- Fixed violin chart X axis not starting at zero in the plotters backend.
+- Criterion.rs will now automatically detect the right output directory.
+
+### Deprecated
+- `Criterion::can_plot` is no longer useful and is deprecated pending deletion in 0.4.0.
+- `Benchmark` and `ParameterizedBenchmark` were already hidden from documentation, but are now
+ formally deprecated pending deletion in 0.4.0. Callers should use `BenchmarkGroup` instead.
+- `Criterion::bench_function_over_inputs`, `Criterion::bench_functions`, and `Criterion::bench` were
+ already hidden from documentation, but are now formally deprecated pending deletion in 0.4.0.
+ Callers should use `BenchmarkGroup` instead.
+- Three new optional features have been added; "html_reports", "csv_output" and
+ "cargo_bench_support". These features currently do nothing except disable a warning message at
+ runtime, but in version 0.4.0 they will be used to enable HTML report generation, CSV file
+ generation, and the ability to run in cargo-bench (as opposed to [cargo-criterion]).
+ "cargo_bench_support" is enabled by default, but "html_reports" and "csv_output"
+ are not. If you use Criterion.rs' HTML reports, it is recommended to switch to [cargo-criterion].
+ If you use CSV output, it is recommended to switch to [cargo-criterion] and use the
+ `--message-format=json` option for machine-readable output instead. A warning message will be
+ printed at the start of benchmark runs which do not have "html_reports" or "cargo_bench_support"
+ enabled, but because CSV output is not widely used it has no warning.
+
+[cargo-criterion]: https://github.com/bheisler/cargo-criterion
+
## [0.3.3] - 2020-06-29
### Added
- Added `CRITERION_HOME` environment variable to set the directory for Criterion to store
its results and charts in.
-- Added support for [cargo-criterion](https://github.com/bheisler/cargo-criterion). The long-term
- goal here is to remove code from Criterion-rs itself to improve compile times, as well as to add
- features to `cargo-criterion` that are difficult to implement in Criterion-rs.
+- Added support for [cargo-criterion]. The long-term goal here is to remove code from Criterion-rs
+ itself to improve compile times, as well as to add features to `cargo-criterion` that are
+ difficult to implement in Criterion-rs.
- Add sampling mode option for benchmarks. This allows the user to change how Criterion.rs chooses
the iteration counts in each sample. By default, nothing will change for most benchmarks, but
very slow benchmarks will now run fewer iterations to fit in the desired number of samples.
@@ -353,7 +388,7 @@ more details
- Initial release on Crates.io.
-[Unreleased]: https://github.com/bheisler/criterion.rs/compare/0.3.3...HEAD
+[Unreleased]: https://github.com/bheisler/criterion.rs/compare/0.3.4...HEAD
[0.1.1]: https://github.com/bheisler/criterion.rs/compare/0.1.0...0.1.1
[0.1.2]: https://github.com/bheisler/criterion.rs/compare/0.1.1...0.1.2
[0.2.0]: https://github.com/bheisler/criterion.rs/compare/0.1.2...0.2.0
@@ -371,4 +406,5 @@ more details
[0.3.0]: https://github.com/bheisler/criterion.rs/compare/0.2.11...0.3.0
[0.3.1]: https://github.com/bheisler/criterion.rs/compare/0.3.0...0.3.1
[0.3.2]: https://github.com/bheisler/criterion.rs/compare/0.3.1...0.3.2
-[0.3.2]: https://github.com/bheisler/criterion.rs/compare/0.3.2...0.3.3 \ No newline at end of file
+[0.3.3]: https://github.com/bheisler/criterion.rs/compare/0.3.2...0.3.3
+[0.3.4]: https://github.com/bheisler/criterion.rs/compare/0.3.3...0.3.4 \ No newline at end of file