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

macross's avatar

Laravel performance

I have a strange issue with Laravel performance. Basically, I code using Xampp on windows and Laravel is pretty slow on my development machine it takes around 600ms on each page refresh. I thought maybe on a real server it will perform much better and when the time came to migrate my projects to centos server performance stayed the same. I did cache configs/routes etc but nothing helped. Then I tried to spin up a digital ocean droplet with ubuntu on it. And to my surprise, it worked within 20ms with debugging enabled! So what gives? What could be the issue here? PHP version on Centos was 7.2.

0 likes
2 replies
Tray2's avatar

It can be lots of reasons.

  • CPU
  • Memory
  • Slow disks
  • high system load
  • Huge tables with no indexes
  • Badly written SQL
  • Badly written PHP

It'simpossible to say what the issue is without knowing more about your application and code.

macross's avatar

Tested with clean Laravel install exactly same issue. So it's not my code. I did more testing using digitalocean droplets. If I install Centos on a droplet again I see 500ms response times and if I install ubuntu on digitalocean it's fast below 30ms. What gives?

Please or to participate in this conversation.