diff --git a/labels_test.go b/labels_test.go index fc77f685..27aab751 100644 --- a/labels_test.go +++ b/labels_test.go @@ -98,3 +98,11 @@ func BenchmarkCompareLabels(b *testing.B) { CompareDomainName("www.example.com", "aa.example.com") } } + +func BenchmarkIsSubDomain(b *testing.B) { + for i := 0; i < b.N; i++ { + IsSubDomain("www.example.com", "aa.example.com") + IsSubDomain("example.com", "aa.example.com") + IsSubDomain("miek.nl", "aa.example.com") + } +}