Skip to content

This repository contains a set of benchmarks evaluating different features of Modern C++ (C++11 and later). The aim is to identify practices for achieving high performance on C++.

Durganshu/Modern-Cpp-Performance

Repository files navigation

Performance aspects of Modern C++

C++ is a powerful language usually preferred over other languages because of its potential to exploit hardware resources to extract maximum performance. However, its vast range of features should be used suitably to achieve the intended performance. In this repository, I have comprehensively evaluated the performance aspects of Modern C++ (C++11 and later), particularly focusing on the programming practices.

The following elements of C++ have been investigated:

  1. std::vector

  2. std::string and std::string_view

  3. Smart pointers

  4. Execution policies

To evaluate the performance of these features, comprehensive benchmarks were conducted using Quick-bench.com, a platform built on Google benchmark.

For execution policies, tests should be run locally on the local machine with Google Benchmark installed locally. Please follow the official documentation for installing Google-benchmark.

Notable references

  1. https://cppcon.org/https://cppcon.org/
  2. https://github.com/cpp-best-practices
  3. CppCon YouTube Channel
  4. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#S-performance

About

This repository contains a set of benchmarks evaluating different features of Modern C++ (C++11 and later). The aim is to identify practices for achieving high performance on C++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published