hugolib: Add site building benchmarks
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 30 May 2017 07:01:54 +0000 (10:01 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 30 May 2017 11:30:30 +0000 (14:30 +0300)
commit8930e259d78cba4041b550cc51a7f40bc91d7c20
tree36f47052ce3cad72704d19dcda013a15b75a4200
parent710300cb768f43db397a0ea91b79f3b916fceac4
hugolib: Add site building benchmarks

To run a subset of these benchmark, one can do something like this:

```
go test -run="NONE" -bench="BenchmarkSiteBuilding/tags_per_page=0.*shortcodes=true.*render=false"  -test.benchmem=true ./hugolib
```

Which will run without any tags, with shortcodes, but will skip rendering.

Fixes #3535
hugolib/site_benchmark_test.go [new file with mode: 0644]