//! Benchmarking module.
-pub use std::hint::black_box;
-
use super::{
event::CompletedTest,
options::BenchMode,
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant};
+/// An identity function that *__hints__* to the compiler to be maximally pessimistic about what
+/// `black_box` could do.
+///
+/// See [`std::hint::black_box`] for details.
+#[inline(always)]
+pub fn black_box<T>(dummy: T) -> T {
+ std::hint::black_box(dummy)
+}
+
/// Manager of the benchmarking runs.
///
/// This is fed into functions marked with `#[bench]` to allow for