Welcome to mirror list, hosted at ThFree Co, Russian Federation.

benchSite.sh - github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8130559f5d413fc925ef2e8099167bc7208ccf8c (plain)
1
2
3
4
5
6
7
8
9
#!/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