Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Build time : ESP32 vs Teensy (Read 3114 times)
Pascal Roobrouck
Junior Member
**
Offline


Posts: 19
Joined: Mar 3rd, 2017
Build time : ESP32 vs Teensy
Oct 16th, 2020 at 8:00am
Print Post  
When building a project with ESP32 / EP8266 MCU, I noticed that the build time (in fact the compilation time) takes much longer than when I use an Arduino or eg. a Teensy.
* Typical compile time ESP32 : 20 seconds
* Typical compile time Teensy : 2 seconds (note : first build may take 20s as well, subsequent builds are much faster)

I think the difference is because in the ESP case, all Espressif libs are being recompiled, even if they are not changed. With the Teensy it looks like only the source files which have been modified are being compiled.

Is there a solution to this ? Are there Visual Micro or Visual Studio settings which can improve this ?
For fast cycle unit testing, there is a big advantage for a 2s build vs 20s builds.

Thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build time : ESP32 vs Teensy
Reply #1 - Oct 16th, 2020 at 4:35pm
Print Post  
Hi

This isn't expected. Please follow the guide in the yellow box above.

Thanks
  
Back to top
WWW  
IP Logged
 
Pascal Roobrouck
Junior Member
**
Offline


Posts: 19
Joined: Mar 3rd, 2017
Re: Build time : ESP32 vs Teensy
Reply #2 - Oct 17th, 2020 at 6:50pm
Print Post  
Ok, so I took two basic example projects, included with each processor.
I then built them,
then change some unimportant parameter and build them again.

All four outputs are attached.

Timings measured are :
Teensy first build : 16.6s
Teensy next build : 3.6s
ESP32 first build : 30s
ESP32 next build : 12.7s

When looking at the verbose output, I see that also for the ESP32 it is using previously compiled file.
So I guess it is just due to the amount of libraries involved that the build takes a bit longer, which means there is probably nothing really wrong.

The ESP32 executable is also significantly larger (> 600K), even with only a simple example. (I have the feeling that FreeRTOS is being included, whether you use it or not).

Anyway, thanks for your support.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build time : ESP32 vs Teensy
Reply #3 - Oct 17th, 2020 at 8:21pm
Print Post  
That's right. The actual build times are shown in the output. For the teensy is uploads to the board after compile so actually it is built and can be used before the messages stop.

Code
Select All
Program MeasureBuildTimeTeensy size: 9 364 bytes (used 4% of a 262 144 byte maximum) (1,99 secs) 



The ESp tool chain is slower than the Arduino and Teensy. A few months ago the Teensy toolchain was the slowest but had a great boost recently.

It might be a good idea to keep your Visual Micro version up to date. That also often includes some efficientiency gains and important fixes. However, doesn't look like it needs fixing.

How long does the Arduino IDE take to compile the same ESP project a 2nd time. There is no need to make any changes to check how fast 2nd build is.



  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint