Virtual Box vs Hyper-V in 2014: which one is faster?

Posted on 12/21/2014

Recently I had to decide between VirtualBox and Hyper-V as my virtualization platform for SharePoint server. Using it as a development machine, I have the flexibility to pick either one without production environment considerations. There were a few articles on the web which compare the two, but they were all dated back to at least 2011. So, how do they actually perform in 2014?

One thing which I would like to note of is that Hyper-V Generation 2 machines use UEFI boot instead of the traditional BIOS. Generation 2 machines also introduces less virtualization overhead by removing legacy interfaces (hey...how many of you still have a physical IDE cable?). These improvements should translate to better performance compared to Hyper-V Generation 1. With little information on the internet, I decided to run my own test.

Since my purpose is to run SharePoint server, I timed how long it takes for various installation steps. only automatic operations are timed, e.g. from machine start to the Windows Installation welcome screen, and from installation begin to the screen which prompts for Administrator password. Of course, other parameters like such as virtual machine CPU, virtual machine RAM, VHD size etc., are configured identical.

Virtual Box vs Hyper-V Gen 1

The first test is done on my desktop machine. Since I'm reluctant to "upgrade" from Windows 8 to 8.1, the only choice I have to make is Virtual Box vs Hyper-V Generation 1.

OS: Windows 8
CPU: Intel i7-4820K @ 3.7GHz
RAM: 16GB DDR 1600
HDD: 240GB SSD

OperationVirtual BoxHyper-V Gen 1
Machine boot -> Install screen27s17s
Install start -> Administrator password screen155s283s
Machine start -> Windows ready10s7s
Install IIS role39s50s
Unzip 345MB zip to 555MB iso7s8s


Next, I ran a few benchmark tests to determine the performance of various system components using NovaBench and Roadkil's Disk Speed.

NovaBenchVirtual BoxHyper-V Gen 1
RAM speed (MB/s)1209813363
RAM score159161
CPU score198318
HDD Write speed (MB/s)213232


Roadkil's Disk SpeedVirtual BoxHyper-V Gen 1
Access Time0.190.11
Max Read Speed (MB/s)650654
Cached Speed (MB/s)284268

 

It seems that despite the difference in virtualization architecture, neither Virtual Box nor Hyper-V gains a significant advantage over the other. Next, I moved to my Fujitsu UH572 laptop. Running on Windows 8.1, I was also curious how much performance can Hyper-V gen 2 machines gain.

Virtual Box vs Hyper-V Gen 1 vs Hyper-V Gen 2

OS: Windows 8.1
CPU: i5 3317U @ 1.7 GHz
RAM: 8 GB DDR 1066
HDD: 240GB SSD

OperationVirtual BoxHyper-V Gen 1Hyper-V Gen 2
Machine boot -> Install screen40s18sN/A (due to UEFI boot)
Install start -> Administrator password screen206s286s177s
Machine start -> Windows ready20s9s6s
Install IIS role78s74s63s
Unzip 313MB zip to 529MB iso10s19s9s


Hyper-V is the all time winner! Let us move on to find out why:

NovaBenchVirtual BoxHyper-V Gen 1Hyper-V Gen 2
RAM speed (MB/s)112741169311833
RAM score150153153
CPU score153155153
HDD Write speed (MB/s)145152153


Roadkil's Disk SpeedVirtual BoxHyper-V Gen 1Hyper-V Gen 2
Access Time0.130.040.04
Max Read Speed (MB/s)76259402180
Cached Speed (MB/s)210340324


The reason is pretty obvious: Hyper-V somehow cached data from the harddisk, making the peak read speed nearly 6 GB/s (that's 6 gigabyte, not gibabit!). In terms of CPU and RAM performance, Hyper-V is on par with Virtual Box.

Hyper-V seems better at I/O, but the final choice depends

Combining results from the two suite of tests, it is difficult to draw a conclusion. In the first test, Hyper-V is only marginally better that I consider their performances equal. In the second test, Hyper-V offers quite an amount of HDD performance boost which may benefit heavy I/O applications. This sounds reasonable - after all, Hyper-V is designed for server virtualization, while Virtual Box aims at compatibility.

Looking at the numbers, Virtual Box still offers decent performance. For development purpose, I don't think either one will slow you down a lot. Other factors, such as VM backup, compability and usability, should probably be taken into consideration before making a final decision.


Next: JSON Toolkit update, CSV Toolkit Previous: FGT update for Graph v2.0

Comments

Hyper-V Gen 2 seems to default to a SCSI rather than IDE boot disk. Any chance you're seeing the difference between Hyper-V IDE and SCSI drives rather than Gen 1 and Gen 2 VMs in the second test?

by Xenny on 7/16/2015


Thank you for this comprehensive comparison! Your readers might also find this direct comparison between Oracle VirtualBox and Microsoft Hyper-V, generated by real users in the IT Central Station community, to be helpful: https://goo.gl/VdHFjb

+ Recent posts