The benchmarks in this repository don't aim to cover every topic fully, but they help form a mindset and intuition for performance-oriented software d

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2025-01-04 03:30:04

The benchmarks in this repository don't aim to cover every topic fully, but they help form a mindset and intuition for performance-oriented software design. For higher-level abstractions and languages, check out less_slow.rs and less_slow.py.

Much modern code suffers from common pitfalls, such as bugs, security vulnerabilities, and performance bottlenecks. University curricula often teach outdated concepts, while bootcamps oversimplify crucial software development principles.

This repository offers practical examples of writing efficient C and C++ code. It leverages C++20 features and is designed primarily for GCC and Clang compilers on Linux, though it may work on other platforms. The topics range from basic micro-kernels executing in a few nanoseconds to more complex constructs involving parallel algorithms, coroutines, and polymorphism. Some of the highlights include:

To read, jump to the less_slow.cpp source file and read the code snippets and comments. Follow the instructions below to run the code in your environment and compare it to the comments as you read through the source.

Leave a Comment