summaryrefslogtreecommitdiffstats
path: root/commands/benchmark.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/benchmark.go')
-rw-r--r--commands/benchmark.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go
index 4803bdc04..7e746535f 100644
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -53,6 +53,7 @@ func benchmark(cmd *cobra.Command, args []string) error {
return err
}
for i := 0; i < benchmarkTimes; i++ {
+ mainSite = nil
_ = buildSite()
}
pprof.WriteHeapProfile(f)
@@ -71,6 +72,7 @@ func benchmark(cmd *cobra.Command, args []string) error {
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
for i := 0; i < benchmarkTimes; i++ {
+ mainSite = nil
_ = buildSite()
}
}