1

I have just tried with Laravel 4.1 using a project which I half way develop with Laravel 4.0. After I move everything over to clean new Laravel 4.1, everything running ok. However, one thing that is truly unacceptable is the slowness of Laravel 4.1. All webpages loads extremely slow. Everything I tried were running on my local PC with WampServer.

On Laravel 4.0, a webpage take about 97ms to load. However, on Laravel 4.1, the same page take about 1.14s to load. It is more than 10 times slower.

Do you experience the same problem like me on new Laravel? Is there any possible I can improve the speed?

Thanks.

user1995781
  • 19,085
  • 45
  • 135
  • 236
  • You've probably missed a setting, or loading more stuff than you need... Check out the config differences between the two versions. – Shomz Jan 03 '14 at 14:15
  • What amazes me is that you had it running so quickly before. I use Xampp locally, and Laravel has always been slow on that. I was worried when I first started with laravel, because it looked unacceptable. However, once I uploaded it to the server it ran really fast. – Relaxing In Cyprus Jan 03 '14 at 14:56
  • Frankly I'm amazed you managed to get Laravel to load anything in 97ms. It is horrendously slow. Did you update everything via composer? Perhaps there's an incompatibility with a package? – Dave Jan 03 '14 at 15:39
  • No way is it slow. When I had it running a full site on my production server it was fine. – Relaxing In Cyprus Jan 03 '14 at 16:47
  • Guys, after I change the Apache server from version 2.2.17 to version 2.2.22, now it seems running normal. The webpage now took about 100ms to load. – user1995781 Jan 04 '14 at 11:56
  • tried php artisan optimize ? – George D. Jan 06 '14 at 19:27

2 Answers2

1

If you are using MySql then check your config. Is the host set to "localhost"? Try to change it to 127.0.0.1. See WAMP/XAMPP is responding very slow over localhost for more.

Community
  • 1
  • 1
chris342423
  • 439
  • 1
  • 6
  • 22
1

Just try to upgrade your Apache Server. It should run faster.