You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<
8000
div id="js-flash-container" class="flash-container" data-turbo-replace>
Doing some testing, I have seen that using -O2 instead of -Os for boards that have sufficient flash memory can be quite helpful.
Some examples:
On A PyPortal, using the script from https://pastebin.com/BAUS82X9:
With -Os
Running a ulab sample program on an ItsyBitsy M4 Express:
With -Os
Computing the RMS value of 100 numbers
traditional : 2.612ms [result=3535.843611]
ulab, with ndarray, some implementation in python : 0.254ms [result=3535.853624]
ulab only, with list : 0.314ms [result=3535.854340]
ulab only, with ndarray : 0.065ms [result=3535.854340]
With -O2
Computing the RMS value of 100 numbers
traditional : 2.150ms [result=3535.843611]
ulab, with ndarray, some implementation in python : 0.217ms [result=3535.853624]
ulab only, with list : 0.256ms [result=3535.854340]
ulab only, with ndarray : 0.056ms [result=3535.854340]
An improvement of 15%-18%
These results would indicate that being able to choose a higher optimization level for boards that
have more memory would be worthwhile.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Doing some testing, I have seen that using -O2 instead of -Os for boards that have sufficient flash memory can be quite helpful.
Some examples:
On A PyPortal, using the script from https://pastebin.com/BAUS82X9:
With -Os
With -O2
So, improvements from 30% to 54%
To test displayio, I ran a test that draws rectangles in a loop.
With -Os
With -O2
An improvement of about 10%
Running a ulab sample program on an ItsyBitsy M4 Express:
With -Os
With -O2
An improvement of 15%-18%
These results would indicate that being able to choose a higher optimization level for boards that
have more memory would be worthwhile.
The text was updated successfully, but these errors were encountered: