Speed of compilation, old vs new computer

A question for those that have purchased a new computer in the last year or so to replace an old computer.

Did it make a noticeable difference to the C++ compilation speed?

My computer is coming up to its 15th birthday. It's a 3GHz i5, 16GB mem, SSD (various upgrades as disks died). It's still good enough for 99% of every day tasks, but annoyingly slow for C++ compilation.

Are modern PC really that much faster for compilation tasks or has there been little improvement over the last few years?

Might be a virus scanner that scans all those newly generated files?
What is your top 10 tasks when running the compiler?

All Arduino related.
I see at least 15 processes grouped under the Arduino IDE banner in Task Manager.
CPU usage sits at 40% (4 cores) for the bulk of the compilation time.
Drops down to 10% when idle.

My PC compiles BLINK in +- 3seconds , below is my PC specs , 64 bit , but its not 15 years old.

image

I'm running a Raspberry Pi 4 w/2G RAM and my Arduino 1.8.19 compiler runs fast, perhaps the 4-core AMD is more suited than Intel cause it runs at less than 2GHz and cost less than $100 with PS and cables.

The RPi 5 is out. I don't -need- one and going from 3A USB power to 5A will do to my electric bill that dropped almost half when I got rid of the gaming box.

For compiling for the 328 Arduino boards, I have not seen enough elapsed time during on my old computers to notice any difference with the newer computers.

However, in Visual Studio projects, my old computer from about early 2017 with the ram upgraded to 16GB in early 2021 took over a minute to create new C# projects for my college programming class assignments. This was too slow and I bought a pair of new computers in March 2022. The regular laptop with 16GB RAM cut the time down to about 30 seconds. The special order HP with 32GB RAM completes this same task in about 10 seconds.

It really depends on the specs of the new computer for how well it will compile programs. Base spec computers may be equally slow or worse. The mid-grade models are likely to be impressive in their performance. Getting something better than midrange will save you significant processing time.

So, how much time would you like to save?

As much as possible.
Currently a basic UDP client and server demo program for an ESP32 takes about a minute to compile.
Effectively half my day is spend waiting for the compiler.

Picked a random example from the 1.8.19 IDE: AsyncUDPClient.
Compiled it for a random ESP32: ESP32S2
Took 23 seconds first time and 8 sec the second time.
PC, Win11, i9-12900, 32G ram, SSD980 pro.
Leo..

1 Like

My esp8266 web server takes about 50 seconds for the first compile. The second one takes about 6 seconds. I assume the second one is due to the files being in cache and the library routines no being recompiled due to not being changed. I am on 1.8.19. (I occasionally try 2.x versions but they still have too many annoyances for me.)

Ten year old I7, 16G ram, SSD

1 Like

Are you running the arduino IDE app or the online editor?

IDE

Its's mid 2024 and I finally bought a new computer to replace my 2010 era Intel i5.
It's a Ryzen 7 7700X 8-Core Processor, 4501 Mhz with 64 GB of RAM.

A clean build of a small ESP32 project in PlatformIO that previously took 118 seconds now takes 11 seconds, so a ten fold improvement.

The other impressive thing is the thermal management - the fans hardly make any noise.
Back in 2010 fast PCs typically sounded like vacuum cleaners.

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.