Performance comparison Windows, WSL and Linux,

Phoronix website posted a performance benchmark test results for Windows, WSL and Linux. Content includes network performance test, I / O performance, running performance and graphics processing performance programming language.

Test system version is:

  • Ubuntu 18.04.3 LTS
  • Ubuntu 19.10 
  • Windows 10 18362
  • Windows 10 18362 WSL
  • Windows 10 19008 WSL
  • Windows 10 19008 WSL2
  • Windows 10 19008 

All Windows / Linux WSL performance benchmarks are based on the following hardware environments:

  • MSI X299 SLI PLUS motherboard
  • Intel Core i9 7960X CPU
  • 16GB Memory
  • 256GB Intel NVMe SSD
  • Gigabyte graphics Radeon RX 550

All operating systems and WSL examples have been tested in its existing configuration, all these benchmarks are using the Phoronix Test Suite performed .

Let's look at the test results:

WSL where there are bottlenecks in the past is I / O performance by observing the test data we can see, to the WSL2, it is in the I / O performance than WSL, perhaps thanks to WSL2 of Hyper-V VM. But for some SQLite test, WSL2 performance is not good.

Interestingly, performance WSL1 / WSL2 SQLite performance in some tests even more than Windows itself (likely due to fsync upstream SQLite behavior is not the same performance on different platforms, it may be because some fsync not operate at WSL the same process).

Although WSL2 than WSL provide better I / O performance, but there is still room for improvement.

Evaluated by Microsoft's own Ethr benchmark in terms of network performance, compared with Ubuntu, WSL even Windows 10 itself still has a considerable advantage.

在完全由 CPU 决定的工作负载中,WSL/WSL2 的性能表现良好,和裸机 Linux 不相上下。

上图的性能测试结果显示,除了在测试 HTTP 时,WSL 下的 Golang 性能基本比 Windows 更好。

上面的数据显示,在使用相同 OpenJDK 版本的条件下,Windows 10 19008 似乎也比 Windows 10 18362 提供了更好的 Java 性能。而对于 WSL,结果好坏参半。

上面的数据是使用英特尔 OSpray 渲染器进行测试的结果,可以看到 WSL1 比 WSL2 快。

这里使用英特尔 Embree 测试的数据也很有趣,可以看到,在使用官方 Windows 二进制文件的情况下,Windows 10 19008 的性能要比 18362 的更好,WSL1 的性能也比 WSL2 好,不过它们都要比 Ubuntu 逊色一筹。

这里使用了英特尔 SVT 视频编码器进行测试,可以看到,属于 Windows 10 Insider 预览版的 Windows 10 19008 表现不错,和 Ubuntu、WSL/WSL2 不相上下。

从这个测试可以看到,Windows 10 Build 19008 的性能有了较大的改进,而 WSL 的性能则没有太大的变化。

与 Windows 相比,LuxCoreRender在 WSL/WSL2 中的性能更好。WSL 的性能也比 Ubuntu 稍好。

Himeno 属于比较重量级的工作负载,可以看到,在这个测试下,裸机 Ubuntu 的性能仍然是最好的。

与较早的 18362 版本相比,Windows 10 19008 显示出了另一项重大改进 —— 解压文件的性能。

这里测试的是代码编译性能,由于 I/O 存在瓶颈,在 WSL 上进行代码编译仍然很慢,而 WSL2 由于采用了传统的 VM 类型方法,因此它的速度有了一定的提升。

从上图可以看出,在 WSL 中构建 LLVM 比在 Windows 中构建 LLVM 要快。

上面这些结果显示了不同的测试条件下各自的表现,这里不再赘述了,各位可根据自己的需要进行查看。

使用 Blender 进行测试时,WSL/WSL2 可与 Linux 的性能相媲美,而 Windows 10 18362 的表现则稍有落后。

尽管执行了各种各样的测试,但是如果对在七个不同操作系统上成功运行的所有测试取几何平均值,可以得出这样的结论:

  • Windows 10 Build 19008 的总体性能要比 Build 18362 版本好,而 WSL 的性能并没有太大变化
  • WSL2 比 WSL 的性能确实稍好一些,这是因为在  I/O 或网络活动繁重的工作负载的情况下前者性能要好得多
  • 在这种特殊的 Core i9 7960X 场景下,运行 Ubuntu Linux 的速度总体上比最快的 Windows 配置快 27%

有兴趣的朋友可查看这份更详细的 OpenBenchmarking.org 结果文件,以深入研究这些 Windows / WSL / Linux 基准测试内容。

Guess you like

Origin www.oschina.net/news/112125/wsl-windows-linux-benchmarks