diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-01-28 00:28:05 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-01-28 00:28:05 +0300 |
commit | 12876ec991982de27773d127e2030b1eeb2826b2 (patch) | |
tree | 290fc7596add90acf7dab974ef5bcb074e9171a8 | |
parent | d08e4c87a72f57a836722700900690857a4225cb (diff) |
Fix hugo benchmark
Appending to the site 13 times doesn't sound realistic.
-rw-r--r-- | commands/benchmark.go | 2 |
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() } } |