aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchSite.sh
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-06-01 12:00:47 +0200
committerBjørn Erik Pedersen <[email protected]>2017-06-01 12:00:47 +0200
commit08a10e5d14669738392db1c41d8b3219c777b234 (patch)
tree352124e2088974aeecd6688b32272cb55d22f642 /benchSite.sh
parent9fa71c945e761c960c2181ed3ce88395a7c23cac (diff)
downloadhugo-08a10e5d14669738392db1c41d8b3219c777b234.tar.gz
hugo-08a10e5d14669738392db1c41d8b3219c777b234.zip
hubolib: Make the site benchmark output more compact
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 ```
Diffstat (limited to 'benchSite.sh')
-rwxr-xr-xbenchSite.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchSite.sh b/benchSite.sh
index c59453336..78a01c6ab 100755
--- a/benchSite.sh
+++ b/benchSite.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-# Send in a regexp mathing the benchmarks you want to run, i.e. './benchSite.sh "frontmatter=YAML"'.
+# 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 \ No newline at end of file
+go test -run="NONE" -bench="BenchmarkSiteBuilding/${1}$" -test.benchmem=true ./hugolib \ No newline at end of file