Content adapters: examples and performance

Thank you! Works perfect. Helped me to find my problem, was a bad setup on [permalinks]

1 Like

@jmooring May I ask a question, please? Good sir.

The build times are impressive to me. However, the JSON file for 20k posts contains very little data (just title, date, and 1 paragraph).

But how long build time will take if the JSON file will be close to real-world cases? Let’s say 20k posts, where each post contains 4-5 paragraphs and at least 3-4 images, and if we transform the images using Hugo (like creating .webp versions of each image).

Can you imagine and say the approximate time necessary to build a website like that? And I want to believe, if only the first build will take a lot of time? Will second and further builds be much faster because of caching?

That impossible to answer. I suggest you create your own test data.

They will be faster due to caching, if properly configured and implemented. Whether it will be “much faster” is impossible to answer.

2 posts were split to a new topic: Variable out of scope

Here are some stats for my content adapter’s site on Linux on an old laptop.

First build drags itself a bit (sometimes up to 8 minutes)

                  │  EN   
──────────────────┼───────
 Pages            │ 36936 
 Paginator pages  │     0 
 Non-page files   │     5 
 Static files     │     8 
 Processed images │    15 
 Aliases          │     0 
 Cleaned          │     0 

Built in 199609 ms

Subsequent ones are faster

Start building sites … 
hugo v0.147.5-7766fc62416ff95ed7768c19947ac0fcd96444cc+extended linux/amd64 BuildDate=2025-05-22T11:37:19Z VendorInfo=gohugoio


                   |  EN    
-------------------+--------
  Pages            | 36937  
  Paginator pages  |     0  
  Non-page files   |     5  
  Static files     |     8  
  Processed images |    10  
  Aliases          |     0  
  Cleaned          |     0  

Built in 66337 ms
Environment: "development"

Very impressed though! Builds were 5x-10x longer on Windows even after excluding hugo.exe from antivirus (up to 30 minutes first build and 5-10 minutes for subsequent builds).

you have to block the virus scanner for ./public and ./recources (if not redirected in config files)