Browser rendering very slow

I am working on an implementation of putting PDF generation on a Cloudflare worker instead of on our own Puppeteer instance. This involves generating PDFs of about 10-12 pages and about max 10-15 MB size.

The rendering takes about 30 seconds in total to finish, which is very slow compared to the amount of Puppeteer would take on our own server (like 5-7 seconds).

Is there any reason/solution for improving the speed of the PDF rendering?

Thanks!
Was this page helpful?