Adjust benchmarks

This commit is contained in:
Bjørn Erik Pedersen 2023-06-12 16:06:11 +02:00
parent 29e5cbb699
commit 6a09e7f28e
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -269,7 +269,7 @@ func TestSanitizeURL(t *testing.T) {
func BenchmarkRelURL(b *testing.B) {
v := config.New()
v.Set("baseURL", "http://base/")
v.Set("baseURL", "https://base/")
p := newTestPathSpecFromCfgAndLang(v, "")
b.ResetTimer()
for i := 0; i < b.N; i++ {
@ -279,7 +279,7 @@ func BenchmarkRelURL(b *testing.B) {
func BenchmarkAbsURL(b *testing.B) {
v := config.New()
v.Set("baseURL", "http://base/")
v.Set("baseURL", "https://base/")
p := newTestPathSpecFromCfgAndLang(v, "")
b.ResetTimer()
b.Run("relurl", func(b *testing.B) {