aboutsummaryrefslogtreecommitdiff
path: root/benches/benchmarks/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benches/benchmarks/mod.rs')
-rwxr-xr-xbenches/benchmarks/mod.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/benches/benchmarks/mod.rs b/benches/benchmarks/mod.rs
index 5ff243f..ef85910 100755
--- a/benches/benchmarks/mod.rs
+++ b/benches/benchmarks/mod.rs
@@ -8,3 +8,14 @@ pub mod measurement_overhead;
pub mod sampling_mode;
pub mod special_characters;
pub mod with_inputs;
+
+#[cfg(feature = "async_futures")]
+pub mod async_measurement_overhead;
+
+#[cfg(not(feature = "async_futures"))]
+pub mod async_measurement_overhead {
+ use criterion::{criterion_group, Criterion};
+ fn some_benchmark(_c: &mut Criterion) {}
+
+ criterion_group!(benches, some_benchmark);
+}