Benchmarking tests in Homestead
This blog post was originally published a little while ago. Please consider that it may no longer be relevant or even accurate.
This is pretty anecdotal but I thought it was interesting enough to post. I've been working on a new package recently and using PHPUnit to test it all. I decided to run the tests both from within Homestead and on my local machine and was surprised to see the difference. Sure, Homestead is a virtualised machine with less memory that my actual machine but was surprised to find that not using Homestead was almost 13 times faster.
It makes a lot of sense in hindsight, but it's definitely something you should keep in mind. Might be a good idea to run your development apps through Homestead but do all your testing locally. The time savings from running the suite each time will definitely add up, and if you have a larger suite (the one in my example was only 20 tests, very small) it could add up very quickly.