aboutsummaryrefslogtreecommitdiffstats
path: root/skate/url_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/url_test.go')
-rw-r--r--skate/url_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/skate/url_test.go b/skate/url_test.go
index 8dddb09..c138a0e 100644
--- a/skate/url_test.go
+++ b/skate/url_test.go
@@ -106,3 +106,9 @@ func TestSanitizeURL(t *testing.T) {
}
}
}
+
+func BenchmarkSanitizeURL(b *testing.B) {
+ for n := 0; n < b.N; n++ {
+ SanitizeURL(`http://acrf.com.au/2012/world-firsthpv-vaccina-tion-plan-will-protect-young-australian-men-from-cancer/`)
+ }
+}