Is this performance typical of hugo sites? I have a 753 page blog with pagination. Should it be taking 11 seconds to generate? The newest release says about 1 ms per page.
Started building sites …
Built site for language en:
0 of 1 draft rendered
0 future content
0 expired content
753 pages created
0 non-page files copied
76 paginator pages created
0 tags created
24 categories created
total in 11518 ms
It says “about 1ms per page”, but we don’t control the user’s templates and data. There are plenty of ways to create slow and ineffective Hugo sites. But there are also ways to fix them.
But that means you have have to show us your source code. Do you have a GitHub link or similar?
There have been some obvious examples in the past here on the forum, I may try to search for them.
We have been doing some work to help this with some caching, but there still are improvements to be had in this area.
So, as in software engineering in general, be aware of that inner loop.
So listing 10 pages with a where clause on the home page is fine. Doing the same for every page gets expensive (which means we should cache it), but still surprisingly fast with Go. Adding more loops inside those loops … It gets exponential.