Answer the question
In order to leave comments, you need to log in
Why is LAMP so fast?
I have a website written in Laravel 4.2. What is surprising - on Windows it is loaded in 3 seconds, and on VPS 0.2 seconds. (I find out the exact time using Laravel Debugbar ). Moreover, the VPS has 1 gig of RAM, and I’m sure that the percentage is old on the 775 socket, and on the typewriter 4 gig of RAM and i3-2120
Answer the question
In order to leave comments, you need to log in
Install on your computer software similar to that on the server and compare. Otherwise, the comparison is not correct.
Try running it in a virtual machine on your computer. Windows versions of many programs run slower on windows than on Linux.
And it's also a good idea to put hhvm instead of PHP in a virtual machine - this should make it even faster.
And where did you get the idea that hosting has 1 gig of RAM and an old percentage? You didn’t think that hosting has a 32-processor server with 128 GB of RAM, on which hundreds of virtual machines are running, it’s just that almost all of them are idle, so your request with all 32 processor power was answered?
I correctly understand that you have an iis 7 server on Windows or Denver or something else that processes php? That's right ? the server on the vps is just a purely server that drives your code with the least loss of time, as it works in its native environment. And in the wines you have a bunch of processes, the disk is dirty, and so on and so forth.
If you remove Apache, set the script to prod mode, remove the debugger and install an opcache, it will be 4-8 times faster.
...it takes 3 seconds to load...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question