Skip to content

Commit a18d080

Browse files
committed
Merge branch 'master' into version-0.4
2 parents 2934163 + f9c6b8d commit a18d080

File tree

8 files changed

+38
-20
lines changed

8 files changed

+38
-20
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
810
## [0.4.0] - IN DEVELOPMENT
911

1012
### Removed
@@ -35,6 +37,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3537
- When using `bench_with_input`, the input parameter will now be passed through `black_box` before
3638
passing it to the benchmark.
3739

40+
## [0.3.6] - 2022-07-06
41+
### Changed
42+
- MSRV bumped to 1.49
43+
- Symbol for microseconds changed from ASCII 'us' to unicode 'µs'
44+
- Documentation fixes
45+
- Clippy fixes
46+
3847
## [0.3.5] - 2021-07-26
3948

4049
### Fixed
@@ -493,7 +502,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
493502

494503
- Initial release on Crates.io.
495504

505+
<<<<<<< HEAD
496506
[unreleased]: https://github.com/bheisler/criterion.rs/compare/0.3.4...HEAD
507+
=======
508+
509+
[Unreleased]: https://github.com/bheisler/criterion.rs/compare/0.3.6...HEAD
510+
>>>>>>> master
497511
[0.1.1]: https://github.com/bheisler/criterion.rs/compare/0.1.0...0.1.1
498512
[0.1.2]: https://github.com/bheisler/criterion.rs/compare/0.1.1...0.1.2
499513
[0.2.0]: https://github.com/bheisler/criterion.rs/compare/0.1.2...0.2.0
@@ -514,3 +528,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
514528
[0.3.3]: https://github.com/bheisler/criterion.rs/compare/0.3.2...0.3.3
515529
[0.3.4]: https://github.com/bheisler/criterion.rs/compare/0.3.3...0.3.4
516530
[0.3.5]: https://github.com/bheisler/criterion.rs/compare/0.3.4...0.3.5
531+
[0.3.5]: https://github.com/bheisler/criterion.rs/compare/0.3.5...0.3.6

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Some things that will increase the chance that your pull request is accepted:
6060
* PRs with breaking changes are made against the unreleased branch. e.g. branch version-0.4
6161
* PRs without breaking changes are made against the master branch.
6262

63-
If your not sure which branch to use just start with master, as this can be changed during review.
63+
If you're not sure which branch to use just start with master, as this can be changed during review.
6464

6565
When it is time to release the unreleased branch, a PR is made from the unreleased branch to master. e.g. https://github.com/bheisler/criterion.rs/pull/496
6666

Cargo.toml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ authors = [
33
"Jorge Aparicio <[email protected]>",
44
"Brook Heisler <[email protected]>",
55
]
6-
name = "criterion"
7-
version = "0.3.5"
6+
name = "criterion"
7+
version = "0.3.6"
88
edition = "2018"
99

1010
description = "Statistics-driven micro-benchmarking library"
@@ -19,7 +19,7 @@ exclude = ["book/*"]
1919
[dependencies]
2020
anes = "0.1.4"
2121
lazy_static = "1.4"
22-
criterion-plot = { path = "plot", version = "0.4.4" }
22+
criterion-plot = { path = "plot", version = "0.4.5" }
2323
itertools = "0.10"
2424
serde = "1.0"
2525
serde_json = "1.0"
@@ -29,7 +29,7 @@ atty = "0.2.6"
2929
clap = { version = "3.1", default-features = false, features = ["std"] }
3030
walkdir = "2.3"
3131
tinytemplate = "1.1"
32-
cast = "0.2"
32+
cast = "0.3"
3333
num-traits = { version = "0.2", default-features = false, features = ["std"] }
3434
oorandom = "11.1"
3535
regex = { version = "1.5", default-features = false, features = ["std"] }
@@ -38,11 +38,13 @@ termcolor = "1.1.2"
3838
unicode-width = "0.1.9"
3939

4040
# Optional dependencies
41-
rayon = { version = "1.3", optional = true }
42-
csv = { version = "1.1", optional = true }
43-
futures = { version = "0.3", default_features = false, optional = true }
44-
smol = { version = "1.2", default-features = false, optional = true }
45-
tokio = { version = "1.0", default-features = false, features = ["rt"], optional = true }
41+
rayon = { version = "1.3", optional = true }
42+
csv = { version = "1.1", optional = true }
43+
futures = { version = "0.3", default_features = false, optional = true }
44+
smol = { version = "1.2", default-features = false, optional = true }
45+
tokio = { version = "1.0", default-features = false, features = [
46+
"rt",
47+
], optional = true }
4648
async-std = { version = "1.9", optional = true }
4749

4850
[dependencies.plotters]
@@ -62,7 +64,7 @@ futures = { version = "0.3", default_features = false, features = ["executor"
6264
maintenance = { status = "passively-maintained" }
6365

6466
[features]
65-
stable = [
67+
stable = [
6668
"csv_output",
6769
"html_reports",
6870
"async_futures",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ For more details, see the [CONTRIBUTING.md file](https://github.com/bheisler/cri
117117
### Compatibility Policy
118118

119119
Criterion.<span></span>rs supports the last three stable minor releases of Rust. At time of
120-
writing, this means Rust 1.50 or later. Older versions may work, but are not guaranteed.
120+
writing, this means Rust 1.59 or later. Older versions may work, but are not guaranteed.
121121

122122
Currently, the oldest version of Rust believed to work is 1.56.1. Future versions of Criterion.<span></span>rs may
123123
break support for such old versions, and this will not be considered a breaking change. If you

book/src/user_guide/html_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HTML Report
22

33
Criterion.rs can generate an HTML report displaying the results of the benchmark under
4-
`target/criterion/report/index.html`. By default, the plots are generated using
4+
`target/criterion/reports/index.html`. By default, the plots are generated using
55
[gnuplot](http://www.gnuplot.info/) if it is available, or the
66
[plotters](https://github.com/38/plotters) crate if it is not. The example below was generated
77
using the gnuplot backend, but the charts generated by plotters are similar.

plot/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Jorge Aparicio <[email protected]>", "Brook Heisler <[email protected]>"]
33
name = "criterion-plot"
4-
version = "0.4.4"
4+
version = "0.4.5"
55
edition = "2018"
66

77
description = "Criterion's plotting library"
@@ -12,13 +12,13 @@ categories = ["visualization"]
1212
license = "MIT/Apache-2.0"
1313

1414
[dependencies]
15-
cast = "0.2"
15+
cast = "0.3"
1616
itertools = "0.10"
1717

1818
[dev-dependencies]
1919
itertools-num = "0.1"
20-
num-complex = { version = "0.2", default-features = false, features = ["std"] }
21-
rand = "0.4"
20+
num-complex = { version = "0.4", default-features = false, features = ["std"] }
21+
rand = "0.8"
2222

2323
[badges]
2424
travis-ci = { repository = "bheisler/criterion.rs" }

plot/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
//! use std::f64::consts::PI;
8080
//!
8181
//! use itertools_num::linspace;
82-
//! use rand::{Rng, XorShiftRng};
82+
//! use rand::Rng;
8383
//! use criterion_plot::prelude::*;
8484
//!
8585
//! fn sinc(mut x: f64) -> f64 {
@@ -97,7 +97,7 @@
9797
//! let ref xs_ = linspace::<f64>(-4., 4., 101).collect::<Vec<_>>();
9898
//!
9999
//! // Fake some data
100-
//! let ref mut rng: XorShiftRng = rand::thread_rng().gen();
100+
//! let ref mut rng = rand::thread_rng();
101101
//! let xs = linspace::<f64>(-4., 4., 13).skip(1).take(11);
102102
//! let ys = xs.map(|x| sinc(x) + 0.05 * rng.gen::<f64>() - 0.025).collect::<Vec<_>>();
103103
//! let y_low = ys.iter().map(|&y| y - 0.025 - 0.075 * rng.gen::<f64>()).collect::<Vec<_>>();

src/benchmark_group.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ impl<'a, M: Measurement> BenchmarkGroup<'a, M> {
290290

291291
assert!(
292292
!self.all_ids.contains(&id),
293-
"Benchmark IDs must be unique within a group."
293+
"Benchmark IDs must be unique within a group. Encountered duplicated benchmark ID {}",
294+
&id
294295
);
295296

296297
id.ensure_directory_name_unique(&self.criterion.all_directories);

0 commit comments

Comments
 (0)