Scroll to navigation

HUGO-BENCHMARK(1) Hugo Manual HUGO-BENCHMARK(1)

NAME

hugo-benchmark - Benchmark Hugo by building a site a number of times.

SYNOPSIS

hugo benchmark [OPTIONS]

DESCRIPTION

Hugo can build a site many times over and analyze the running process creating a benchmark.

OPTIONS

-b, --baseURL="" hostname (and path) to the root, e.g. ⟨http://spf13.com/⟩

-D, --buildDrafts[=false] include content marked as draft

-E, --buildExpired[=false] include expired content

-F, --buildFuture[=false] include content with publishdate in the future

--cacheDir="" filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/

--canonifyURLs[=false] if true, all relative URLs will be canonicalized using baseURL

--cleanDestinationDir[=false] Remove files from destination not found in static directories

-c, --contentDir="" filesystem path to content directory

-n, --count=13 number of times to build the site

--cpuprofile="" path/filename for the CPU profile file

-d, --destination="" filesystem path to write files to

--disable404[=false] Do not render 404 page

--disableRSS[=false] Do not build RSS files

--disableSitemap[=false] Do not build Sitemap file

--enableGitInfo[=false] Add Git revision, date and author info to the pages

--forceSyncStatic[=false] Copy all files when static is changed.

--i18n-warnings[=false] Print missing translations

--ignoreCache[=false] Ignores the cache directory

-l, --layoutDir="" filesystem path to layout directory

--memprofile="" path/filename for the memory profile file

--noChmod[=false] Don't sync permission mode of files

--noTimes[=false] Don't sync modification time of files

--pluralizeListTitles[=true] Pluralize titles in lists using inflect

--preserveTaxonomyNames[=false] Preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu")

--renderToMemory[=false] render to memory (only useful for benchmark testing)

-s, --source="" filesystem path to read files relative from

--stepAnalysis[=false] display memory and timing of different steps of the program

-t, --theme="" theme to use (located in /themes/THEMENAME/)

--uglyURLs[=false] if true, use /filename.html instead of /filename/

OPTIONS INHERITED FROM PARENT COMMANDS

--config="" config file (default is path/config.yaml|json|toml)

--log[=false] Enable Logging

--logFile="" Log File path (if set, logging enabled automatically)

--quiet[=false] build in quiet mode

-v, --verbose[=false] verbose output

--verboseLog[=false] verbose logging

SEE ALSO

hugo(1)
Dec 2016 Hugo 0.18.1