aboutsummaryrefslogtreecommitdiff
path: root/vendor/strsim/benches
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/strsim/benches
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/strsim/benches')
-rw-r--r--vendor/strsim/benches/benches.rs95
1 files changed, 0 insertions, 95 deletions
diff --git a/vendor/strsim/benches/benches.rs b/vendor/strsim/benches/benches.rs
deleted file mode 100644
index 15c7041..0000000
--- a/vendor/strsim/benches/benches.rs
+++ /dev/null
@@ -1,95 +0,0 @@
-//! Benchmarks for strsim.
-
-#![feature(test)]
-
-extern crate strsim;
-extern crate test;
-use self::test::Bencher;
-
-#[bench]
-fn bench_hamming(bencher: &mut Bencher) {
- let a = "ACAAGATGCCATTGTCCCCCGGCCTCCTGCTGCTGCTGCTCTCCGGGG";
- let b = "CCTGGAGGGTGGCCCCACCGGCCGAGACAGCGAGCATATGCAGGAAGC";
- bencher.iter(|| {
- strsim::hamming(a, b).unwrap();
- })
-}
-
-#[bench]
-fn bench_jaro(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::jaro(a, b);
- })
-}
-
-#[bench]
-fn bench_jaro_winkler(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::jaro_winkler(a, b);
- })
-}
-
-#[bench]
-fn bench_levenshtein(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::levenshtein(a, b);
- })
-}
-
-#[bench]
-fn bench_levenshtein_on_u8(bencher: &mut Bencher) {
- bencher.iter(|| {
- strsim::generic_levenshtein(&vec![0u8; 30], &vec![7u8; 31]);
- })
-}
-
-#[bench]
-fn bench_normalized_levenshtein(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::normalized_levenshtein(a, b);
- })
-}
-
-#[bench]
-fn bench_osa_distance(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::osa_distance(a, b);
- })
-}
-
-#[bench]
-fn bench_damerau_levenshtein(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::damerau_levenshtein(a, b);
- })
-}
-
-#[bench]
-fn bench_normalized_damerau_levenshtein(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::normalized_damerau_levenshtein(a, b);
- })
-}
-
-#[bench]
-fn bench_sorensen_dice(bencher: &mut Bencher) {
- let a = "Philosopher Friedrich Nietzsche";
- let b = "Philosopher Jean-Paul Sartre";
- bencher.iter(|| {
- strsim::sorensen_dice(a, b);
- })
-}