VirtualBox in Windows 10 – Hyper-V vs KVM

For a time, VirtualBox did not play well alongside windows Subsystem for Linux 2 (WSL2) but it seems that with later releases of VirtualBox 6 and now VirtualBox 7 that is no longer an issue. Supposedly the issue was having Hyper-V enabled in Windows, which is required for WSL2. I installed and ran a fairly recent Rocky Linux 9.1 distribution and ran some quick tests to see if Hyper-V would outperform the default for Linux VMs, which is KVM. As in most things, the default of KVM (for Linux at least) seems to be the way to go.

With VirtualBox Paravirtualization set to Hyper-V

Hyper-VBlocksSecondsRate
Doing md5 for 3s on 16 size blocks69331432.922,374,364.04
Doing md5 for 3s on 64 size blocks46454313.031,533,145.54
Doing md5 for 3s on 256 size blocks25845322.98867,292.62
Doing md5 for 3s on 1024 size blocks9519272.98319,438.59
Doing md5 for 3s on 8192 size blocks1269422.9942,455.52
Doing md5 for 3s on 16384 size blocks657582.9921,992.64
Doing sha1 for 3s on 16 size blocks63903862.992,137,252.84
Doing sha1 for 3s on 64 size blocks47825802.981,604,892.62
Doing sha1 for 3s on 256 size blocks27759732.98931,534.56
Doing sha1 for 3s on 1024 size blocks11031372.99368,942.14
Doing sha1 for 3s on 8192 size blocks1714293.0057,143.00
Doing sha1 for 3s on 16384 size blocks842942.9928,191.97
Doing sha256 for 3s on 16 size blocks47102503.001,570,083.33

The same test with Paravirtualization set to KVM

KVMBlocksSecondsRate
Doing md5 for 3s on 16 size blocks74016302.163,426,680.56
Doing md5 for 3s on 64 size blocks71522922.852,509,576.14
Doing md5 for 3s on 256 size blocks36603293.82958,201.31
Doing md5 for 3s on 1024 size blocks9866382.76357,477.54
Doing md5 for 3s on 8192 size blocks1480022.5258,730.95
Doing md5 for 3s on 16384 size blocks740262.4829,849.19
Doing sha1 for 3s on 16 size blocks69736242.922,388,227.40
Doing sha1 for 3s on 64 size blocks54034712.212,445,009.50
Doing sha1 for 3s on 256 size blocks42346922.351,801,996.60
Doing sha1 for 3s on 1024 size blocks16898123.25519,942.15
Doing sha1 for 3s on 8192 size blocks1908922.3979,871.13
Doing sha1 for 3s on 16384 size blocks886542.9929,650.17
Doing sha256 for 3s on 16 size blocks53083573.001,769,452.33

The “test” is simply “openssl speed” which by all accounts is the World’s Hokiest Benchmark, but it does solely focus on CPU (crypto is mainly math) and is installed on essentially every Linux host.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *