summaryrefslogtreecommitdiffstats
path: root/benches
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-03-22 15:41:58 +0100
committerCanop <cano.petrole@gmail.com>2021-03-22 15:41:58 +0100
commit75ee6c28b082dd3e5ff095f1dcd053dbdc0fa972 (patch)
treebbf012286e118b785cfda9122d530fbace03f2d5 /benches
parentb95dc507280795e095626d401f1cc347e8e2a0c6 (diff)
vain attempt at making criterion not write silly warnings
Diffstat (limited to 'benches')
-rw-r--r--benches/composite.rs8
-rw-r--r--benches/fuzzy.rs9
-rw-r--r--benches/path_normalization.rs8
3 files changed, 18 insertions, 7 deletions
diff --git a/benches/composite.rs b/benches/composite.rs
index 5ae8f9f..bde4505 100644
--- a/benches/composite.rs
+++ b/benches/composite.rs
@@ -30,5 +30,9 @@ fn score_of_composite_benchmark(c: &mut Criterion) {
}
}
-criterion_group!(benches, score_of_composite_benchmark);
-criterion_main!(benches);
+criterion_group!(
+ name = composite;
+ config = Criterion::default().without_plots();
+ targets = score_of_composite_benchmark,
+);
+criterion_main!(composite);
diff --git a/benches/fuzzy.rs b/benches/fuzzy.rs
index bfbd79d..6f4ebcc 100644
--- a/benches/fuzzy.rs
+++ b/benches/fuzzy.rs
@@ -3,7 +3,6 @@ mod shared;
use {
broot::pattern::FuzzyPattern,
criterion::{black_box, criterion_group, criterion_main, Criterion},
- shared::*,
};
static PATTERNS: &[&str] = &["réveil", "AB", "e", "brt", "brootz"];
@@ -22,5 +21,9 @@ fn score_of_benchmark(c: &mut Criterion) {
}
}
-criterion_group!(benches, score_of_benchmark);
-criterion_main!(benches);
+criterion_group!(
+ name = fuzzy;
+ config = Criterion::default().without_plots();
+ targets = score_of_benchmark,
+);
+criterion_main!(fuzzy);
diff --git a/benches/path_normalization.rs b/benches/path_normalization.rs
index db42e36..a481684 100644
--- a/benches/path_normalization.rs
+++ b/benches/path_normalization.rs
@@ -30,5 +30,9 @@ fn normalization_benchmark(c: &mut Criterion) {
});
}
-criterion_group!(benches, normalization_benchmark);
-criterion_main!(benches);
+criterion_group!(
+ name = path_normalization;
+ config = Criterion::default().without_plots();
+ targets = normalization_benchmark,
+);
+criterion_main!(path_normalization);