Who works better: Ubuntu vs Windows Subsystem for Linux

It is not the first time that WSL performance has been discussed compared to the performance offered by Ubuntu installed naturally on the computer. And now, with the arrival of the new Windows 11, and the imminent arrival of Ubuntu 21.10, the well-known portal Phoronix has put these two systems face to face again to find out what is the best way to use Linux on a computer.

Before going into detail with the tests, the quick answer is logic: a system installed on a computer, with direct control over the hardware, will be faster than a virtualized system. Although we may get the odd surprise.

WSL2 or Ubuntu: who is faster?

From Phoronix they have put to the test, on the one hand, the latest available version of Ubuntu 21.10, the new version of the operating system that will reach all users at the end of the month, and on the other hand WSL2, the latest version of the Windows Subsystem for Linux, included in the Windows 11 build 22454.

As we can see in most of the tests, in most of them Ubuntu offers a better performance than WSL, although not by much difference. In tests that do a moderate CPU usage, WSL2 performs quite well and does not lose much distance with its rival. However, when CPU intensive use is made, or I / O systems come into play, the difference grows to almost 50% in Ubuntu’s favor.

Ubuntu 21.10 vs Windows Linux Subsystem

But not always the Canonical distro has the upper hand. In some specific tests, the Windows Subsystem has proven to be superior to Ubuntu. For example, when stress testing with the Nginx web server.

Ubuntu 21.10 vs Windows Linux Subsystem 1

Some more than curious data that reflects both the excellent work of Microsoft when creating its subsystem, as well as its great weaknesses.

Will WSL be able to replace Linux distros as we know them?

Taking an average of all the data obtained we can see that the Windows Subsystem for Linux (version 2, specifically) is 6 to 7 percent below of the performance offered by a pure Ubuntu physically installed on the PC.

Ubuntu 21.10 vs Windows Linux Subsystem 2

Microsoft has improved a lot, and it is that a great performance has been gained after the arrival of the new WSL2. And surely there is still room for improvement. But we cannot forget that we are talking about a virtualized operating system, whose control depends on the hypervisor (Hyper-V in this case) and that, although it improves something else, it is difficult to replace a physical installation of Ubuntu, or any another Linux, at least in terms of performance.

We also remember that soon we will be able to run applications with a graphical environment (GUI) in WSL2, very useful for those who want to test a program of this operating system without having to install it from scratch.

Related Articles

Leave a Reply

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