chore(deps): update rust crate criterion to 0.5 #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.3
->0.5
Release Notes
bheisler/criterion.rs (criterion)
v0.5.1
Compare Source
Fixed
v0.5.0
Compare Source
Changed
html_reports
featureFixed
--quick
) no longer outputs 1ms for measured times over 5 secondsv0.4.0
Compare Source
Removed
Criterion::can_plot
function has been removed.Criterion::bench_function_over_inputs
function has been removed.Criterion::bench_functions
function has been removed.Criterion::bench
function has been removed.Changed
rayon
andplotters
are optional (and default) dependencies.--warm-up-time
,--measurement-time
and--profile-time
.Added
--discard-baseline
flag for discarding rather than saving benchmark results.--quiet
flag for printing just a single line per benchmark.Throughput::BytesDecimal
option for measuring throughput in bytes but printing them usingdecimal units like kilobytes instead of binary units like kibibytes.
Fixed
bench_with_input
, the input parameter will now be passed throughblack_box
beforepassing it to the benchmark.
v0.3.6
Compare Source
Changed
v0.3.5
Compare Source
Fixed
Criterion.toml
in the book.Changed
v0.3.4
Compare Source
Added
with_output_color
for enabling or disabling CLI output coloring programmatically.Fixed
--help
output regarding "unrecognized option" errors.Deprecated
Criterion::can_plot
is no longer useful and is deprecated pending deletion in 0.4.0.Benchmark
andParameterizedBenchmark
were already hidden from documentation, but are nowformally deprecated pending deletion in 0.4.0. Callers should use
BenchmarkGroup
instead.Criterion::bench_function_over_inputs
,Criterion::bench_functions
, andCriterion::bench
werealready hidden from documentation, but are now formally deprecated pending deletion in 0.4.0.
Callers should use
BenchmarkGroup
instead."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 beprinted 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.
v0.3.3
Compare Source
Added
CRITERION_HOME
environment variable to set the directory for Criterion to storeits results and charts in.
itself to improve compile times, as well as to add features to
cargo-criterion
that aredifficult to implement in Criterion-rs.
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.
This affects the statistics and plots generated.
Changed
run after updating to produce errors, but they're harmless and will go away after running the
benchmarks once.
Fixed
group or function name to the empty string.
v0.3.2
Compare Source
Added
?Sized
bound to benchmark parameter types, which allows dynamically sized types like&str
and&[T]
to be used as benchmark parameters.--output-format <format>
command-line option. If--output-format bencher
is passed,Criterion.rs will print its measurements in a format similar to that used by the
bencher
crateor unstable
libtest
benchmarks, and using similar statistical measurements as well. Though thisprovides less information than the default format, it may be useful for supporting tools which
parse this output format.
--nocapture
argument. This argument does nothing, but prevents Criterion.rs from exitingwhen running tests or benchmarks and allowing stdout output from other tests.
Fixed
CRITERION_DEBUG
orCRITERION_TARGET_DIR
environment variables containnon-UTF8 characters.
v0.3.1
Compare Source
Added
plotters
crate. Implementation generously provided by HaoHou, author of the
plotters
crate.--plotting-backend
command-line option to select the plotting backend. The existinggnuplot backend will be used by default when available, and the plotters backend will be used when
gnuplot is not available or when requested.
Criterion::plotting_backend()
function to configure the plotting backend in code.--load-baseline
command-line option to load a baseline for comparisonrather than measuring the current code
Fixed
fibonacci
functions.#[criterion]
benchmarks ignoring the command-line options.sample count.
nresamples
is set too low. Also added a warningagainst setting
nresamples
too low.the wrong estimated time and number of iterations in the warm-up phase.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.