.TH "HUGO\-BENCHMARK" "1" "Dec 2018" "Hugo 0.52" "Hugo Manual" .nh .ad l .SH NAME .PP hugo\-benchmark \- Benchmark Hugo by building a site a number of times. .SH SYNOPSIS .PP \fBhugo benchmark [flags]\fP .SH DESCRIPTION .PP Hugo can build a site many times over and analyze the running process creating a benchmark. .SH OPTIONS .PP \fB\-b\fP, \fB\-\-baseURL\fP="" hostname (and path) to the root, e.g. \[la]http://spf13.com/\[ra] .PP \fB\-D\fP, \fB\-\-buildDrafts\fP[=false] include content marked as draft .PP \fB\-E\fP, \fB\-\-buildExpired\fP[=false] include expired content .PP \fB\-F\fP, \fB\-\-buildFuture\fP[=false] include content with publishdate in the future .PP \fB\-\-cacheDir\fP="" filesystem path to cache directory. Defaults: $TMPDIR/hugo\_cache/ .PP \fB\-\-cleanDestinationDir\fP[=false] remove files from destination not found in static directories .PP \fB\-c\fP, \fB\-\-contentDir\fP="" filesystem path to content directory .PP \fB\-n\fP, \fB\-\-count\fP=13 number of times to build the site .PP \fB\-\-cpuprofile\fP="" path/filename for the CPU profile file .PP \fB\-d\fP, \fB\-\-destination\fP="" filesystem path to write files to .PP \fB\-\-disableKinds\fP=[] disable different kind of pages (home, RSS etc.) .PP \fB\-\-enableGitInfo\fP[=false] add Git revision, date and author info to the pages .PP \fB\-\-forceSyncStatic\fP[=false] copy all files when static is changed. .PP \fB\-\-gc\fP[=false] enable to run some cleanup tasks (remove unused cache files) after the build .PP \fB\-h\fP, \fB\-\-help\fP[=false] help for benchmark .PP \fB\-\-i18n\-warnings\fP[=false] print missing translations .PP \fB\-\-ignoreCache\fP[=false] ignores the cache directory .PP \fB\-l\fP, \fB\-\-layoutDir\fP="" filesystem path to layout directory .PP \fB\-\-memprofile\fP="" path/filename for the memory profile file .PP \fB\-\-minify\fP[=false] minify any supported output format (HTML, XML etc.) .PP \fB\-\-noChmod\fP[=false] don't sync permission mode of files .PP \fB\-\-noTimes\fP[=false] don't sync modification time of files .PP \fB\-\-renderToMemory\fP[=false] render to memory (only useful for benchmark testing) .PP \fB\-s\fP, \fB\-\-source\fP="" filesystem path to read files relative from .PP \fB\-\-stepAnalysis\fP[=false] display memory and timing of different steps of the program .PP \fB\-\-templateMetrics\fP[=false] display metrics about template executions .PP \fB\-\-templateMetricsHints\fP[=false] calculate some improvement hints when combined with \-\-templateMetrics .PP \fB\-t\fP, \fB\-\-theme\fP="" theme to use (located in /themes/THEMENAME/) .PP \fB\-\-themesDir\fP="" filesystem path to themes directory .SH OPTIONS INHERITED FROM PARENT COMMANDS .PP \fB\-\-config\fP="" config file (default is path/config.yaml|json|toml) .PP \fB\-\-debug\fP[=false] debug output .PP \fB\-\-log\fP[=false] enable Logging .PP \fB\-\-logFile\fP="" log File path (if set, logging enabled automatically) .PP \fB\-\-quiet\fP[=false] build in quiet mode .PP \fB\-v\fP, \fB\-\-verbose\fP[=false] verbose output .PP \fB\-\-verboseLog\fP[=false] verbose logging .SH SEE ALSO .PP \fBhugo(1)\fP