More than expected CPU time
I’m seeing a p99 of 95ms and a p50 of 4.6ms on CPU time for functions after deploying the next js starter app to pages. What’s going on here? Shouldn’t these values be much lower?
5 Replies
same for me, but i think its just that nextjs is not that well optimised
I have 50ms cpu time just to show my layout
Have you done any comparisons with other frameworks? How about Astro?
I’m just doing some back of the envelope calculations atm and the numbers aren’t looking the best
same
no
but most of the time i have around 200ms response and 50ms cpu time for a simple route that don't do any network call
so i don't know why its so slow
maybe cf, maybe next
Hmm, interesting. What are you seeing on p99?
Can anyone from the cf team provide more insight?
What insight you looking for?
It could be as simple as a route taking a lot of cpu that isn't invoked much or be lots of processing being done on startup
We couldn't tell you why for your specific script, it varies from one to one