mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Use StopTimer in site benchmarks
This commit is contained in:
1 file changed
+2
-1
@@ -133,8 +133,9 @@ func BenchmarkSiteBuilding(b *testing.B) {
|
||||
|
||||
func doBenchMarkSiteBuilding(conf siteBuildingBenchmarkConfig, b *testing.B) {
|
||||
b.Run(conf.String(), func(b *testing.B) {
|
||||
b.StopTimer()
|
||||
sites := createHugoBenchmarkSites(b, b.N, conf)
|
||||
b.ResetTimer()
|
||||
b.StartTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
h := sites[0]
|
||||
|
||||
|
||||
Reference in new issue
Block a user