Page 1 of 1

Compile time vs CPU

Posted: Fri Feb 17, 2023 12:04 am
by tachin
Hi all,
With my (stock) i7 3770, 16 GB and Samsung ssd 980 pro takes 47 seconds to compile and 88 seconds to recompile (changes board settings) I'm thinking of buying an i9 or whatever to speed this up
I compile almost hundreds of times a day and for me it's a pain in the ass!!

I wonder if you guys can share your benchmark to to clarify if a better cpu is worthwhile
  • Win10 pro 64
    Arduino 1.8.9
    arduino-esp32 2.0.6
    "BlinkRGB" sketch under ESP32 examples
Thanks

Re: Compile time vs CPU

Posted: Fri Feb 17, 2023 6:42 am
by ESP_Sprite
My setup is somewhat different, but it may give an indication. I have an i7-7600U laptop, which is about 50% slower than your CPU (because mine is an ultra-low power version... hence the U and the shitty performance). I run Linux and ESP-IDF, and a full compile of the 'hello world' is 54 seconds there; a recompile is 4 seconds. I think Arduino actually delivers a bunch of libraries in binary form, so my 'full compile' compiles more than yours.

Suggest you check if your virus scanner (Windows Defender or something) is interfering with the compilation process, if so make sure to exclude the Arduino/ESP-IDF install from that if you can. Stuff like that has been known to cause huge slowdowns before.

Re: Compile time vs CPU

Posted: Fri Feb 17, 2023 7:15 am
by tachin
4 damn secs... I would kill for that

Anyway seems like arduino in linux it's a lot faster than windows as this video shows , sadly in my case, installing Linux is not an option and still asking if this can be solved with better hardware

Image

Re: Compile time vs CPU

Posted: Tue Aug 08, 2023 12:13 am
by tachin
I've been looking forward to updating this thread for some time, I finally upgraded my rig to a 13900k and Samsung 990 pro, I've gone from 47 secs to 2 secs to compile, and 88 secs to 6 secs at full compile with sketches much larger than the initial test :mrgreen:

Re: Compile time vs CPU

Posted: Tue Aug 08, 2023 1:55 am
by ESP_Sprite
Nice:) you went from 4 to 24 cores there, and compiling can be parallelized pretty well, so I'm not at all surprised by the speed improvements.