github.com/rabbouni145/gg@v0.47.1/docs/content/en/commands/hugo_benchmark.md (about) 1 --- 2 date: 2018-08-17 3 title: "hugo benchmark" 4 slug: hugo_benchmark 5 url: /commands/hugo_benchmark/ 6 --- 7 ## hugo benchmark 8 9 Benchmark Hugo by building a site a number of times. 10 11 ### Synopsis 12 13 Hugo can build a site many times over and analyze the running process 14 creating a benchmark. 15 16 ``` 17 hugo benchmark [flags] 18 ``` 19 20 ### Options 21 22 ``` 23 -b, --baseURL string hostname (and path) to the root, e.g. http://spf13.com/ 24 -D, --buildDrafts include content marked as draft 25 -E, --buildExpired include expired content 26 -F, --buildFuture include content with publishdate in the future 27 --cacheDir string filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/ 28 --canonifyURLs (deprecated) if true, all relative URLs will be canonicalized using baseURL 29 --cleanDestinationDir remove files from destination not found in static directories 30 -c, --contentDir string filesystem path to content directory 31 -n, --count int number of times to build the site (default 13) 32 --cpuprofile string path/filename for the CPU profile file 33 -d, --destination string filesystem path to write files to 34 --disableKinds strings disable different kind of pages (home, RSS etc.) 35 --enableGitInfo add Git revision, date and author info to the pages 36 --forceSyncStatic copy all files when static is changed. 37 --gc enable to run some cleanup tasks (remove unused cache files) after the build 38 -h, --help help for benchmark 39 --i18n-warnings print missing translations 40 --ignoreCache ignores the cache directory 41 -l, --layoutDir string filesystem path to layout directory 42 --memprofile string path/filename for the memory profile file 43 --noChmod don't sync permission mode of files 44 --noTimes don't sync modification time of files 45 --pluralizeListTitles (deprecated) pluralize titles in lists using inflect (default true) 46 --preserveTaxonomyNames (deprecated) preserve taxonomy names as written ("GĂ©rard Depardieu" vs "gerard-depardieu") 47 --renderToMemory render to memory (only useful for benchmark testing) 48 -s, --source string filesystem path to read files relative from 49 --stepAnalysis display memory and timing of different steps of the program 50 --templateMetrics display metrics about template executions 51 --templateMetricsHints calculate some improvement hints when combined with --templateMetrics 52 -t, --theme string theme to use (located in /themes/THEMENAME/) 53 --themesDir string filesystem path to themes directory 54 --uglyURLs (deprecated) if true, use /filename.html instead of /filename/ 55 ``` 56 57 ### Options inherited from parent commands 58 59 ``` 60 --config string config file (default is path/config.yaml|json|toml) 61 --debug debug output 62 --log enable Logging 63 --logFile string log File path (if set, logging enabled automatically) 64 --quiet build in quiet mode 65 -v, --verbose verbose output 66 --verboseLog verbose logging 67 ``` 68 69 ### SEE ALSO 70 71 * [hugo](/commands/hugo/) - hugo builds your site 72 73 ###### Auto generated by spf13/cobra on 17-Aug-2018