Compiler Optimization Levels
In this study, we aim to find out the impact of varying compiler optimization levels (O3, Of, and Os) on the performance of TFLM models.
We use FC and CNN models deployed on the NUCLEO-L4R5ZI board for our experiments.
Model Type:
Models
Error
Execution Time
Flash Size
RAM Usage
Summary
-
Model Correctness: The optimization levels do not change the correctness of the models.
-
Execution Time: The O3 and Of are the same and faster than Os.
-
Flash Size: The flash size of Os is slightly better than O3 and Of.
-
RAM Usage: The required RAM of all optimization levels is almost the same.
-
Conclusion: The O3 and Of optimization levels are similar and better than Os in terms of execution time. If the flash size is a concern, Os might be slightly better than O3 and Of.
/params_MACs.png#only-light)
/dark/params_MACs.png#only-dark)
/params_MACs.png#only-light)
/dark/params_MACs.png#only-dark)
/error.png#only-light)
/dark/error.png#only-dark)
/error.png#only-light)
/dark/error.png#only-dark)
/exe.png#only-light)
/dark/exe.png#only-dark)
/exe.png#only-light)
/dark/exe.png#only-dark)
/flash.png#only-light)
/dark/flash.png#only-dark)
/flash.png#only-light)
/dark/flash.png#only-dark)
/ram.png#only-light)
/dark/ram.png#only-dark)
/ram.png#only-light)
/dark/ram.png#only-dark)