From 52e6683ed1396cce57595e81ecdc00e744352add Mon Sep 17 00:00:00 2001 From: Isaac Mills Date: Sun, 30 Jan 2022 12:40:35 -0500 Subject: [PATCH] Wemove benchmawks --- src/lib.rs | 22 ---------------------- src/test.txt | 14 -------------- 2 files changed, 36 deletions(-) delete mode 100644 src/test.txt diff --git a/src/lib.rs b/src/lib.rs index 2ef52b8..a277068 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,3 @@ -#![cfg_attr(test, feature(test))] - use indicatif::{ProgressBar, ProgressStyle}; use linkify::{LinkFinder, LinkKind}; use rand::{Rng, RngCore, SeedableRng}; @@ -212,23 +210,3 @@ impl<'a> UwUify<'a> { }) } } - -#[cfg(test)] -mod tests { - extern crate test; - use linkify::{LinkFinder, LinkKind}; - - #[bench] - fn uwu_bench(b: &mut test::Bencher) { - let mut linkify = LinkFinder::new(); - linkify.kinds(&[LinkKind::Email, LinkKind::Url]); - linkify.url_must_have_scheme(false); - let mut uwuify = super::UwUify { - text: include_str!("test.txt"), - linkify, - ..Default::default() - }; - - b.iter(|| uwuify.uwuify()); - } -} diff --git a/src/test.txt b/src/test.txt deleted file mode 100644 index d5cf3c3..0000000 --- a/src/test.txt +++ /dev/null @@ -1,14 +0,0 @@ -From fairest creatures we desire increase, -That thereby beauty's rose might never die, -But as the riper should by time decease, -His tender heir might bear his memory: -But thou contracted to thine own bright eyes, -Feed'st thy light's flame with self-substantial fuel, -Making a famine where abundance lies, -Thy self thy foe, to thy sweet self too cruel: -Thou that art now the world's fresh ornament, -And only herald to the gaudy spring, -Within thine own bud buriest thy content, -And tender churl mak'st waste in niggarding: -Pity the world, or else this glutton be, -To eat the world's due, by the grave and thee.