Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ fn star() {
assert_eq!(m.params, params("foo", "bar/foo"));
}

#[cfg(test)]
#[bench]
fn benchmark(b: &mut test::Bencher) {
let mut router = Router::new();
Expand Down
3 changes: 3 additions & 0 deletions src/nfa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ fn test_ascii_set() {
assert!(!set.contains('ü'), "The set does not contain ü");
}

#[cfg(test)]
#[bench]
fn bench_char_set(b: &mut test::Bencher) {
let mut set = CharSet::new();
Expand All @@ -579,6 +580,7 @@ fn bench_char_set(b: &mut test::Bencher) {
});
}

#[cfg(test)]
#[bench]
fn bench_hash_set(b: &mut test::Bencher) {
let mut set = HashSet::new();
Expand All @@ -593,6 +595,7 @@ fn bench_hash_set(b: &mut test::Bencher) {
});
}

#[cfg(test)]
#[bench]
fn bench_btree_set(b: &mut test::Bencher) {
let mut set = BTreeSet::new();
Expand Down