hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ce624cc7d34c8b78aa482ae92a46d2cadc145b73
parent 8930e259d78cba4041b550cc51a7f40bc91d7c20
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Tue, 30 May 2017 15:33:37 +0300

hugolib: Add slightly more realistic tag distribution to benchmark

Diffstat:
Mhugolib/site_benchmark_test.go | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hugolib/site_benchmark_test.go b/hugolib/site_benchmark_test.go
@@ -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 := "[]"