Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update criterion requirement from 0.2 to 0.3 #632

Merged
merged 1 commit into from
Aug 26, 2019

Conversation

dependabot-preview[bot]
Copy link
Contributor

Updates the requirements on criterion to permit the latest version.

Changelog

Sourced from criterion's changelog.

[0.3.0] - 2019-08-25

Added

  • Added support for plugging in custom measurements (eg. processor counters)
    into Criterion.rs' measurement and analysis.
  • Added support for plugging in instrumentation for internal profilers such as
    cpuprofiler which must be explicitly started and stopped within the profiled
    process.
  • Added the BenchmarkGroup type, which supersedes ParameterizedBenchmark, Benchmark,
    Criterion::bench_functions, Criterion::bench_function_over_inputs, and Criterion::bench.
    BenchmarkGroup performs the same function as all of the above, but is cleaner to use and more
    powerful and flexible. All of these types/functions are now soft-deprecated (meaning they're
    hidden from the documentation and should not be used in new code). They will be fully deprecated
    at some point in the 0.3.* series and removed in 0.4.0.
  • iter_custom - a "timing loop" that allows the caller to perform their own measurements. This is
    useful for complex measurements that don't fit into the usual mode of calling a lambda in a loop.
  • If the benchmark cannot be completed in approximately the requested measurement time,
    Criterion.rs will now print a suggested measurement time and sample size that would work.
  • Two new fields, throughput_num and throughput_type have been added to the raw.csv file.
  • Added command-line options to set the defaults for warm-up time, measurement-time, etc.

Changed

  • The raw.csv file format has been changed slightly. The sample_time_nanos field has been split
    into sample_measured_value and unit fields to accommodate custom measurements.
  • Throughput has been expanded from u32 to u64 to accommodate very large input sizes.

Fixed

  • Fixed possible invalid file name error on Windows
  • Fixed potential case where data for two different benchmarks would be stored in the same directory.

Removed

  • Removed the --measure-only command-line argument; it was deprecated in favor of --profile-time
    in 0.2.6.
  • External program benchmarks have been removed; they were deprecated in 0.2.6. The new
    iter_custom timing loop can be used as a substitute; see benches/external_process.rs for an
    example of this.

Deprecated

  • The --test argument is now deprecated. To test benchmarks, use cargo test --benches.

[0.2.11] - 2019-04-08

Added

  • Enabled automatic text-coloring on Windows.

Fixed

  • Fixed panic caused by outdated files after benchmark names or types were changed.
  • Reduced timing overhead of Criterion::iter_batched/iter_batched_ref.

[0.2.10] - 2019-02-09

Added

  • Added iter_batched/iter_batched_ref timing loops, which allow for setup (like
... (truncated)
Commits
  • b75386d Add license and readme to macro crate.
  • 41ac1c7 Pre-release prep work. Updating version numbers, changelog, etc.
  • 692e453 Merge branch 'v0.3.0-dev'
  • 1ad9a07 Fix tests
  • 4c35793 Update dependencies.
  • 15a5fd7 Merge branch 'YangKeao-add_more_arguments' into v0.3.0-dev
  • b95c2d6 Minor improvements to API docs.
  • 99643b2 Minor change to migration guide.
  • 168e175 Add scale_throughputs function.
  • 6d720ff Change the ValueFormatter trait.
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Aug 26, 2019
Copy link
Member

@torkleyy torkleyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

bors bot added a commit that referenced this pull request Aug 26, 2019
632: Update criterion requirement from 0.2 to 0.3 r=torkleyy a=dependabot-preview[bot]

Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
<details>
<summary>Changelog</summary>

*Sourced from [criterion's changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md).*

> ## [0.3.0] - 2019-08-25
> ### Added
> - Added support for plugging in custom measurements (eg. processor counters)
>   into Criterion.rs' measurement and analysis.
> - Added support for plugging in instrumentation for internal profilers such as
>   `cpuprofiler` which must be explicitly started and stopped within the profiled
>   process.
> - Added the `BenchmarkGroup` type, which supersedes `ParameterizedBenchmark`, `Benchmark`,
>   `Criterion::bench_functions`, `Criterion::bench_function_over_inputs`, and `Criterion::bench`.
>   `BenchmarkGroup` performs the same function as all of the above, but is cleaner to use and more
>   powerful and flexible. All of these types/functions are now soft-deprecated (meaning they're
>   hidden from the documentation and should not be used in new code). They will be fully deprecated
>   at some point in the 0.3.* series and removed in 0.4.0.
> - `iter_custom` - a "timing loop" that allows the caller to perform their own measurements. This is
>   useful for complex measurements that don't fit into the usual mode of calling a lambda in a loop.
> - If the benchmark cannot be completed in approximately the requested measurement time,
>   Criterion.rs will now print a suggested measurement time and sample size that would work.
> - Two new fields, `throughput_num` and `throughput_type` have been added to the `raw.csv` file.
> - Added command-line options to set the defaults for warm-up time, measurement-time, etc.
> 
> ### Changed
> - The `raw.csv` file format has been changed slightly. The `sample_time_nanos` field has been split
>   into `sample_measured_value` and `unit` fields to accommodate custom measurements.
> - Throughput has been expanded from u32 to u64 to accommodate very large input sizes.
> 
> ### Fixed
> - Fixed possible invalid file name error on Windows
> - Fixed potential case where data for two different benchmarks would be stored in the same directory.
> 
> ### Removed
> - Removed the `--measure-only` command-line argument; it was deprecated in favor of `--profile-time`
>   in 0.2.6.
> - External program benchmarks have been removed; they were deprecated in 0.2.6. The new 
>   `iter_custom` timing loop can be used as a substitute; see `benches/external_process.rs` for an
>   example of this.
> 
> ### Deprecated
> - The `--test` argument is now deprecated. To test benchmarks, use `cargo test --benches`.
> 
> ## [0.2.11] - 2019-04-08
> ### Added
> - Enabled automatic text-coloring on Windows.
> 
> ### Fixed
> - Fixed panic caused by outdated files after benchmark names or types were changed.
> - Reduced timing overhead of `Criterion::iter_batched/iter_batched_ref`.
> 
> ## [0.2.10] - 2019-02-09
> ### Added
> - Added `iter_batched/iter_batched_ref` timing loops, which allow for setup (like 
></tr></table> ... (truncated)
</details>
<details>
<summary>Commits</summary>

- [`b75386d`](bheisler/criterion.rs@b75386d) Add license and readme to macro crate.
- [`41ac1c7`](bheisler/criterion.rs@41ac1c7) Pre-release prep work. Updating version numbers, changelog, etc.
- [`692e453`](bheisler/criterion.rs@692e453) Merge branch 'v0.3.0-dev'
- [`1ad9a07`](bheisler/criterion.rs@1ad9a07) Fix tests
- [`4c35793`](bheisler/criterion.rs@4c35793) Update dependencies.
- [`15a5fd7`](bheisler/criterion.rs@15a5fd7) Merge branch 'YangKeao-add_more_arguments' into v0.3.0-dev
- [`b95c2d6`](bheisler/criterion.rs@b95c2d6) Minor improvements to API docs.
- [`99643b2`](bheisler/criterion.rs@99643b2) Minor change to migration guide.
- [`168e175`](bheisler/criterion.rs@168e175) Add scale_throughputs function.
- [`6d720ff`](bheisler/criterion.rs@6d720ff) Change the ValueFormatter trait.
- Additional commits viewable in [compare view](bheisler/criterion.rs@0.2.0...0.3.0)
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Aug 26, 2019

Build succeeded

@bors bors bot merged commit 67af49f into master Aug 26, 2019
@dependabot-preview dependabot-preview bot deleted the dependabot/cargo/criterion-0.3 branch August 26, 2019 13:59
azriel91 pushed a commit to azriel91/specs that referenced this pull request Sep 30, 2019
537: Update rand requirement from 0.5.5 to 0.6.1 r=torkleyy a=dependabot[bot]

Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version.
<details>
<summary>Changelog</summary>

*Sourced from [rand's changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md).*

> ## [0.6.1] - 2018-11-22
> - Support sampling `Duration` also for `no_std` (only since Rust 1.25) ([amethyst#649](https://github-redirect.dependabot.com/rust-random/rand/issues/649))
> - Disable default features of `libc` ([amethyst#647](https://github-redirect.dependabot.com/rust-random/rand/issues/647))
> 
> ## [0.6.0] - 2018-11-14
> 
> ### Project organisation
> - Rand has moved from [rust-lang-nursery](https://github.com/rust-lang-nursery/rand)
>   to [rust-random](https://github.com/rust-random/rand)! ([amethyst#578](https://github-redirect.dependabot.com/rust-random/rand/issues/578))
> - Created [The Rust Random Book](https://rust-random.github.io/book/)
>   ([source](https://github.com/rust-random/book))
> - Update copyright and licence notices ([amethyst#591](https://github-redirect.dependabot.com/rust-random/rand/issues/591), [amethyst#611](https://github-redirect.dependabot.com/rust-random/rand/issues/611))
> - Migrate policy documentation from the wiki ([amethyst#544](https://github-redirect.dependabot.com/rust-random/rand/issues/544))
> 
> ### Platforms
> - Add fork protection on Unix ([amethyst#466](https://github-redirect.dependabot.com/rust-random/rand/issues/466))
> - Added support for wasm-bindgen. ([amethyst#541](https://github-redirect.dependabot.com/rust-random/rand/issues/541), [amethyst#559](https://github-redirect.dependabot.com/rust-random/rand/issues/559), [amethyst#562](https://github-redirect.dependabot.com/rust-random/rand/issues/562), [amethyst#600](https://github-redirect.dependabot.com/rust-random/rand/issues/600))
> - Enable `OsRng` for powerpc64, sparc and sparc64 ([amethyst#609](https://github-redirect.dependabot.com/rust-random/rand/issues/609))
> - Use `syscall` from `libc` on Linux instead of redefining it ([amethyst#629](https://github-redirect.dependabot.com/rust-random/rand/issues/629))
> 
> ### RNGs
> - Switch `SmallRng` to use PCG ([amethyst#623](https://github-redirect.dependabot.com/rust-random/rand/issues/623))
> - Implement `Pcg32` and `Pcg64Mcg` generators ([amethyst#632](https://github-redirect.dependabot.com/rust-random/rand/issues/632))
> - Move ISAAC RNGs to a dedicated crate ([amethyst#551](https://github-redirect.dependabot.com/rust-random/rand/issues/551))
> - Move Xorshift RNG to its own crate ([amethyst#557](https://github-redirect.dependabot.com/rust-random/rand/issues/557))
> - Move ChaCha and HC128 RNGs to dedicated crates ([amethyst#607](https://github-redirect.dependabot.com/rust-random/rand/issues/607), [amethyst#636](https://github-redirect.dependabot.com/rust-random/rand/issues/636))
> - Remove usage of `Rc` from `ThreadRng` ([amethyst#615](https://github-redirect.dependabot.com/rust-random/rand/issues/615))
> 
> ### Sampling and distributions
> - Implement `Rng.gen_ratio()` and `Bernoulli::new_ratio()` ([amethyst#491](https://github-redirect.dependabot.com/rust-random/rand/issues/491))
> - Make `Uniform` strictly respect `f32` / `f64` high/low bounds ([amethyst#477](https://github-redirect.dependabot.com/rust-random/rand/issues/477))
> - Allow `gen_range` and `Uniform` to work on non-`Copy` types ([amethyst#506](https://github-redirect.dependabot.com/rust-random/rand/issues/506))
> - `Uniform` supports inclusive ranges: `Uniform::from(a..=b)`. This is
>   automatically enabled for Rust >= 1.27. ([amethyst#566](https://github-redirect.dependabot.com/rust-random/rand/issues/566))
> - Implement `TrustedLen` and `FusedIterator` for `DistIter` ([amethyst#620](https://github-redirect.dependabot.com/rust-random/rand/issues/620))
> 
> #### New distributions
> - Add the `Dirichlet` distribution ([amethyst#485](https://github-redirect.dependabot.com/rust-random/rand/issues/485))
> - Added sampling from the unit sphere and circle. ([amethyst#567](https://github-redirect.dependabot.com/rust-random/rand/issues/567))
> - Implement the triangular distribution ([amethyst#575](https://github-redirect.dependabot.com/rust-random/rand/issues/575))
> - Implement the Weibull distribution ([amethyst#576](https://github-redirect.dependabot.com/rust-random/rand/issues/576))
> - Implement the Beta distribution ([amethyst#574](https://github-redirect.dependabot.com/rust-random/rand/issues/574))
> 
> #### Optimisations
> 
> - Optimise `Bernoulli::new` ([amethyst#500](https://github-redirect.dependabot.com/rust-random/rand/issues/500))
> - Optimise `char` sampling ([amethyst#519](https://github-redirect.dependabot.com/rust-random/rand/issues/519))
> - Optimise sampling of `std::time::Duration` ([amethyst#583](https://github-redirect.dependabot.com/rust-random/rand/issues/583))
> 
> ### Sequences
></table> ... (truncated)
</details>
<details>
<summary>Commits</summary>

- See full diff in [compare view](https://github.com/rust-random/rand/commits/0.6.1)
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>



Co-authored-by: dependabot[bot] <[email protected]>
Co-authored-by: Thomas Schaller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant