summaryrefslogtreecommitdiffstats
path: root/commands/benchmark.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/benchmark.go')
-rw-r--r--commands/benchmark.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go
index 53e11c3f6..56a50578b 100644
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -57,8 +57,8 @@ func benchmark(cmd *cobra.Command, args []string) error {
return err
}
for i := 0; i < benchmarkTimes; i++ {
- Sites = nil
- _ = buildSite()
+ _ = buildSites()
+ Hugo.Reset()
}
pprof.WriteHeapProfile(f)
f.Close()
@@ -76,8 +76,8 @@ func benchmark(cmd *cobra.Command, args []string) error {
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
for i := 0; i < benchmarkTimes; i++ {
- Sites = nil
- _ = buildSite()
+ _ = buildSites()
+ Hugo.Reset()
}
}