Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JeffreyGoins1000's avatar

Laravel homestead local installation

watching the tutorial videos here i noticed that the difference in speed and responsetime compared to my local development environtment is gigantic. my hardware is not the non-plus-ultra but 16 GB of RAM, a quadcore CPU with 4x3.2 GHz and an 512 GB SSD drive should be sufficient i guess?

i use laravel 7 with vagrant box and homestead and the response is so slow that clicking on any link takes at least 6-10 seconds (it is really that slow!) before anything happens. seeing that in this videos nearly instantly a clicked link opens buffles me really.

anybody an idea what might cause this?

btw it has nothing to do with the application itself. it is the same slowliness for a clean installation as well.

0 likes
3 replies
woddell's avatar

I'd check your system resources to see if anything's causing the bottleneck. Based on your specs I highly doubt it but at least the quick check would rule it out.

How are you running vagrant? If it's VirtualBox you should be able to allocate more resources to it to see if that's the issue.

I've used a lot of different spec machines with Laravel&Homestead (although now I tend to use docker) and I've never had an issue. Maybe a new update for homestead/vagrant/VirtualBox or something could be the issue.

1 like
Tray2's avatar

It depends a bit on the spec of the vagrant box.

If you are on a Mac check out Valet instead of Homestead.

If you are on windows try adding more CPU and memory to the Homestead box. It's most likely running on a single CPU and 2Gb ram.

Update the homestead.yaml file and increase the two values below.

memory: 2048
cpus: 1
1 like
JeffreyGoins1000's avatar

@woddell @tray2

thanks for your replies. actually both replies were usefull. i did increase the memory limit of homestead as well of the virtual box. i also uninstalled a vast amount of old software just filling up space and ram of the machine.

all this reduced the responsetime by appr. 50-75% but it is still far from what i see in this videos.

but for now it is ok. i will see - when the application is finished - what laravel offers in speeding up and optimizing applications. i already took a look at "telescope" and it looks very promising to me.

update: sorry for making it look like the slowliness had something to do with laravel - that's definitely not the case. i found a solution that increased the speed significantly. the "power saving options" on my machine were somehow broken and there was no "high performance" option at all. i added the "high performance" and even an "ultra performance" option and now the response times are down to appr. 1 second. and that's with debug bar running, a vagrant box, homesteand and no optimizations in place at all. so if some other windows 10 user runs into the same issue you can add a "ultra performance" option to your machine by

  • opening the powershell as admin
  • executing the command: powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
  • then choose the new option "ultimate" in the power settings

Please or to participate in this conversation.