We have a very large site and have recently gone through the process of upgrading the Hugo version we are using from 0.126.1 to 0.156.0.
We found that our build jobs went from taking around 10 minutes to over 16 minutes. This extra time came mainly from the Hugo build step which went from 240077ms to 601931ms, 361854ms longer (6’02" matching the extended time). We see the same duration in 0.163.3
Research into different versions of Hugo showed that this difference in time was introduced in 0.128.0 - see information below. Although the debug output from the build does not show this precisely, the main change in this version was to Implement defer · gohugoio/hugo@6cd0784 · GitHub . However, we do not use anything that uses defer (“INFO build: step render deferred count 0 duration 3.638µs”) so perhaps it is something else? I notice that the documentation specifically says that defer is a rare requirement (“In some rare use cases, you may need to defer the execution of a template until after all sites and output formats have been rendered.” ( templates.Defer )).
Is there anything we can change in our site to go back to our original build times?
If this is a known issue, is there a workaround, or a plan to speed up the builds to their original speed?
This speed change is so big I have looked through the issues in GitHub and on this site, but can’t find anyone else who is getting it. We are probably getting this because of the number and size of our pages pages, including the size of the navigation that Docsy is creating for us, but we do not want to lose the flexibility that our implementation is giving us.
Debug Reports from various versions
Hugo 0.126.1
Wed Jul 1 01:43:35 PM UTC 2026
Start building sites …
hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended linux/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=gohugoio
INFO static: syncing static files to / duration 4.755879118s
INFO build: step process substep collect files 1000 files_total 1000 pages_total 975 resources_total 25 duration 6.098291133s
INFO build: step process substep collect files 3331 files_total 4331 pages_total 4281 resources_total 50 duration 347.983344ms
INFO build: step process duration 6.446386864s
INFO build: step assemble duration 202.454003ms
INFO build: step render substep pages site en outputFormat html duration 3m51.199674823s
INFO build: step render substep pages site en outputFormat print duration 5.664918331s
INFO build: step render substep pages site en outputFormat rss duration 262.442949ms
INFO build: step render pages 8567 content 4282 duration 3m57.140850325s
INFO build: step postProcess duration 27.785µs
INFO build: duration 4m3.789917846s
| EN
-------------------±-------
Pages | 8567
Paginator pages | 0
Non-page files | 50
Static files | 14326
Processed images | 0
Aliases | 2934
Cleaned | 0
Total in 243822 ms
Wed Jul 1 01:47:39 PM UTC 2026
Hugo 0.127.0
Wed Jul 1 01:58:55 PM UTC 2026
Start building sites …
hugo v0.127.0-74e0f3bd63c51f3c7a0f07a7c779eec9e922957e+extended linux/amd64 BuildDate=2024-06-05T10:27:59Z VendorInfo=gohugoio
INFO static: syncing static files to / duration 4.927688375s
INFO build: step process substep collect files 1000 files_total 1000 pages_total 975 resources_total 25 duration 5.912736661s
INFO build: step process substep collect files 3331 files_total 4331 pages_total 4281 resources_total 50 duration 340.666742ms
INFO build: step process duration 6.258541873s
INFO build: step assemble duration 199.482989ms
INFO build: step render substep pages site en outputFormat html duration 3m48.065088826s
INFO build: step render substep pages site en outputFormat print duration 5.138489695s
INFO build: step render substep pages site en outputFormat rss duration 368.986436ms
INFO build: step render pages 8567 content 4282 duration 3m53.585819071s
INFO build: step postProcess duration 25.256µs
INFO build: duration 4m0.045148895s
| EN
-------------------±-------
Pages | 8567
Paginator pages | 0
Non-page files | 50
Static files | 14326
Processed images | 0
Aliases | 2934
Cleaned | 0
Total in 240077 ms
Wed Jul 1 02:02:56 PM UTC 2026
Hugo 0.128.2
Wed Jul 1 02:09:39 PM UTC 2026
Start building sites …
hugo v0.128.2-de36c1a95d28595d8243fd8b891665b069ed0850+extended linux/amd64 BuildDate=2024-07-04T08:13:25Z VendorInfo=gohugoio
INFO static: syncing static files to / duration 4.925005792s
INFO build: step process substep collect files 1000 files_total 1000 pages_total 975 resources_total 25 duration 6.128539854s
INFO build: step process substep collect files 3331 files_total 4331 pages_total 4281 resources_total 50 duration 352.124974ms
INFO build: step process duration 6.491096625s
INFO build: step assemble duration 228.251498ms
INFO build: step render substep pages site en outputFormat html duration 9m44.482978732s
INFO build: step render substep pages site en outputFormat print duration 10.330178566s
INFO build: step render substep pages site en outputFormat rss duration 359.552672ms
INFO build: step render pages 8567 content 4282 duration 9m55.181953772s
INFO build: step render deferred count 0 duration 3.638µs
INFO build: step postProcess duration 21.203µs
INFO build: duration 10m1.901556268s
| EN
-------------------±-------
Pages | 8567
Paginator pages | 0
Non-page files | 50
Static files | 14326
Processed images | 0
Aliases | 2934
Cleaned | 0
Total in 601931 ms
Wed Jul 1 02:19:41 PM UTC 2026
Hugo 0.163.3
Thu Jul 2 08:11:02 AM UTC 2026
INFO deprecated: project config key imaging.quality was deprecated in Hugo v0.163.0 and will be removed in a future release. Set the quality per format instead with imaging.jpeg.quality, imaging.webp.quality and/or imaging.avif.quality.
WARN deprecated: project config key languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use locale instead.
WARN deprecated: project config key languages.en.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.en.label instead.
INFO deprecated: project config key imaging.quality was deprecated in Hugo v0.163.0 and will be removed in a future release. Set the quality per format instead with imaging.jpeg.quality, imaging.webp.quality and/or imaging.avif.quality.
Start building sites …
hugo v0.163.3-4d22555aebf458d5d150500c9ac4bee5b24cf0d3+extended linux/amd64 BuildDate=2026-06-18T16:18:24Z VendorInfo=gohugoio
INFO build: step process substep collect files 4338 files_total 4338 pagesources_total 4288 resourcesources_total 50 duration 188.951417ms
INFO build: step process duration 189.146309ms
INFO static: syncing static files to / duration 4.994994616s
INFO build: step assemble duration 7.119902831s
WARN deprecated: .Language.LanguageDirection was deprecated in Hugo v0.158.0 and will be removed in a future release. Use .Language.Direction instead.
INFO build: step render substep pages site en outputFormat html duration 9m27.28409594s
INFO build: step render substep pages site en outputFormat print duration 14.137290933s
INFO build: step render substep pages site en outputFormat rss duration 4.225965198s
INFO build: step render pages 8581 content 6810 duration 9m45.666412073s
INFO build: step render deferred count 0 duration 2.677µs
INFO build: step postProcess duration 27.083µs
INFO build: duration 9m52.975867582s
│ EN
──────────────────┼───────
Pages │ 8581
Paginator pages │ 0
Non-page files │ 50
Static files │ 14332
Processed images │ 0
Aliases │ 1467
Cleaned │ 0
Total in 593128 ms
Thu Jul 2 08:20:55 AM UTC 2026