mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
hugolib: Add slightly more realistic tag distribution to benchmark
This commit is contained in:
1 parent
8930e259d7
commit
ce624cc7d3
1 file changed
+3
-1
@@ -131,8 +131,10 @@ category = "categories"
|
|||||||
tags = make([]string, cfg.TagsPerPage)
|
tags = make([]string, cfg.TagsPerPage)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
tagOffset := rand.Intn(10)
|
||||||
|
|
||||||
for i := 0; i < len(tags); i++ {
|
for i := 0; i < len(tags); i++ {
|
||||||
tags[i] = fmt.Sprintf("Hugo %d", i)
|
tags[i] = fmt.Sprintf("Hugo %d", i+tagOffset)
|
||||||
}
|
}
|
||||||
|
|
||||||
tagsStr := "[]"
|
tagsStr := "[]"
|
||||||
|
|||||||
Reference in new issue
Block a user