The macOS performance deficit

By: I_vs (ivs.delete@this.anon.com),
Room: Moderated Discussions
Gabriele Svelto (gabriele.svelto.delete@this.gmail.com) on November 23, 2020 5:36 am wrote:
> I_vs (ivs.delete@this.anon.com) on November 23, 2020 4:58 am wrote:
> > What is the build time on native macOS?
>
> I haven't done a non-incremental build on a mac in a long time, on my not-really-recent
> MacBook Air a full clobber build takes over two hours IIRC.
>
> > Is it possible that what you measure here is the impact
> > of the macOS running as a guest (which has never really been an intended use case)?
>
> I disable paravirtualization for both operating systems in the test so neither had any special benefit.

I just did my own test. Since I couldn't get Firefox dependencies to install correctly on my Mac ( ./mach bootstrap bugs out), I tried building LLVM. I used my Mac laptop (16" MacBook Pro) vs. a similarly configured cloud HPC instance from my workplace (a major university). Here are the specs:

Mac:
- 8-core i9-9980HK (2.4Ghz base clock)
- 16GB DDR4 2667 Mhz
- Xcode 12.2
- macOS 11.0.1

Linux:
- 8-core VM via Xeon Gold 6126 (12 cores, 2.4Ghz base clock)
- 32GB DDR4 2667 Mhz
- Clang 10.0
- Ubuntu 20.04

As you can see, not a 100% match, but ok for an approximate comparison. If anything, the cloud VM should be more performant due to higher clock, higher cache and the fact that it's a HPC CPU. After all, we are comparing a 2kg laptop on my desk to a rack-mounted HPC server in a climate-controlled facility. Xcode 12 should be using LLVM 10 internally, so the compiler should be more or less comparable as well.

I have grabbed the latest revision from llvm-project and built it with `cmake -G "Unix Makefile" ../llvm; make -j 8`. Here are the results:

Mac:
Executed in 22.49 mins fish external
usr time 139.15 mins 155.00 micros 139.15 mins
sys time 7.41 mins 631.00 micros 7.41 mins

Linux:
real 22m3.026s
user 151m41.426s
sys 9m20.096s

< Previous Post in ThreadNext Post in Thread >
Thread (393 posts)
TopicPosted ByPosted
The macOS performance deficitGabriele Svelto
  The macOS performance deficitrpg
    The macOS performance deficitChester
    It's not really a fair fightanon2
      It's not really a fair fightGabriele Svelto
        WSLanon
          WSLkonrad schwarz
            WSLMichael S
              WSLKonrad Schwarz
                WSLMichael S
                  Cygwin vs MSYSKonrad Schwarz
                    Cygwin vs MSYSMichael S
                      Cygwin vs MSYSKonrad Schwarz
                      Cygwin vs MSYSHoward Chu
          WSLWindowsExperience
            WSLHoward Chu
        WindowsChester
          WindowsMichael S
            WindowsHoward Chu
              WindowsChester
                WindowsMichael S
                  WindowsChester
                    WindowsMichael S
                      Windows and kernel timeChester
                        Windows and kernel timeEtienne Lorrain
                          Windows and kernel timeAndrey
                            Windows and kernel timeMichael S
                              Windows and kernel timeJames
                                Windows and kernel timeanon3
                                  Windows and kernel timeBrendan
                                    Windows and kernel timeanon3
                                      Windows and kernel timeBrendan
                                  Windows and kernel timeGionatan Danti
                              Windows and kernel timeAndrey
                                Windows and kernel timeSimon Farnsworth
                                  Windows and kernel timeanon
                                  You also avoid bus contentionCarson
                                    You also avoid bus contentionDavid Hess
                                      You also avoid bus contentionCarson
                                        You also avoid bus contentionDavid Hess
                                Windows and kernel timeKonrad Schwarz
                            Windows and kernel timeDavid Hess
                          Windows and kernel timeLinus Torvalds
                            Windows and kernel timeGionatan Danti
                              Windows and kernel timeLinus Torvalds
                                Windows and kernel timeBrendan
                                  Windows and kernel timeDoug S
                                    Windows and kernel timeBrendan
                                      I read the profile wrongChester
                                      Windows and kernel timeDoug S
                                Windows and kernel timeJörn Engel
                                  Windows and kernel timeLinus Torvalds
                                Thanks for the explanation (NT)Gionatan Danti
                            Windows and kernel timeGabriele Svelto
                            Windows and kernel timeEtienne Lorrain
                              Windows and kernel timeAdrian
        It's not really a fair fightHoward Chu
  The macOS performance deficitkonrad schwarz
    The macOS performance deficitJon Masters
      The macOS performance deficitsoftware_engineer
        The macOS performance deficitMaynard Handley
          The macOS performance deficitanon2
            The macOS performance deficitMaynard Handley
              The macOS performance deficitanon2
                The macOS performance deficitMaynard Handley
                  The macOS performance deficitanon2
            The macOS performance deficitGabriele Svelto
              The macOS performance deficitUngo
                The macOS performance deficitGabriele Svelto
                The macOS performance deficitanon2
                  The macOS performance deficitUngo
                    The macOS performance deficitanon2
                      The macOS performance deficitUngo
                        The macOS performance deficitanon2
      The macOS performance deficitLinus Torvalds
        The macOS performance deficitgallier2
          The macOS performance deficitLinus Torvalds
        The macOS performance deficitJon Masters
        Microsoft LinuxPaul
          Microsoft LinuxMichael S
          Microsoft Linuxm
          Microsoft LinuxDummond D. Slow
          Microsoft LinuxRobert Williams
            Microsoft Linuxm
              Microsoft LinuxMichael S
                Microsoft Linuxm
          Microsoft Linuxjuanrga
            Microsoft Linuxm
              Microsoft Linuxgpd
      The macOS performance deficitGabriele Svelto
        The macOS performance deficitRicardo B
          The macOS performance deficitGionatan Danti
            The macOS performance deficitRicardo B
              The macOS performance deficitJacob Marley
                The macOS performance deficitRicardo B
                  The macOS performance deficitGionatan Danti
            The macOS performance deficitEtienne Lorrain
              The macOS performance deficitGionatan Danti
  The macOS performance deficitI_vs
    The macOS performance deficitGabriele Svelto
      The macOS performance deficitI_vs
        What is the disk performance of each system? (NT)Anon
          What is the disk performance of each system?I_vs
        The macOS performance deficitDummond D. Slow
          The macOS performance deficitI_vs
            The macOS performance deficitJukka Larja
            The macOS performance deficitHoward Chu
              The macOS performance deficitI_vs
            The macOS performance deficitAdrian
          The macOS performance deficitMichael S
        The macOS performance deficitGabriele Svelto
  The macOS performance deficitDoug S
    The macOS performance deficitLinus Torvalds
      The macOS performance deficitm
        Process Creation and MacOSRob Thorpe
          Process Creation and MacOSNksingh
            Process Creation and MacOSFoo_
              Process Creation and MacOSnksingh
            Interesting, looks like I was wrong on Windows tooRob Thorpe
              I meant to put (NT) in that title. And this one. (NT)Rob Thorpe
          Process Creation and MacOSLouis Gerbarg
            Process Creation and MacOSGabriele Svelto
              Process Creation and MacOSLouis Gerbarg
                Process Creation and MacOSGabriele Svelto
                  Process Creation and MacOSLouis Gerbarg
                  Process Creation and MacOSgallier2
                    Process Creation and MacOSGabriele Svelto
                    Process Creation and MacOSFoo_
            That's informative (NT).Rob Thorpe
          Process Creation and MacOSnoko
    The macOS performance deficitGabriele Svelto
      The macOS performance deficitanon2
      The macOS performance deficitI_vs
        The macOS performance deficitMaynard Handley
          The macOS performance deficitanon2
            The macOS performance deficitMaynard Handley
              The macOS performance deficitanon2
                The macOS performance deficitMaynard Handley
                  The macOS performance deficitanon2
                    The macOS performance deficitBrett
                      The macOS performance deficitanon2
                  The macOS performance deficitJörn Engel
              The macOS performance deficitGionatan Danti
          The macOS performance deficitI_vs
            The macOS performance deficitanon2
    The macOS performance deficitAndrey
  The macOS performance deficitBrett
    The macOS performance deficitMaynard Handley
    Sour grapes (NT)anon2
    The macOS performance deficitGabriele Svelto
    The macOS performance deficitAndrey
      The macOS performance deficitBrett
        The macOS performance deficitAndrey
          The macOS performance deficitMaynard Handley
            The macOS performance deficitAndrey
              The macOS performance deficitrwessel
              The macOS performance deficitJames
            The macOS performance deficitGabriele Svelto
          The macOS performance deficitBrett
            The macOS performance deficitDummond D. Slow
              The macOS performance deficitBrett
                The macOS performance deficitMaynard Handley
                  The macOS performance deficitJukka Larja
                    The macOS performance deficitMaynard Handley
                      The macOS performance deficitDummond D. Slow
                      The macOS performance deficitsoftware_engineer
                        The macOS performance deficitMaynard Handley
                          The macOS performance deficitJukka Larja
                            The macOS performance deficitMaynard Handley
                              The macOS performance deficitJukka Larja
                          The macOS performance deficitsoftware_engineer
                            The macOS performance deficitMaynard Handley
                      The macOS performance deficitJukka Larja
                      The macOS performance deficitJames
                        The macOS performance deficitFoo_
                          The macOS performance deficitFoo_
                            The macOS performance deficitMaynard Handley
            The macOS performance deficitanon2
              The macOS performance deficitBrett
                The macOS performance deficitanon2
            The macOS performance deficitAndrey
              The macOS performance deficitBrett
                The macOS performance deficitLinus Torvalds
                  The macOS performance deficitBrett
                    The macOS performance deficitanon2
                      The macOS performance deficitBrett
                        The macOS performance deficitGabriele Svelto
                          The macOS performance deficitBrett
                            The macOS performance deficitMaynard Handley
                              The macOS performance deficitanon3
                              The macOS performance deficitGionatan Danti
                                The macOS performance deficitDummond D. Slow
                                  The macOS performance deficitMaynard Handley
                                    The macOS performance deficitGionatan Danti
                                      The macOS performance deficitMaynard Handley
                                        The macOS performance deficitBrett
                                        The macOS performance deficitGionatan Danti
                                          The macOS performance deficitMaynard Handley
                                            The macOS performance deficitGionatan Danti
                                          The macOS performance deficitUngo
                                            The macOS performance deficitGionatan Danti
                                              The macOS performance deficitDoug S
                                                The macOS performance deficitGionatan Danti
                                                  The macOS performance deficitDoug S
                                                    The macOS performance deficitGionatan Danti
                                                      The macOS performance deficitDoug S
                                                        The macOS performance deficitDummond D. Slow
                                                          The macOS performance deficitEtienne Lorrain
                                                        The macOS performance deficitGionatan Danti
                                                    The macOS performance deficitDummond D. Slow
                                                    SDRGJHI4 ?Michael S
                                                      SDRGJHI4 ?Doug S
                                                      SDRGJHI4 ?Ungo
                                              The macOS performance deficitUngo
                                                The macOS performance deficitRicardo B
                                          The macOS performance deficitMichael S
                                            4xMichael S
                                              4xDoug S
                                              4xRicardo B
                                                4xAnon
                                                  4xAnon
                                                  4xAndrey
                                                  4xRicardo B
                                                    4xAnon
                                                      4xRicardo B
                                                        4xAnon
                                                          4xRicardo B
                                                            4xAnon
                                              python v C/C++Michael S
                                                hw mattersMichael S
                                                  hw mattersFoo_
                                                    hw mattersMichael S
                                                      SSD history mattersAdrian
                                                  hw mattersRicardo B
                                                    hw mattersMichael S
                                                      hw mattersRicardo B
                                                  hw mattersGionatan Danti
                                                    hw mattersMichael S
                                                      hw mattersGionatan Danti
                                                        hw mattersMichael S
                                                          hw mattersGionatan Danti
                                                            hw mattersMichael S
                                                              Win7 Home vs ProMichael S
                                                                Win7 Home vs ProGionatan Danti
                                                for MSVC usersMichael S
                                            The macOS performance deficitGionatan Danti
                                              The macOS performance deficitJukka Larja
                                                The macOS performance deficitRicardo B
                                                  The macOS performance deficitJukka Larja
                                                    The macOS performance deficitGionatan Danti
                                                      The macOS performance deficitJukka Larja
                                                        The macOS performance deficitGionatan Danti
                                                      The macOS performance deficitUngo
                                                        The macOS performance deficitJukka Larja
                                                          The macOS performance deficitMichael S
                                                            The macOS performance deficitGionatan Danti
                                                              The macOS performance deficitMichael S
                                                                The macOS performance deficitGionatan Danti
                                                                  The macOS performance deficitMichael S
                                                        The macOS performance deficitGionatan Danti
                                                          The macOS performance deficitMichael S
                                                          The macOS performance deficitUngo
                                                            The macOS performance deficitanon3
                                                              The macOS performance deficitGionatan Danti
                                                            The macOS performance deficitGionatan Danti
                                                              The macOS performance deficitUngo
                                                                The macOS performance deficitLinus Torvalds
                                                                  The macOS performance deficitUngo
                                                                  The macOS performance deficitGionatan Danti
                                                                    The macOS performance deficitLinus Torvalds
                                                                      The macOS performance deficitGionatan Danti
                                                                        The macOS performance deficitLinus Torvalds
                                                                          Linux writebackGionatan Danti
                                                                            Linux writebackLinus Torvalds
                                                                              Good points, thanks (NT)Gionatan Danti
                                                                The macOS performance deficitRicardo B
                                                            The macOS performance deficitRicardo B
                                                              The macOS performance deficitRicardo B
                                                              The macOS performance deficitLinus Torvalds
                                                                The macOS performance deficitRicardo B
                                                                  Ext4 performance deficitBrett
                                                                    Ext4 performance deficitRicardo B
                                                                      Ext4 performance deficitBrett
                                                                        Ext4 performance deficitBrett
                                                                        Ext4 performance deficitGionatan Danti
                                                                          Ext4 performance deficitBrett
                                                                            Ext4 performance deficitanonymou5
                                                                            Ext4 performance deficitGionatan Danti
                                                                              Ext4 performance deficitBrett
                                                                                Ext4 performance deficitGionatan Danti
                                                                                  Ext4 performance deficitBrett
                                                                                    Ext4 performance deficitanon2
                                                                                  Ext4 performance deficitUngo
                                                                                    Ext4 performance deficitBrett
                                                                                      Ext4 performance deficitanonymou5
                                                                                        Ext4 performance deficitBrett
                                                                                          Ext4 performance deficitMichael S
                                                                                          Ext4 performance deficitanonymou5
                                                                                          Ext4 performance deficitLinus Torvalds
                                                                                            Ext4 performance deficitMichael S
                                                                                              Ext4 performance deficitBrett
                                                                                            Ext4 performance deficitanon
                                                                                            Ext4 performance deficitFoo_
                                                                                              Ext4 performance deficitrwessel
                                                                                            Ext4 performance deficitBrett
                                                                                              Ext4 performance deficitBrett
                                                                                                Ext4 performance deficitanon
                                                                                                  Ext4 performance deficitBrett
                                                                                                    Ext4 performance deficitMichael S
                                                                                                      Ext4 performance deficitLinus Torvalds
                                                                                                      Ext4 performance deficitBrett
                                                                                                        Ext4 performance deficitMichael S
                                                                                      Ext4 performance deficitAdrian
                                                                                        Ext4 performance deficitanon
                                                                                          Ext4 performance deficitAdrian
                                                                                    Ext4 performance deficitGionatan Danti
                                                                            Ext4 performance deficitJörn Engel
                                                                    Serving NTFS?Michael S
                                                            The macOS performance deficitgallier2
                                    The macOS performance deficitAndrey
                                      The macOS performance deficitUngo
                                        The macOS performance deficitMaynard Handley
                                          The macOS performance deficitUngo
                                            The macOS performance deficitMaynard Handley
                                        The macOS performance deficitAndrey
                                          The macOS performance deficitGionatan Danti
                                          The macOS performance deficitAnne O. Nymous
                                        The macOS performance deficitRicardo B
                                          The macOS performance deficitUngo
                                            The macOS performance deficitRicardo B
                                            The macOS performance deficitDoug S
                                              The macOS performance deficitMatt Sayler
                                              The macOS performance deficitGionatan Danti
                                              The macOS performance deficitLouis Gerbarg
                                                The macOS performance deficitDoug S
                                      The macOS performance deficitMaynard Handley
                                        The macOS performance deficitAndrey
                                          I take it no one here has any real storage admin experienceDoug S
                                            I take it no one here has any real storage admin experienceGionatan Danti
                                            I take it no one here has any real storage admin experienceAndrey
                                            I take it no one here has any real storage admin experienceDavid Hess
                                              I take it no one here has any real storage admin experienceDoug S
                                                I take it no one here has any real storage admin experienceDavid Hess
                                        The macOS performance deficitSimon Farnsworth
                                        The macOS performance deficitRicardo B
                        The macOS performance deficitanon2
                  The macOS performance deficitDoug S
                    The macOS performance deficitLinus Torvalds
                      The macOS performance deficitHoward Chu
                        The macOS performance deficitLinus Torvalds
                          The macOS performance deficitrwessel
                          The macOS performance deficitanon
                          The macOS performance deficitHoward Chu
                            The macOS performance deficitLinus Torvalds
                              The macOS performance deficitBrett
                                The macOS performance deficitBrett
                                  The macOS performance deficitLinus Torvalds
                                    The macOS performance deficitPatrick Schlüter aka gallier2
                                    The macOS performance deficitDoug S
                                      The macOS performance deficitAdrian
                                        The macOS performance deficitLinus Torvalds
                                          The macOS performance deficitAdrian
                                    The macOS performance deficitBrett
                                The macOS performance deficitDavid Hess
                              BitKeeperanon
                                BitKeeperanon
                                charlatansanon2
                                  charlatansMichael S
                                    charlatansanon2
                                      charlatansrwessel
                                      version controlMichael S
                                        version controlLinus Torvalds
                                          Cheap commits are a huge git winCarson
                                        version controlanon2
                                BitKeeperLinus Torvalds
                                  BitKeeperanon
                                    BitKeeperanonymou5
                                    Larry? (NT)anon2
                                      Larry McVoy, the lead developer of bitkeeper (NT)Carson
                              The macOS performance deficitDoug S
                            The macOS performance deficitrwessel
                              The macOS performance deficitanon
                        LMDB transactionsanon
                          LMDB transactionsHoward Chu
                            LMDB transactionsanon
                              LMDB transactionsHoward Chu
                                LMDB transactionsanon
                                  LMDB transactionsHoward Chu
                                    LMDB transactionsHoward Chu
                                      LMDB transactionsAnon
                        Fossil SCM (SQLite based) works pretty well (NT)anonymous2
                      The macOS performance deficitAnon