mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Use StopTimer in site benchmarks
This commit is contained in:
parent
a2d81ce983
commit
84805a68ca
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue