Performance evaluation of trigonometric functions [performance] DSP library, MDK5 of AC5, AC6, IAR Embedded Studio and the

Test conditions:
1, the highest level of speed optimization IAR8.30 open.
2, MDK5.27 official version AC5 open 3 the highest level of optimization, on-time optimization, test the C standard library and library micro MicroLib two kinds.
3, MDK5.27 official version AC6 open rate the highest level of optimization, testing and micro-C standard library library MicroLib two kinds.
4, Embedded Studio4.30 version of the GCC open the highest level of optimization, open the C library using Fast mode.
5, Embedded Studio4.30 Edition uses the highest level of optimization CLANG open, open the C library using Fast mode.
6, DSP CMSIS library using the latest software packages inside V5.6.0.
7, the test units using DWT clock cycle counter.
8, DSP library functions arm_sin_f32 test, IAR, MDK and ES both the C library respective test strip. Executed 10 times, averaging.
Note, IAR, MDK and ES has its own C library implementation.

A routine for all evaluation STM32H7: MDKIARES-USART.rar . 1, MDK5 AC5 MicroLib (. 1) library function the DSP 73 performs the first clock cycle, after repeatedly performed are about 55 clock cycles. Sin function (2) microcoulombs 259, is repeatedly performed after about 197 clock cycles. 2, C MDK5 AC5 Lib (. 1) library function the DSP 71 performs the first clock cycle, after repeatedly performed are about 55 clock cycles. Sin function (2) C library 264, is repeatedly performed after about 200 clock cycles. 3, MDK5 AC6 MicroLib












(1) DSP library function 81 first execution clock cycle, then are repeatedly performed about 58 clock cycles.
(2) C sin function library, using the DWT clock cycle counter can not be measured properly.

. 4, C MDK5 AC6 Lib
(. 1) library function the DSP 74 performs the first clock cycle, after repeatedly performed are about 58 clock cycles.
(2) C sin function library, using the DWT clock cycle counter can not be measured properly.

. 5, the IAR
(. 1) library function the DSP 83 performs the first clock cycle, after repeatedly performed are about 58 clock cycles.
Sin function (2) C library 217, is repeatedly performed after about 194 clock cycles.

. 6, the GCC Embedded Studio
(. 1) library function the DSP 79 performs the first clock cycle, after repeatedly performed are about 49 clock cycles.
Sin function (2) C library 140, is repeatedly performed after about 129 clock cycles.

. 7, Embedded Studio CLANG
(. 1) library function the DSP 80 performs the first clock cycle, after repeatedly performed are about 59 clock cycles.
(2) sin 141 C library function, is repeatedly performed after about 129 clock cycles.


AC5 open MDK5 optimization level: the
 

level of optimization AC6 open MDK5 of:
 

MDK using micro-library and C library check mark by this switch:
 

the level of optimization IAR opened
 

Embedded Studio optimization level and choose Fast mode C library
 
 


summary:
1, DSP library the trigonometric calculations on the MDK, IAR ES and performance are similar.
2, when using the MDK AC6, use is DWT cycle counter can not be measured normal C library to do trigonometric execution time, time is very short, paresthesia, so temporarily Compare.
3, C library trigonometric performance MDK AC5 and IAR almost, trigonometric functions and performance of the ES relatively strong, a lot stronger than the MDK and IAR.
4, the current test only a sin function, followed by energy to do a comprehensive comparison of trigonometric functions.

Guess you like

Origin www.cnblogs.com/armfly/p/11824171.html
Recommended