Giter Site home page Giter Site logo

esp32s3-benchmark's Introduction

ESP32-S3 Benchmark

This repository is to help benchmark various math operations on the ESP32-S3 microcontroller. Currently, this is set up to multiply a million numbers in memory (thus exercising the PSRAM) using the following methods:

  • int8 using the Xtensa/Espressif SIMD instructions
  • int8 using standard C
  • Floating point using standard C

Timing information is collected during execution and displayed in the console in terms of raw time (microseconds) and "million multiply-accumulates per second" (MMACS).

To build and execute:

. ~/esp/esp-idf/export.sh
idf.py build flash monitor

Current timing results:

Initializing memory with random values...completed in 491707 us
Standard C test using int8
---------------
Performing 1048576 multiply-accumulates...(accum 0--needed to avoid being optimized out)...completed in 34887 us (30.056353 MMACS)
---------------

SIMD test using int8
---------------
Perfoming 1048576 multiply-accumulates...(accum 0)...completed in 8489 us (123.521734 MMACS)

Standard C test using int16
---------------
Performing 1048576 multiply-accumulates...(accum -68815--needed to avoid being optimized out)...completed in 47609 us (22.024743 MMACS)
---------------

SIMD test using int16
---------------
Performing 1048576 multiply-accumulates...(accum -68815--needed to avoid being optimized out)...completed in 16562 us (63.312160 MMACS)
---------------

Standard C test using int32
---------------
Performing 1048576 multiply-accumulates...(accum -1019413636--needed to avoid being optimized out)...completed in 42689 us (24.563143 MMACS)
---------------

esp32s3-benchmark's People

Contributors

tmiw 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.