summaryrefslogtreecommitdiffstats
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
parent0b1ef278ae8d0523d5eeaa583720e85b79bdad34 (diff)
use Glassbench v0.3
-rw-r--r--.gitignore2
-rw-r--r--Cargo.lock65
-rw-r--r--Cargo.toml2
-rw-r--r--benches/composite.rs2
-rw-r--r--benches/fuzzy.rs2
-rw-r--r--benches/path_normalization.rs2
6 files changed, 67 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 1ed9a1b..ec5d301 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,4 +13,4 @@ screens
build
trav
press
-/.glassbench
+/glassbench_*.db
diff --git a/Cargo.lock b/Cargo.lock
index ed7ea45..b9af4da 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14,6 +14,12 @@ checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
[[package]]
name = "ahash"
+version = "0.4.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e"
+
+[[package]]
+name = "ahash"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f200cbb1e856866d9eade941cf3aa0c5d7dd36f74311c4273b494f4ef036957"
@@ -158,7 +164,7 @@ dependencies = [
name = "broot"
version = "1.2.10-dev"
dependencies = [
- "ahash",
+ "ahash 0.7.2",
"ansi_colours",
"base64",
"bet",
@@ -560,6 +566,18 @@ dependencies = [
]
[[package]]
+name = "fallible-iterator"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7"
+
+[[package]]
+name = "fallible-streaming-iterator"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a"
+
+[[package]]
name = "file-size"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -640,16 +658,19 @@ dependencies = [
[[package]]
name = "glassbench"
-version = "0.1.0"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "782363e9a7f23b1a3c31583666a0f63f3692e2d751e954e158247491f8b8f495"
+checksum = "03f4871371c7f0624fc191afef849664776c4906614eee6a435a9abd89bd871f"
dependencies = [
+ "base64",
"chrono",
"crossterm",
"csv2svg",
+ "git2",
"lazy_static",
"minimad",
"open",
+ "rusqlite",
"serde",
"serde_json",
"svg",
@@ -669,6 +690,18 @@ name = "hashbrown"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04"
+dependencies = [
+ "ahash 0.4.7",
+]
+
+[[package]]
+name = "hashlink"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d99cf782f0dc4372d26846bec3de7804ceb5df083c2d4462c0b8d2330e894fa8"
+dependencies = [
+ "hashbrown",
+]
[[package]]
name = "heck"
@@ -826,6 +859,17 @@ dependencies = [
]
[[package]]
+name = "libsqlite3-sys"
+version = "0.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "64d31059f22935e6c31830db5249ba2b7ecd54fd73a9909286f0a67aa55c2fbd"
+dependencies = [
+ "cc",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
name = "libz-sys"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1390,6 +1434,21 @@ dependencies = [
]
[[package]]
+name = "rusqlite"
+version = "0.24.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5f38ee71cbab2c827ec0ac24e76f82eca723cee92c509a65f67dee393c25112"
+dependencies = [
+ "bitflags",
+ "fallible-iterator",
+ "fallible-streaming-iterator",
+ "hashlink",
+ "libsqlite3-sys",
+ "memchr",
+ "smallvec",
+]
+
+[[package]]
name = "rust-argon2"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 8289cc6..503cb80 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -63,7 +63,7 @@ umask = "1.0"
unicode-width = "0.1.8"
[dev-dependencies]
-glassbench = "0.1.0"
+glassbench = "0.3.0"
[target.'cfg(unix)'.dependencies]
lfs-core = "0.3.1"
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 {