LoginSignup
4
4

More than 5 years have passed since last update.

vagrant+(vmware, virtualbox)の性能比較

Last updated at Posted at 2014-06-22

ホストマシン: MacBookPro 15-Inch, Late 2013
Processor: 2.6GHz Intel Core i7
Memory: 16GB 1600MHz DDR3
OS: Mac OSX 10.9.3

ゲストマシンに割り当てるメモリは 1024MBにそろえている

あんまり差はなかったな…。

up や reload にかかる時間を比較

vagrant+vmware

$ time vagrant up
...
vagrant up  4.86s user 0.85s system 18% cpu 31.059 total
$ time vagrant reload
...
vagrant reload  6.33s user 1.00s system 19% cpu 38.311 total
$ time vagrant halt
...
vagrant halt  2.84s user 0.38s system 32% cpu 9.831 total

vagrant+virtualbox

$ time vagrant up --no-provision
vagrant up --no-provision  3.58s user 1.51s system 15% cpu 33.067 total
...
$ time vagrant reload
vagrant reload  3.93s user 1.84s system 13% cpu 42.930 total
...
$ time vagrant halt
vagrant halt  2.01s user 0.51s system 22% cpu 11.126 total

sahara使ってみて時間比較

vagrant+vmware

$ time vagrant sandbox on
[default] Starting sandbox mode...
vagrant sandbox on  1.03s user 0.12s system 97% cpu 1.175 total
$ time vagrant sandbox commit
[default] Committing the virtual machine...
vagrant sandbox commit  1.16s user 0.15s system 96% cpu 1.352 total
$ time vagrant sandbox rollback
[default] Rolling back the virtual machine...
vagrant sandbox rollback  1.17s user 0.15s system 36% cpu 3.640 total

vagrant+virtualbox

$ time vagrant sandbox on
[default] Starting sandbox mode...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
vagrant sandbox on  1.29s user 0.16s system 54% cpu 2.656 total
$ time vagrant sandbox commit
[default] Committing the virtual machine...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
vagrant sandbox commit  1.32s user 0.17s system 46% cpu 3.231 total
$ time vagrant sandbox rollback
[default] Rolling back the virtual machine...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
vagrant sandbox rollback  1.33s user 0.18s system 29% cpu 5.037 total
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4