Replies: 5 comments 11 replies
-
Good point! I have to monitor what’s taking so much time. |
Beta Was this translation helpful? Give feedback.
-
I know Gotenberg isn't pupeteer based, but after poking around pupeteer a bit, I can reproduce this issue with it as well. The issue seems to be that Unfortunately I have no Go experience so providing a PR with something like a "performance" flag is out of my scope of ability, but it certainly may be useful for lots of folks who are simply trying to create basic pdfs from html (invoices, reports, etc). |
Beta Was this translation helpful? Give feedback.
-
Ok awesome, thank you! It does look like there are 4 lifecycle events that are typically used for this configuration: https://pptr.dev/api/puppeteer.puppeteerlifecycleevent It does beg the question, why are there ANY network connections even when I load html that has literally nothing besides "hello world". Maybe chromium is making some calls home and those are being considered active network connections? |
Beta Was this translation helpful? Give feedback.
-
@rreynier *check https://github.com/gotenberg/gotenberg/actions/runs/7185235602. |
Beta Was this translation helpful? Give feedback.
-
Just tested this and I am seeing massive improvements in render speed. Locally I am seeing average render time go from around 2000-2500ms to a consistent 70ms. I have not spent much time confirming output though, but will report back. |
Beta Was this translation helpful? Give feedback.
-
It seems that bootstrapping an html to pdf conversion may have a ton of overhead when going through Gotenberg. I stood up an instance in Docker and ran the following two commands from within the container. To note, test.html simply has "hello world" inside.
Directly via chromium: 0.137s
Through Gotenberg API: 2.193s
Is this to be expected? I recognize I have to go through HTTP and whatever other layers exist, but 2 seconds seems like a lot just for baseline latency.
Beta Was this translation helpful? Give feedback.
All reactions