Git Product home page Git Product logo

cpp-worktest's Introduction

Basic C/C++

  1. How to run
    make all -j10
    ./main -v
  2. Content
    1. GNU C99.
    2. Modern CXX11~CXX20.
    3. Trails.
  3. Makefile.
    1. M1 (Darwin Chisato-MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64, Apple clang version 15.0.0 (clang-1500.3.9.4))
      time make -j8
      # make -j8  10.06s user 1.21s system 567% cpu 1.985 total
      # 2024.4.28
      # make -j10  21.30s user 2.19s system 799% cpu 2.938 total
      # make main  0.63s user 0.10s system 91% cpu 0.795 total
      # CPU loops per second 
      # clang -O0
      Alan::__loops_per_sec_(1) = 24434032
      Alan::__loops_per_sec_(2) = 49660779
      Alan::__loops_per_sec_(3) = 74456481
      # clang -O3
      Alan::__loops_per_sec_(1) = 60274124
      Alan::__loops_per_sec_(2) = 122208869
      Alan::__loops_per_sec_(3) = 183411630
    2. Win64 (MINGW64_NT-10.0-19045 DESKTOP-QRS5IC2 3.4.10.x86_64 2024-03-24 15:09 UTC x86_64 Msys, clang version 11.0.0)
      time make -j8
      # real    0m8.094s
      # user    0m42.116s
      # sys     0m8.360s
      # CPU loops per second
      # gcc -O0
      Alan::__loops_per_sec_(1) = 14481591
      Alan::__loops_per_sec_(2) = 28735669
      Alan::__loops_per_sec_(3) = 44418881
      # gcc -O2
      Alan::__loops_per_sec_(1) = 17001525
      Alan::__loops_per_sec_(2) = 39107601
      Alan::__loops_per_sec_(3) = 58595730
    3. Server (Linux VM-0-16-ubuntu 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux, Ubuntu clang version 14.0.0-1ubuntu1.1)
      time make -j8
      # real    0m9.438s
      # user    0m30.923s
      # sys     0m2.909s
      # CPU loops per second
      # gcc -O0
      Alan::__loops_per_sec_(1) = 18292420
      Alan::__loops_per_sec_(2) = 36579376
      Alan::__loops_per_sec_(3) = 52902849
      # gcc -O2
      Alan::__loops_per_sec_(1) = 35623114
      Alan::__loops_per_sec_(2) = 70066823
      Alan::__loops_per_sec_(3) = 10802244

cpp-worktest's People

Contributors

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