GithubHelp home page GithubHelp logo

franciscollobet / hayai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickbruun/hayai

0.0 0.0 0.0 1.13 MB

C++ benchmarking framework

Home Page: https://bruun.co/2012/02/07/easy-cpp-benchmarking

License: Other

Shell 0.31% C++ 89.44% Python 6.16% CMake 4.09%

hayai's Introduction

hayai - the C++ benchmarking framework.

Build Status

hayai is a C++ framework for writing benchmarks for pieces of code along the lines of the normal approach for unit testing using frameworks such as googletest. For information on the origin of and how to use hayai, please read the introductory blog post until I have the time to write a proper README.

Installing hayai

hayai releases are made available for Mac OS X in Homebrew and for Ubuntu LTS releases in an Ubuntu PPA.

To install from Homebrew on Mac OS X:

$ brew install hayai

To install from the Ubuntu PPA:

$ apt-add-repository ppa:bruun/hayai
$ apt-get update
$ apt-get install libhayai-dev

Building hayai

hayai is fully header based, but to use the simple main function as described in the introducty blog post, the source code must be compiled to provide libhayai_main. Compiling the source code requires CMake to be present on the system:

$ cd hayai
$ cmake .
$ make

This will also build the sample available in the sample/ directory of the repository.

Developing hayai

hayai includes a (currently not at all very comprehensive) test suite for development. To use the test suite, pass a boolean true value as the BUILD_HAYAI_TESTS CMake variable:

$ cd hayai
$ cmake -DBUILD_HAYAI_TESTS=true .
$ make
$ make test

hayai's People

Contributors

acnazarejr avatar conz27 avatar davidschreiber avatar dutow avatar lectem avatar mbt-ludovic-b avatar mloskot avatar nickbruun avatar nicopauss avatar pfischbeck avatar ppaulweber avatar szborows avatar ul1tka 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.