mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
hugolib: Add slightly more realistic tag distribution to benchmark
This commit is contained in:
parent
8930e259d7
commit
ce624cc7d3
1 changed files with 3 additions and 1 deletions
|
@ -131,8 +131,10 @@ category = "categories"
|
|||
tags = make([]string, cfg.TagsPerPage)
|
||||
)
|
||||
|
||||
tagOffset := rand.Intn(10)
|
||||
|
||||
for i := 0; i < len(tags); i++ {
|
||||
tags[i] = fmt.Sprintf("Hugo %d", i)
|
||||
tags[i] = fmt.Sprintf("Hugo %d", i+tagOffset)
|
||||
}
|
||||
|
||||
tagsStr := "[]"
|
||||
|
|
Loading…
Reference in a new issue