2017-05-31 07:35:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-07-15 21:18:38 +00:00
|
|
|
# allow user to override go executable by running as GOEXE=xxx make ...
|
|
|
|
GOEXE="${GOEXE-go}"
|
|
|
|
|
2017-06-01 10:00:47 +00:00
|
|
|
# Send in a regexp mathing the benchmarks you want to run, i.e. './benchSite.sh "YAML"'.
|
2017-05-31 07:35:02 +00:00
|
|
|
# Note the quotes, which will be needed for more complex expressions.
|
|
|
|
# The above will run all variations, but only for front matter YAML.
|
|
|
|
|
|
|
|
echo "Running with BenchmarkSiteBuilding/${1}"
|
|
|
|
|
2018-01-13 23:49:01 +00:00
|
|
|
"${GOEXE}" test -run="NONE" -bench="BenchmarkSiteBuilding/${1}" -test.benchmem=true ./hugolib -memprofile mem.prof -count 3 -cpuprofile cpu.prof
|