tag:help.appveyor.com,2012-11-13:/discussions/problems/25195-msys-build-on-vs-2019-image-is-twice-as-slow-as-on-vs-2017-oneAppVeyor: Discussion 2020-04-03T18:45:41Ztag:help.appveyor.com,2012-11-13:Comment/477382892019-10-17T16:32:46Z2019-10-17T16:32:46ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>My guess would be MSYS version difference between VS 2017 and VS 2019 images. Currently, VS 2019 image is being built from scratch with always the latest MSYS pulled at the moment of building. MSYS on VS 2017 though wasn't updated for some time now. Could it be the case?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/477382892019-10-17T16:52:58Z2019-10-17T16:52:59ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>I don't think it is down to MSYS version difference. While VS 2017 starts with much older MSYS, I have two<br>
bash -lc "pacman -Syu --noconfirm"<br>
calls in my .appveyor.yml, which effectively updates everything to the latest status.</p></div>belegdoltag:help.appveyor.com,2012-11-13:Comment/477382892019-10-17T16:54:11Z2019-10-17T16:54:23ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>OK, could base OS be a problem? VS 2017 is on Windows Server 2016 while VS 2019 image is on Windows Server 2019.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/477382892019-10-17T16:58:07Z2019-10-17T16:58:07ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>The OS version difference could very well be the reason. Is this something you might check from appveyor end? Nearly 50% performance drop is quite something.</p></div>belegdoltag:help.appveyor.com,2012-11-13:Comment/477382892019-10-17T17:01:15Z2019-10-17T17:01:15ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>Would be great having some sort of an easy repro, kind of something doing in a loop X times, if that possible at all? I don't think VS 2019 VMs are generally slower than VS 2016 as it's the same hardware, but there could be some particular operation that is slower.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/477382892019-10-17T17:07:55Z2019-10-17T17:07:55ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>You can repro it by building mame (MINGW variant) from belegdol/mame appveyor-debug branch, but this does take a while. The builds are consistently slower. If you look at<br>
<a href="https://ci.appveyor.com/project/startaq/mame/history">https://ci.appveyor.com/project/startaq/mame/history</a><br>
almost none of the builds over the last few days succeeded due to hitting 60 minutes.<br>
On the other hand, the few builds from the branch still carrying the old .appveyor.yml all finished within 35 minutes or so:<br>
<a href="https://ci.appveyor.com/project/startaq/mame/builds/28137399">https://ci.appveyor.com/project/startaq/mame/builds/28137399</a><br>
<a href="https://ci.appveyor.com/project/startaq/mame/builds/28138349">https://ci.appveyor.com/project/startaq/mame/builds/28138349</a><br>
<a href="https://ci.appveyor.com/project/startaq/mame/builds/28131126">https://ci.appveyor.com/project/startaq/mame/builds/28131126</a><br>
<a href="https://ci.appveyor.com/project/startaq/mame/builds/28131126">https://ci.appveyor.com/project/startaq/mame/builds/28131126</a></p></div>belegdoltag:help.appveyor.com,2012-11-13:Comment/477382892019-10-18T17:24:14Z2019-10-18T17:24:14ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>We've updated <code>Visual Studio 2019</code> image with some additional optimizations. It's faster now, at least we match the performance of VS 2017 image for now.</p>
<p>You can give it another try and let me know how it worked.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/477382892019-10-18T21:01:49Z2019-10-18T21:01:50ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>Thank you for looking into this! It doesn't appear that much faster unfortunately, only 3 minutes:<br>
<a href="https://ci.appveyor.com/project/belegdol/mame/builds/28215654">https://ci.appveyor.com/project/belegdol/mame/builds/28215654</a><br>
2017 build was 10 minutes slower than last time but still almost 10 minutes faster than 2019.<br>
Are the fixes you mentioned rolled out already? The latest update to 2019 image mentioned on <a href="https://www.appveyor.com/updates/">https://www.appveyor.com/updates/</a> was on 13 October.</p></div>belegdoltag:help.appveyor.com,2012-11-13:Comment/477382892019-10-18T21:07:41Z2019-10-18T21:07:41ZMSYS build on VS 2019 image is twice as slow as on VS 2017 one<div><p>There is no update record for that changes (yet). The change was mostly around disabling a bunch of services.</p>
<p>We will continue investigating what is slowing down your project on <code>Visual Studio 2019</code> image. It's interesting that we are getting an approximately the same time when running this image on Hyper-V or Azure. That could mean it's not the problem in hypervisor.</p></div>Feodor Fitsner