Windows 11 WSL2 Performance vs. Ubuntu Linux With The AMD Ryzen 7 7800X3D

Written by Michael Larabel in Operating Systems on 26 April 2023 at 11:16 AM EDT. Page 4 of 5. 24 Comments.
Timed FFmpeg Compilation benchmark with settings of Time To Compile. Ubuntu 22.04 on WSL2 Windows 11 was the fastest.
Timed Godot Game Engine Compilation benchmark with settings of Time To Compile. Ubuntu 22.04.2 LTS was the fastest.
Timed LLVM Compilation benchmark with settings of Build System: Ninja. Ubuntu 22.04.2 LTS was the fastest.
Timed LLVM Compilation benchmark with settings of Build System: Unix Makefiles. Ubuntu 22.04.2 LTS was the fastest.
Timed Node.js Compilation benchmark with settings of Time To Compile. Ubuntu 22.04.2 LTS was the fastest.

Ubuntu 22.04 LTS within WSL2 was providing compile time speeds similar to that of running Ubuntu 22.04 LTS bare metal. Ubuntu 23.04 is much slower at build times than Ubuntu 22.04 LTS due to running the newer GCC 12 compiler that brings extra language features, diagnostics, and performance optimizations that ultimately have an impact on the compile time performance.

OpenSSL benchmark with settings of Algorithm: SHA512. Ubuntu 23.04 was the fastest.
OpenSSL benchmark with settings of Algorithm: ChaCha20. Ubuntu 22.04.2 LTS was the fastest.

Overall the Ubuntu 22.04 LTS WSL2 performance continues looking good across many workloads.

Memcached benchmark with settings of Set To Get Ratio: 1:5. Ubuntu 22.04 on WSL2 Windows 11 was the fastest.
Memcached benchmark with settings of Set To Get Ratio: 1:10. Ubuntu 22.04 on WSL2 Windows 11 was the fastest.
Memcached benchmark with settings of Set To Get Ratio: 1:100. Ubuntu 22.04 on WSL2 Windows 11 was the fastest.

Surprisingly with the Memcached benchmark it was performing much faster on WSL2 than bare metal Linux. Then again for Memcached there are also some pending Intel scalability optimizations for the Linux kernel that really help out its Memcached performance...


Related Articles