C++ Benchmark

Open-source C++ projects categorized as Benchmark

Top 23 C++ Benchmark Projects

  1. benchmark

    A microbenchmark support library

    Project mention: std::array in C++ isn't slower than array in C | dev.to | 2024-09-27

    As with the assembly code analysis, let's look at two types of operations: sequentially filling an array with random numbers, and randomly accessing arbitrary array elements when we pass it to a function. To compile the code, we used GCC and Clang. We checked both debug (with the -DDEBUG flag) and release builds (with the -O3 level optimizations and the -DNDEBUG flag). And of course, we used Google Benchmark to run the tests.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. FrameworkBenchmarks

    Source for the TechEmpower Framework Benchmarks project

    Project mention: How much traffic can a pre-rendered Next.js site handle? | news.ycombinator.com | 2025-03-08

    I have also found that Next.js is shockingly slow.

    I recently added some benchmarks to the TechEmpower Web Framework Benchmarks suite, and Next.js ranked near dead last, even for simple JSON API endpoint (i.e. no React SSR involved): https://www.techempower.com/benchmarks/#section=data-r23&hw=...

    I discussed it with a couple of Next.js maintainers (https://github.com/vercel/next.js/discussions/75930), and they indicated that it's only a problem for "standalone" deployments (i.e. not on Vercel). However, I'm not entirely convinced that is true. I wonder if there are major optimizations that could be made to, for example, the routing system.

  4. FluidX3D

    The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs and CPUs via OpenCL. Free for non-commercial use.

    Project mention: FluidX3D | news.ycombinator.com | 2024-12-07
  5. coost

    A tiny boost library in C++11.

  6. cista

    Cista is a simple, high-performance, zero-copy C++ serialization & reflection library.

  7. nanobench

    Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20

  8. ut

    C++20 μ(micro)/Unit Testing Framework

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. Celero

    C++ Benchmark Authoring Library/Framework

  11. microservices-framework-benchmark

    Raw benchmarks on throughput, latency and transfer of Hello World on popular microservices frameworks

  12. alpaca

    Serialization library written in C++17 - Pack C++ structs into a compact byte-array without any macros or boilerplate code (by p-ranav)

  13. less_slow.cpp

    Learning how to write "Less Slow" code in C++ 20, C 99, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO

    Project mention: DeepGEMM: Clean and efficient FP8 GEMM kernels with fine-grained scaling | news.ycombinator.com | 2025-02-25

    I generally avoid FP8 and prefer I8, but your question got me wondering how well cuBLAS performs.

    First of all, cuBLAS needs the cuBLASLt extension API for mixed-precision workloads to handle FP8. Second, some adequate type combinations, like E5M2 x E5M2 for A x B, are not supported, while others, like E5M2 x E4M3, are! Moreover, matrix A must always come in a transposed layout for Ampere, Hopper, and Blackwell... and the list of constraints goes on.

    I've integrated FP8 cuBLASLt benchmarks into my "Less Slow C++" repository <https://github.com/ashvardanian/less_slow.cpp>, adding to the list of existing cuBLAS and hand-rolled CUDA and PTX benchmarks. I'm running them on H200 GPUs, which should have the same performance as H100. For square inputs, the throughput peaks around 1.35 Peta-ops.

    That's around 67% of the advertised number for dense GEMM <https://resources.nvidia.com/en-us-data-center-overview-mc/e...>.

  14. mixbench

    A GPU benchmark tool for evaluating GPUs and CPUs on mixed operational intensity kernels (CUDA, OpenCL, HIP, SYCL, OpenMP)

  15. BabelStream

    STREAM, for lots of devices written in many programming models

  16. map_benchmark

    Comprehensive benchmarks of C++ maps

  17. ecs_benchmark

    Benchmarks of common ECS (Entity-Component-System)-Frameworks in C++ (or C)

  18. uVkCompute

    A micro Vulkan compute pipeline and a collection of benchmarking compute shaders

  19. ubench.h

    ⏱️ single header benchmark framework for C and C++

  20. libCacheSim

    a high performance library for building cache simulators

  21. OpenCL-Benchmark

    A small OpenCL benchmark program to measure peak GPU/CPU performance.

  22. elbencho

    A distributed storage benchmark for file systems, object stores & block devices with support for GPUs

  23. benchmarking-fft

    choosing FFT library...

  24. c2clat

    A tool to measure CPU core to core latency

  25. math-parser-benchmark-project

    C++ Mathematical Expression Parser Benchmark

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Benchmark discussion

Log in or Post with

C++ Benchmark related posts

  • How bloom filters made SQLite 10x faster

    2 projects | news.ycombinator.com | 22 Dec 2024
  • Good research of Java (JIT) vs. C++ (AOT) performance with interesting results

    3 projects | news.ycombinator.com | 10 Dec 2024
  • Jaws – a JavaScript to WASM ahead of time compiler

    8 projects | news.ycombinator.com | 9 Nov 2024
  • std::array in C++ isn't slower than array in C

    2 projects | dev.to | 27 Sep 2024
  • Yes, Ruby is fast, but…

    4 projects | dev.to | 9 May 2024
  • How can I check the execution time of a program rendered in SFML?

    3 projects | /r/cpp_questions | 5 Dec 2023
  • How to Perf profile functions?

    3 projects | /r/cpp_questions | 13 Jul 2023
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 25 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Benchmark projects in C++? This list will help you:

# Project Stars
1 benchmark 9,330
2 FrameworkBenchmarks 7,759
3 FluidX3D 4,306
4 coost 4,071
5 cista 1,965
6 nanobench 1,510
7 ut 1,312
8 Celero 841
9 microservices-framework-benchmark 707
10 alpaca 497
11 less_slow.cpp 495
12 mixbench 389
13 BabelStream 330
14 map_benchmark 301
15 ecs_benchmark 246
16 uVkCompute 234
17 ubench.h 230
18 libCacheSim 207
19 OpenCL-Benchmark 193
20 elbencho 189
21 benchmarking-fft 145
22 c2clat 143
23 math-parser-benchmark-project 140

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C++ is
the 7th most popular programming language
based on number of references?