Giter Club home page Giter Club logo

benchmarks's Introduction

Benchmarks for Yadro C++ meetup talk

This repo consists of Yadro C++ talk benchmarks.

Building and running

We are using CppBenchmark via Conan repo. To guarantee clean conan setup please use venv. See full build sequence below.

First clone repo and perform other actions from repo source folder.

git clone https://github.com/tilir/benchmarks.git
cd benchmarks

Now create venv and install conan.

python3 -m venv .venv
source .venv/bin/activate
pip3 install conan

Note: if you never had conan earlier on your machine, please also run

conan profile detect

If you have custom compiler be sure it is inside profile.

Now you are ready for main build and run. Conan will download all dependencies for you.

conan install conanfile.txt --build=missing
cmake -S . -B build/Release --toolchain build/Release/generators/conan_toolchain.cmake  -DCMAKE_BUILD_TYPE=Release
cmake --build build/Release
env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build/Release --target test --parallel 1

This will take some time, be patient. Benchmarking results will be created in the build/Release/CSVS folder.

You are welcome to create MR in results folder with your architecture and name it will help my talk!

Troubleshooting

error: 'uint64_t' does not name a type during conan install phase

cppbench_version=$(grep -a cppbenchmark conanfile.txt)
cppbench_path=$(conan cache path $cppbench_version)
cppbench_header_path=$cppbench_path/../s/src/include/benchmark/system.h
sed -i 's/<string>/<string>\n#include <cstdint>/' $cppbench_header_path

Note: normally it is highly discouraged to modify sources inside conan cache, this is just a temporary workaround

benchmarks's People

Contributors

tilir avatar dima424658 avatar rudenkornk 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.