Compile time vs CPU

tachin
Posts: 17
Joined: Sun Feb 02, 2020 1:02 am

Compile time vs CPU

Postby tachin » Fri Feb 17, 2023 12:04 am

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

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Compile time vs CPU

Postby ESP_Sprite » Fri Feb 17, 2023 6:42 am

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.

tachin
Posts: 17
Joined: Sun Feb 02, 2020 1:02 am

Re: Compile time vs CPU

Postby tachin » Fri Feb 17, 2023 7:15 am

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

tachin
Posts: 17
Joined: Sun Feb 02, 2020 1:02 am

Re: Compile time vs CPU

Postby tachin » Tue Aug 08, 2023 12:13 am

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:

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Compile time vs CPU

Postby ESP_Sprite » Tue Aug 08, 2023 1:55 am

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.

Who is online

Users browsing this forum: No registered users and 51 guests