Giter Site home page Giter Site logo

joelfilho / emb Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8 KB

Embedded MicroBenchmarks - An experimental C++11 library for benchmarking code in embedded platforms

Home Page: https://twitter.com/_JoelFilho

License: Boost Software License 1.0

C++ 100.00%
microbenchmarks benchmark benchmarking cpp cplusplus cpp11 embedded embedded-cpp

emb's Introduction

Embedded MicroBenchmarks (EMB)

EMB is a lightweight library for benchmarking embedded software, written in C++11 and compatible with GCC compilers.

This project is still Work In Progress, so it may have API changes, incomplete functionality, performance issues and bugs. Contact me via Twitter or open an Issue for bugs or feature requests.

Using the library

EMB is a generic library, built for compatibility with multiple embedded platforms.

As different platforms have different interfaces for timing and I/O, EMB provides multiple customization points, and you need to provide to use it:

  1. Import the emb/emb.hpp file into your project. EMB is header-only, so it's that easy!
  2. Provide a reporter class for you system. This class can store the benchmark results, print them to your screen, send via serial port, etc.
    • See this example for details on how to do it, as well as how to instantiate the benchmarks.
  3. Define a timer class for the benchmark. The library is compatible with the std::chrono's interface.
  4. If you're not using the STL, set the EMB_DECLVAL and EMB_VECTOR macros, with compatible interfaces.
    • EMB_DECLVAL should have similar functionality to std::declval. Example implementation.
    • EMB_VECTOR should be a class template similar to std::vector, with a push_back member function and begin and end iterator functions for range-based for loop.

Copyright / License

Copyright © 2019 Joel P. C. Filho

This software is released under the Boost Software License - Version 1.0. Refer to the License file for details.

emb's People

Contributors

joelfilho avatar

Stargazers

 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.