Builds a set of random, but real Hugo sites and prints some stats.
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sites
.gitignore
.gitmodules
LICENSE
README.md
main.go
main_test.go

README.md

hugo-benchmark

Benchmark for building a set of random, but real Hugo sites.

Install and run

Clone an run the main:

git clone --recursive https://github.com/bep/hugo-benchmark.git
cd hugo-benchmark
go get -u -v
go test -bench=".*" -test.benchmem=true -count 3 > 1.bench
// checkout another Hugo branch
go test -bench=".*" -test.benchmem=true -count 3 > 2.bench
benchcmp -best 1.bench 2.bench