想问一下esp32的FPU是否默认开启,对比了一下stm32F4,感觉不是太理想

PickledCabbage
Posts: 5
Joined: Fri Dec 24, 2021 9:40 am

想问一下esp32的FPU是否默认开启,对比了一下stm32F4,感觉不是太理想

Postby PickledCabbage » Sat May 06, 2023 2:28 am

测试手里MCU的浮点性能,测试代码如下:
  1. float a;
  2.     for (uint32_t i = 0; i < 1000000; i++)
  3.     {
  4.         a = 123.4 * 456.7;
  5.     }
通过开始前、结束后的gpio置位,用逻辑分析仪读取时间,测试时间省略小数点后,测试结果如下:

stm32f407zgt6 @168MHz 关闭FPU 119ms
stm32f407zgt6 @168MHz 开启FPU 24ms
esp32 c3 @160MHz 38ms
esp32 s3 @160MHz 50ms
esp32 s3 @240MHz 33ms

weili_an
Posts: 18
Joined: Sat Feb 05, 2022 8:16 am

Re: 想问一下esp32的FPU是否默认开启,对比了一下stm32F4,感觉不是太理想

Postby weili_an » Mon May 08, 2023 10:48 am

同问!

Who is online

Users browsing this forum: No registered users and 33 guests