I've been working with using Vagrant on my test Zend Framework 2 project and I was having horrible performance problems that caused my very basic site to take more than three seconds to generate. I did some testing and the same site took a hundredth of the time if I ran it using MAMP. It turns out that VirtualBox's shared folder feature has some performance problems in OSX when there are a lot of files in the directory. Their solution is to switch over to using NFS.

This changes this line:

config.vm.synced_folder "../", "/var/www", id: "vagrant-root"

to:

config.vm.synced_folder "../", "/var/www", id: "vagrant-root", :nfs => true

After I changed this the performance got much better. It didn't match the same page load times as MAMP but it was actually a speed that I can work with. :-)

This isn't supposed to be a problem on Windows but I haven't been able to test this.