Git Product home page Git Product logo

cpp-tooling-stats-build2's Introduction

Adaptation of the cpp_tooling_stats headers/modules benchmark to build2.

https://github.com/bfgroup/cpp_tooling_stats

Steps to reproduce:


0. Build GCC from the C++-modules branch:

   https://gcc.gnu.org/wiki/cxx-modules


1. Build build2 from stage:

   Get the install script from:      https://stage.build2.org/0/

   Get the install instruction from: https://build2.org/install.xhtml


2. Clone cpp_tooling_stats next to this project (known to work at 73c9581b8).

   https://github.com/bfgroup/cpp_tooling_stats


3. Apply generate-only.patch to cpp_tooling_stats:

cd cpp_tooling_stats
patch -p1 <../cpp-tooling-stats-build2/generate-only.patch


4. Optionally apply random-include.patch to cpp_tooling_stats:

cd cpp_tooling_stats
patch -p1 <../cpp-tooling-stats-build2/random-include.patch


5. Generate headers and modules source code (adjust DAG depth
   as required):

cd cpp_tooling_stats

modules/parallel_perf.py --dir=../cpp-tooling-stats-build2 \
--kind=headers,modules --def-ints --json-out=/dev/null --dag-depth=36


6. Adjust and run the benchmark script:

   Note: the script requires GNU time(1) and bc(1) utilities (see below
         on how to run manually instead).

   Edit the bencharm script and adjust jobs count (default is 8) and
   GCC compiler name (default is g++-m):

cd cpp-tooling-stats-build2
nano benchmark

   Then run:

./benchmark

   The final output should be along these lines:

headers/make:   7.47
headers/build2: 8.03
modules/build2: 2.02


7. To run each test manually:

cd cpp-tooling-stats-build2

make -j 8 CXX=g++-m clean
time make -j 8 CXX=g++-m

b -j 8 config.cxx=g++-m clean: headers/
time b -j 8 config.cxx=g++-m headers/

b -j 8 config.cxx=g++-m clean: modules/
time b -j 8 config.cxx=g++-m modules/

cpp-tooling-stats-build2's People

Contributors

boris-kolpackov avatar

Watchers

James Cloos avatar Steve Downey avatar  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.