#![feature(test)] extern crate editdistancewf as wf; extern crate test; #[cfg(test)] mod tests { use wf; use test::Bencher; #[bench] fn bench_distance(b: &mut Bencher) { b.iter(|| { wf::distance("bricklehampton".chars(), "brilekhcpamotn".chars()); }); } }