一千萬個為什麽

搜索

Windows通常總是比linux慢嗎?



公司有多個分銷。構建同一個項目會導致不同的構建時間(參見表1)。

| win10laptop32gbram | win10laptopOld | win7laptop | win7server | linuxvm | mac |
|--------------------|----------------|------------|------------|---------|-----| 
| 3                  | 3              | 2          | 1.5        | 1       | 1.9 | 

表1:不同操作系統和硬件之間的構建速度比。

其他組織的其他人也會遇到這種情況嗎?

轉載註明原文: Windows通常總是比linux慢嗎?

一共有 1 個回答:

TL; DR取決於最佳/最差之間最多12次的用例

Comprehensive testing has been done over at Phoronix (28.03.18) and the results are very mixed. The tests looked at:

  • 清除Linux 21510
  • Debian 9.4
  • OpenSUSE 42.3 Leap
  • Ubuntu 16.04 LTS
  • Windows 10 Pro Build 16299
  • Debian 9 On WSL
  • OpenSUSE 42.3 On WSL
  • Ubuntu 16.04 LTS On WSL

The results are all over the show. In a few tests, the WSL (Windows Subsystem for Linux) is faster then native Windows (GraphicsMagick) and the Intel optimized distribution, Clear Linux, sometimes has the worst results (Netperf UDP request response). While in others Windows is twice as fast as all Linux distributions (CacheBench). All in all, deciding on performance is not conclusive. Choose the OS that provides the tooling you require.

Nonetheless, the article itself does provide a winner given that only first place finishes are taken into account:

... Clear Linux是經過測試的操作系統中速度最快的   在前40%的時間裏,Debian 9.4排在第二位   完成22.5%的時間,Windows 10 Pro本身是最快的   12.5%的時間。

When only taking Java into account:

在Java測試中,沒有真正的驚喜,性能往往是   在所有經過測試的操作系統中大致相同。

And finally, in a compile test (Golang), which is the test that is most related to the use case in the question:

Windows 10和WSL上的構建性能比裸機慢   金屬Linux性能。