当前位置:   article > 正文

【转】ESP32 性能对比测试(基于MicroPython)_esp32 micropython效率

esp32 micropython效率

参与测试的开发板/芯片:

  • micro:bit
  • PYB Nano
  • PYBV10
  • ST Nucleo_F091RC
  • ST Nucleo_F411RE
  • STM32L476DISC
  • STM32F7DISC
  • ST Nucleo_H743ZI
  • ESP8266
  • ESP32 WROVER

MicroPython 版本

microbit

  • 1.9.2

ESP32 Lobo

  • 3.20.20

All other device

  • 1.9.4-479

测试项

  • Integer addition 1000,000 times
  • Float addition 1000,000 times
  • Integer multiplication 1000,000 times
  • Float multiplication 1000,000 times
  • Integer division 1000,000 times
  • Float division 1000,000 times
  • 1000 digit Pi calculation
  • 5000 digit Pi calculation
  • 100,000 digit Pi calculation

测试结果

MCUFreqInt AddFloat AddInt MulFloat MulInt divFloat DivPi:1000Pi:5000Pi:100000
microbitnRF5182216M61.8978.0371.5981.6067.95106.8710.98--
Nucleo_F411STM32F41196M5.8613.966.0714.026.0714.071.2519.03-
PYBV10STM32F405168M3.447.933.567.973.568.130.6710.8-
Nucleo_L432KCSTM32LM3232M20.8646.3521.4946.5521.9546.712.6049.44-
STM32L476DISCSTM32L47680M8.5918.348.9918.428.9318.491.3721.45-
STM32F7DISCSTM32F746192M1.935.162.455.082.125.390.215.424276.47
Nucleo_H743STM32H743400M0.861.960.941.980.912.070.114.661004.32
ESP8266ESP826680M15.5518.3417.9618.9216.9621.462.0940.22-
ESP32ESP32240M2.614.422.794.422.724.660.578.41-
ESP32 psRAMESP32240M3.377.963.5517.8815.258.320.6718.0112394.50
K210K210C8.198.768.238.747.758.760.122.821480.96
  • 结果单位为 秒
  • 秒数越低,计算速率越高,该项性能越强

原文地址

  1. github:shaoziyang/micropython_benchmarks
  2. MicroPython 性能测试数据

By The Way

据说 MicroPython 库的计算效率不如 Arduino,可以参见的 myastrotong 知乎的测试

相关问题

  1. ESP32 性能对比测试
  2. ESP32 与 STM32 性能对比测试
  3. ESP32 和 STM32 哪个强?
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/246467
推荐阅读
相关标签
  

闽ICP备14008679号