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