Why is the LAMP so fast?

I have a website written in Laravel 4.2. What is surprising - on Windows it is loaded in 3 seconds, and VPS of 0.2 seconds. (The exact time out with Laravel Debugbar). On a VPS with 1 gig operatives, and I am sure that the percent on the old 775 socket and on the machine 4 Giga operatives and i3-2120
September 19th 19 at 00:18
7 answers
September 19th 19 at 00:20
Put on your computer similar to that on the server and compare. Otherwise, the comparison is not correct.
why put the same ON it if I want to compare? - mikayla.Schulist commented on September 19th 19 at 00:23
Because compare with the warm soft. - maryjane_Doyle commented on September 19th 19 at 00:26
September 19th 19 at 00:22
Under Windows, I understand you mean a working desktop?
In addition to the website, your computer is forced to serve the user, display graphics on the monitor to support the work of a bunch of software you've made there.

Xampp you are using, is made for developers, ie in the first place there is appreciated the ease of deployment and work with him, and not performance.
It has not been optimized for speed, for it there is no use to anyone.

In the end, you have the first server gets the scraps of your computer's resources, clearly less than on a VPS, where all the resources go to the server. And the second server manages these cores is not optimal in terms of performance.
counterexample: on the laptop [8G RAM (scored 6.4)
Intel® Pentium® Dual-Core Processor, SSD] to docker raised the LAMP, which turns the development site (raised a few of these pieces paired with a mysql container for the development of different projects) and sites for the development of the fly
coincidence? I don't think
probably it is in Windows - mikayla.Schulist commented on September 19th 19 at 00:25
: The fact that performance depends on a heap of parameters - how much memory, how fast the disk how many of the CPU resources goes to the desired app, how effectively configured for this application, etc.

In order to talk about something, and that something with something to compare you need to try to create the most identical conditions. - maryjane_Doyle commented on September 19th 19 at 00:28
: I agree, but I also noticed that the same WAMP-based OpenServer worked much slower than the lifted LAMP in VirtualBox on the same windowas the car, which now turns Docker under Ubuntu. Because I conclude that to run WAMP under Windows for development will be fraught with its slow work - arlene_Lebsa commented on September 19th 19 at 00:31
: Yes, I was about the same. - Michael.Watsica commented on September 19th 19 at 00:34
Well of course everything has to work where intended.
Ie if the web server included in WAMP confined to work in Linux, it should be run.
Even more problems now with this no, pick up dev and say what you want.

I have long not use all sorts of builds under Windows, why, when there is a dev with Linux.
Someone actually easier to work in Linux but I prefer Windows.
In the end, I'm working in Windows, web server in Linux, and everyone is happy. - arlene_Lebsa commented on September 19th 19 at 00:37
September 19th 19 at 00:24
Try to run it in virtual reality on your computer. Windows versions of many programs run slower on windows compared to Linux.

And still a good idea to not put PHP to dev and hhvm - so should be even faster.
September 19th 19 at 00:26
And what makes you think that hosting 1 gig operatives and the old PERC? Have you thought that hosting a 32-processor server with 128 GB operatives, boys Oh boys running virtual machines, just about all stand for, here at your request with all 32процессорной power and said?
September 19th 19 at 00:28
I correctly understand that you have a Windows iis 7 server or Denver or even that handles php ? So right ? server on a VPS server purely just chasing your code with the least loss of time TC works native environment. And wines you have a lot of processes drive crap etc.
Xampp is. The speed of lamp strikes. - mikayla.Schulist commented on September 19th 19 at 00:31
September 19th 19 at 00:30
If you remove Apache, to configure the script in prod mode, remove the debugger and put opresser, it will be even 4-8 times faster.
September 19th 19 at 00:32
...loaded 3 seconds...

He's not slow, he's heavy, like loaded so much.

Find more questions by tags LAMPWeb DevelopmentLinuxXampp