mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Add slightly more realistic tag distribution to benchmark
This commit is contained in:
@@ -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 := "[]"
|
||||
|
Reference in New Issue
Block a user