Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jhull's avatar
Level 3

Speeding Up Laravel Vapor API Calls

Same exact code on DO server usually runs < 200ms. Same code on Laravel Vapor is somewhere between 600ms and 800ms.

What's the best way to speed up response time with Vapor?

0 likes
3 replies
bugsysha's avatar

And how does Timeline in Chrome Dev Tools look like?

themsaid's avatar

Make sure the memory settings you're using in your environment matches what's on the DO server if you want to compare the response time.

georgeboot's avatar

Note that with more memory, you also get more cpu cycles.

It’s worth to test for your ideal memory wise. In many cases, adding a bit of ram makes the request more expensive but due to the added cpu cycles, it finishes faster and ends up costing you less overall.

Please or to participate in this conversation.