aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmark.rs')
-rwxr-xr-xsrc/benchmark.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/benchmark.rs b/src/benchmark.rs
index a99750d..bc7f610 100755
--- a/src/benchmark.rs
+++ b/src/benchmark.rs
@@ -1,7 +1,9 @@
+#![allow(deprecated)]
+
use crate::analysis;
use crate::connection::OutgoingMessage;
use crate::measurement::{Measurement, WallTime};
-use crate::report::{BenchmarkId, ReportContext};
+use crate::report::{BenchmarkId, Report, ReportContext};
use crate::routine::{Function, Routine};
use crate::{Bencher, Criterion, DurationExt, Mode, PlotConfiguration, SamplingMode, Throughput};
use std::cell::RefCell;
@@ -78,6 +80,7 @@ pub(crate) struct NamedRoutine<T, M: Measurement = WallTime> {
/// Structure representing a benchmark (or group of benchmarks)
/// which take one parameter.
#[doc(hidden)]
+#[deprecated(since = "0.3.4", note = "Please use BenchmarkGroups instead.")]
pub struct ParameterizedBenchmark<T: Debug, M: Measurement = WallTime> {
config: PartialBenchmarkConfig,
values: Vec<T>,
@@ -88,6 +91,7 @@ pub struct ParameterizedBenchmark<T: Debug, M: Measurement = WallTime> {
/// Structure representing a benchmark (or group of benchmarks)
/// which takes no parameters.
#[doc(hidden)]
+#[deprecated(since = "0.3.4", note = "Please use BenchmarkGroups instead.")]
pub struct Benchmark<M: Measurement = WallTime> {
config: PartialBenchmarkConfig,
routines: Vec<NamedRoutine<(), M>>,
@@ -134,7 +138,7 @@ macro_rules! benchmark_config {
}
/// Changes the target measurement time for this benchmark. Criterion will attempt
- /// to spent approximately this amount of time measuring the benchmark.
+ /// to spend approximately this amount of time measuring the benchmark.
/// With a longer time, the measurement will become more resilient to transitory peak loads
/// caused by external programs.
///
@@ -216,7 +220,7 @@ macro_rules! benchmark_config {
/// noise.
///
/// This presents a trade-off. By setting the significance level closer to 0.0, you can increase
- /// the statistical robustness against noise, but it also weaken's Criterion.rs' ability to
+ /// the statistical robustness against noise, but it also weakens Criterion.rs' ability to
/// detect small but real changes in the performance. By setting the significance level
/// closer to 1.0, Criterion.rs will be more able to detect small true changes, but will also
/// report more spurious differences.