Home:ALL Converter>Laravel centos vs ubuntu performance

Laravel centos vs ubuntu performance

Ask Time:2018-09-16T12:55:09         Author:WhiteProfileSpecialist

Json Formatter

Laravel on Centos 7.5 with PHP 7.2 has a terrible response time of 500-600ms on each page refresh. At first, my first thought was that my code is bad so then I tested a clean install of Laravel, but it was the same 500ms.

After that, I tested Laravel on ubuntu 18.04 and to my surprise, in debug, mode response time was below 20ms! I did a diff of my php.ini file centos/ubuntu but the config was pretty much the same. Tests were performed on a 5$ DigitalOcean droplet.

What could cause this issue?

Author:WhiteProfileSpecialist,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/52351064/laravel-centos-vs-ubuntu-performance
yy