mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 15:01:27 +00:00
9 lines
No EOL
419 B
Bash
Executable file
9 lines
No EOL
419 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Send in a regexp mathing the benchmarks you want to run, i.e. './benchSite.sh "YAML"'.
|
|
# 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}"
|
|
|
|
go test -run="NONE" -bench="BenchmarkSiteBuilding/${1}$" -test.benchmem=true ./hugolib -memprofile mem.prof -cpuprofile cpu.prof |