diff --git a/helpers/url_test.go b/helpers/url_test.go index 6d496ce8ef6..716719522d0 100644 --- a/helpers/url_test.go +++ b/helpers/url_test.go @@ -276,3 +276,13 @@ func BenchmarkRelURL(b *testing.B) { _ = p.RelURL("https://base/foo/bar", false) } } + +func BenchmarkAbsURL(b *testing.B) { + v := config.New() + v.Set("baseURL", "http://base/") + p := newTestPathSpecFromCfgAndLang(v, "") + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = p.AbsURL("foo/bar", false) + } +}