mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Adjust benchmarks
This commit is contained in:
parent
29e5cbb699
commit
6a09e7f28e
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue