summaryrefslogtreecommitdiffstats
path: root/benches
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-04-02 19:07:40 +0200
committerCanop <cano.petrole@gmail.com>2021-04-02 19:07:40 +0200
commit5d505253bd8da88f0860ba23ac3e987c3e0af408 (patch)
treedd9ce9da7fdaa1455d82441df902c0e34f4c4bb6 /benches
parent0b1ef278ae8d0523d5eeaa583720e85b79bdad34 (diff)
use Glassbench v0.3
Diffstat (limited to 'benches')
-rw-r--r--benches/composite.rs2
-rw-r--r--benches/fuzzy.rs2
-rw-r--r--benches/path_normalization.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/benches/composite.rs b/benches/composite.rs
index 77efb5d..e676457 100644
--- a/benches/composite.rs
+++ b/benches/composite.rs
@@ -16,7 +16,7 @@ static PATTERNS: &[&str] = &[
"(!e&!b)|c",
];
-fn bench_score_of_composite(gb: &mut GlassBench) {
+fn bench_score_of_composite(gb: &mut Bench) {
let search_modes = SearchModeMap::default();
for pattern in PATTERNS {
let name = format!("Composite({:?})::score_of", &pattern);
diff --git a/benches/fuzzy.rs b/benches/fuzzy.rs
index d635f99..b4b0748 100644
--- a/benches/fuzzy.rs
+++ b/benches/fuzzy.rs
@@ -7,7 +7,7 @@ use {
static PATTERNS: &[&str] = &["réveil", "AB", "e", "brt", "brootz"];
-fn bench_score_of_fuzzy(gb: &mut GlassBench) {
+fn bench_score_of_fuzzy(gb: &mut Bench) {
for pattern in PATTERNS {
let task_name = format!("Fuzzy({:?})::score_of", pattern);
gb.task(task_name, |b| {
diff --git a/benches/path_normalization.rs b/benches/path_normalization.rs
index 8bdeb4c..4a3868e 100644
--- a/benches/path_normalization.rs
+++ b/benches/path_normalization.rs
@@ -20,7 +20,7 @@ static PATHS: &[&str] = &[
"π/2",
];
-fn bench_normalization(gb: &mut GlassBench) {
+fn bench_normalization(gb: &mut Bench) {
gb.task("normalize_path", |b| {
b.iter(|| {
for path in PATHS {