ajmerainfo's avatar

Laravel Speed Issue

Hey Guys,

I am really new to Laravel and came from .Net backgroud.

I made simple listing page with pagination and load only 3 fields and 5 records with return json with ajax request and it took 200-900ms. After php artisan optimization it took 50-250ms. I might ok with this speed but need to find out that am I doing something wrong or missing? (This test with vagrant.)

With same coding on asp.net (c# & MSSQL) took only 15-20ms

I also mark Laracast site and I thing this one built on Laravel and it's speed is awesome. Is that using everything caching?

In advance thank you for your answer and need to decide and find future with laravel framework or stick with .Net

0 likes
6 replies
Kemito's avatar

If the boot speed of Laravel is slow and you are using vagrant make sure that you are using NFS for folder sync https://www.vagrantup.com/docs/synced-folders/nfs.html

Some of MS you can get by caching routes, caching data, disabling things your application don`t use. As you already done optimize will help. For development purpose 900 is a lot. But much likely i would blame vagrant for that as i have tested multiple times that on native it works much faster that VM

ajmerainfo's avatar

@Kemito Thank you for response.

I am using windows so NFS will not won't work.

Windows users: NFS folders do not work on Windows hosts. Vagrant will ignore your request for NFS synced folders on Windows.

But I will try tomorrow with upload my application on live server to test real speed.

ajmerainfo's avatar

@Kemito

I have installed this plugin but what did you configured after that? I some articles but did not get more idea about what file and what to changes.

Kemito's avatar

@ajmerainfo If you use vagrant (instead of Homestead) then check my first link. If you use Homestead then add type: "nfs" to your folders section in Homestead.yaml

ajmerainfo's avatar

I have tried to upload on live server with 4GB RAM and 2 Core with all optimization command. But still same performance like 36-50ms And I have upload same login with core .Net application on server with 1GB RAM and 1 Core and it gave me 9-12ms :)

@JeffreyWay Any thought on this one? I really love you videos and try to make application from that and found speed issue of laravel.

Below is my project repo. Am I doing anything wrong? https://bitbucket.org/keyurajmera/laravel-master/

I was so exited with laravel but now need to think about it.

Please or to participate in this conversation.