MSYS2-packages: is msys2 gcc expected to be twice as slow as native linux toolchain?

Hello, I have recently compared the performance of gcc toolchain running in msys2 (mingw64 bash) vs native linux when building mame. I was a bit shocked to see that the build time under Linux is almost twice as long:

$ git clean -xdf
$ time make SUBTARGET=tiny PTR64=1 TOOLS=1 OPTIMIZE=3 IGNORE_GIT=1 -j12

On my Ryzen 2600 with 32 GiB RAM I got the following results:

Fedora Windows
real 5m29,608s 11m38,268s
user 54m34,952s 0m40,542s
sys 2m43,733s 2m22,465s

Is this normal? Or is there a way to bring the performance closer to Linux? Thanks!

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

@lazka, thanks! I have also submitted a similar PR to @balr0g who begun working on github actions CI: https://github.com/balr0g/mame/pull/1

Also make sure to exclude the compiler and the project from AV software.