Code Monkey home page Code Monkey logo

arduino_prime_number_benchmark's Introduction

Arduino_prime_number_benchmark

A single prime number benchmark sketch.

forked from : https://github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P

Modifications :

  • runs out of the box on LGT8Fx boards @ 16MHz using default Arduino Nano core.
  • runs out of the box on LGT8Fx boards @ 32MHz and 16MHz using Larduino_HSP core.
  • runs out of the box on old Arduino boards that does not have GUID
  • runs out of the box on non AVR boards

Calculate 10,000 prime numbers :

  • ATmega328p @ 16MHz : 121 seconds (Duemilanove made in Italy)

  • ATmega328p @ 16MHz : 121 seconds (Uno + CH340 made in China)

  • ATmega32u4 @ 16MHz : 120 seconds (Leonardo made in Italy)

  • ATmega32u4 @ 16MHz : 120 seconds (Leonardo Micro made in China)

  • ATmega328p @ 8MHz : 242 seconds (Mini pro 3.3V made in China)

  • LGT8F328p @ 16MHz : 118 seconds using default Arduino Nano stuff (old bootloader)

  • LGT8F328p @ 16MHz : 118 seconds using Larduino_HSP

  • LGT8F328p @ 32MHz : 59 seconds using Larduino_HSP

  • STM32F103 @ 72MHz : 3 seconds using Arduino_Core_STM32 ("Blue Pill" made in China)

MCU Clock Benchmark SDK
ATmega328p 16MHz 121 s.
ATmega32u4 16MHz 120 s.
ATmega328p 8MHz 242 s.
LGT8F328p 16MHz 118 s. default Arduino Nano SDK (old bootloader)
LGT8F328p 16MHz 118 s. Larduino_HSP SDK
LGT8F328p 32MHz 59 s. Larduino_HSP SDK
STM32F103 72MHz 3 s. Arduino Core STM32 SDK

arduino_prime_number_benchmark's People

Contributors

superusernameman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.