mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
Adjust benchmarks
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user