I'm trying to get my TTFB down to under 200ms. Currently it is over 600ms.
My app uses Laravel with AsgardCMS. I have implemented very little custom code, and the database has 28 tables with less than 100 records in total.
I have installed Redis caching (and turned caching on), and run php artisan optimize.
I am also using Nginx with Apache via Engintron.
Basically I have tried to eliminate as much of the bottleneck as I can!
However, after installing Blackfire, it is reporting that Composer\Autoload\includeFile is taking a total of 250ms on its own (over 299 calls).
Illuminate\Container\Container::build is also being called 141 times with total time of 49ms.
I accept that it's normal for the autoloader to be called this many times, but should it really be taking 250ms?
My VPS has 2 cores (Intel Xeon CPU) and 4GB RAM (dedicated). I just upgraded from 1 core and 2GB RAM, but barely noticed any difference. Disks are SSD. Running on WHM/cPanel btw. Around 10 sites on the server, but none of them particularly high traffic, and these tests have been run during the quietest periods.
In the last test run, Blackfire reported:-
Time: 696ms
I/O Wait: 149ms
CPU time: 548ms
SQL Queries: 2.38ms
Any ideas? Pretty please...
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire