So you can do and get:
```
▶ ./benchSite.sh "YAML,num_pages=10"
Running with BenchmarkSiteBuilding/YAML,num_pages=10
BenchmarkSiteBuilding/YAML,num_pages=10-4 1000 1611261 ns/op 730749 B/op 6458 allocs/op
PASS
ok github.com/spf13/hugo/hugolib 8.168s
```
And change site benchmark separator to comma to make it Bash and regexp friendly, example:
./benchSite.sh "frontmatter=YAML,num_root_sections=1,num_pages=.*,tags_per_page=20,shortcodes=false,render=false"
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
* Add news content
* Switch to new home page
* Move docs home page to a new page
* Switch to home page content
* Adjust global menu: remove showcase
* Remove unneeded portion of the front matter
* Remove old theme
* Update content for new theme
* Fix content to new theme
* Move layouts into theme
* Move classes to config
* [WIP] theme
* [WIP] inline critical CSS
* Add some notes on the [WIP] critical CSS feature
* Make theme changes for themes site
* Import theme updates from themes site
* [WIP] theme prev/next links
* Revert critical CSS tests
Didn't move the needle on a 20kb (gzipped) stylesheet.
First view speed index is 1008 without CSS.
* Not using docsnav data file
* Backdate these articles so we keep them but they don't show up on top
* Change Twitter handle to work with Hugo's internal templates
plus a few minor clean-ups
* Update theme (change Twitter handle in Follow link)
See PR rdwatters/hugo-docs-concept#120
Assets like screenshots are used in content files such as
tutorials. This commit moves these assets out of the theme
into the static folder in the root directory.
This way the theme and content files become independent from
each other.
See PR rdwatters/hugo-docs-concept#123
Looks to be slightly slower with the low number of section pages, but the 1000 regular pages seem to add value.
```
benchmark old ns/op new ns/op delta
BenchmarkGetPage-4 97.7 145 +48.41%
BenchmarkGetPageRegular-4 7933 161 -97.97%
benchmark old allocs new allocs delta
BenchmarkGetPage-4 0 0 +0.00%
BenchmarkGetPageRegular-4 0 0 +0.00%
benchmark old bytes new bytes delta
BenchmarkGetPage-4 0 0 +0.00%
BenchmarkGetPageRegular-4 0 0 +0.00%
```