Does anyone have numbers on how much faster linux compiles code compared to windows? I’m considering setting up a linux enviroment for building my project faster.
But just wanted to get a hint of how much an improvement it is? is it 2x? 5x? 10x?
I’m not sure anyone has hard numbers on how much faster Linux is than Windows at compiling, but I have seen Windows take around 5-10x longer to compile, which is embarrassing when introducing people on Windows to Particle.
Setting up a Linux environment for local Particle Development is certainly worth it.
If you’re looking for a purely command-line solution I would recommend trying neopo, a tool I maintain that uses the same dependency system as Workbench.
Particularly I wouldn’t expect to be that much different on Windows, but my 4th Gen Intel (i7-4810MQ) compiles a small project from scratch (DeviceOS + App) in 3m4s on native Linux (no VM).
But as developing for more firmware level stuff goes, Linux is normally a easier environment to use because all the tools are there!
I haven’t use the Windows Linux subsystem yet, but I believe you would probably get reasonable experience there too.
Windows took 4 minutes and 30 seconds to compile device OS and application
Linux using WSL2 took 2 minutes and 30 seconds compile.
Both done with empty project. I havn’t tested with application code and with compile without cleaning the project, but it certainly feels a lot faster.