diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-08-06 14:51:50 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-06 18:32:17 +0300 |
commit | 596e0e98e4483d2a0a709412a338ceddb6538757 (patch) | |
tree | 0f8b33f98aa67dcb6fed48095b47ddd565575960 /commands/benchmark.go | |
parent | 7cac19b1e3d2631395b88998b523a5a6d84b9e29 (diff) |
Make it possible to add a language in server mode
See #2309
Diffstat (limited to 'commands/benchmark.go')
-rw-r--r-- | commands/benchmark.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go index 56a50578b..b24d06ff4 100644 --- a/commands/benchmark.go +++ b/commands/benchmark.go @@ -57,8 +57,7 @@ func benchmark(cmd *cobra.Command, args []string) error { return err } for i := 0; i < benchmarkTimes; i++ { - _ = buildSites() - Hugo.Reset() + _ = resetAndbuildSites(false) } pprof.WriteHeapProfile(f) f.Close() @@ -76,8 +75,7 @@ func benchmark(cmd *cobra.Command, args []string) error { pprof.StartCPUProfile(f) defer pprof.StopCPUProfile() for i := 0; i < benchmarkTimes; i++ { - _ = buildSites() - Hugo.Reset() + _ = resetAndbuildSites(false) } } |