Skip to content

Commit

Permalink
Adjust benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jun 12, 2023
1 parent 29e5cbb commit 6a09e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand All @@ -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) {
Expand Down

0 comments on commit 6a09e7f

Please sign in to comment.