N
N
naneri2015-03-02 13:07:42
linux
naneri, 2015-03-02 13:07:42

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

7 answer(s)
S
Sanes, 2015-03-02
@Sanes

Install on your computer software similar to that on the server and compare. Otherwise, the comparison is not correct.

A
asd111, 2015-03-02
@asd111

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.

S
Saboteur, 2015-03-02
@saboteur_kiev

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?

W
Winner_DE, 2015-03-02
@Winner_DE

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.

O
OnYourLips, 2015-03-02
@OnYourLips

If you remove Apache, set the script to prod mode, remove the debugger and install an opcache, it will be 4-8 times faster.

U
uvelichitel, 2015-03-02
@uvelichitel

...it takes 3 seconds to load...

It's not slow, it's heavy, as it loads, it will take a lot of roam.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question