說明:
使用vagrant和Homestead 在vBox上面跑laravel, 響應速度非常緩慢(大概在10+s),
嘗試過增加虛擬機配置, 但是沒有任何效果, 經驗證也不是數據庫的原因 .
通過網上查詢了解到, 是因為VirtualBox的IO引起的: http://mitchellh.com/comparing-filesystem-performance-in-virtual-machines
解決方法1:
在Homestead.yaml下添加type:nfs, 注意空格, map對應windows下面的物理路徑

解決方法2:
如果上訴方法, 還是不能增加響應速度(我的就是), 則嘗試以下方法
安裝一個vagrant 插件
$ vagrant plugin install vagrant-winnfsd
然后修改 Homestead/scripts/homestead.rb 的代碼, 循環部分替換成如下:

重啟vagrant 之后, 響應速度已經將至 200 ms
----------參考資料
https://laracasts.com/discuss/channels/general-discussion/for-those-who-find-homesteadvagrantvirtualbox-slow-on-windows?page=1
http://mitchellh.com/comparing-filesystem-performance-in-virtual-machines
