C++ Benchmarking Library

 

google/benchmark: A microbenchmark support library (github.com)

DigitalInBlue/Celero: C++ Benchmark Authoring Library/Framework (github.com)

 

定点数优化:性能成倍提升 - 知乎 (zhihu.com)

 

几个有用的 C++ 在线工具 - 知乎 (zhihu.com)

 

Quick C++ Benchmark

  1. 可以快速对一些 C++ 代码片段进行 benchmark 并可视化显示出来。
  2. 支持多个版本的 clang 和 gcc。
  3. 背后用的应该是 google benchmark 这个开源库,你也可以在自己的机器上安装这个库。

 

C++ Benchmark tool library
存在哪些c++ Benchmark库呢,通过google搜索和github搜索, 列出如下Benchmark library

名称 简介 源码地址
google/benchmark A microbenchmark support library https://github.com/google/benchmark
Celero C++ Benchmark Authoring Library/Framework https://github.com/DigitalInBlue/Celero
hayai C++ benchmarking framework https://github.com/nickbruun/hayai
nonius A C++ micro-benchmarking framework https://github.com/libnonius/nonius
sltbench C++ benchmark tool. Practical, stable and fast performance testing framework. https://github.com/ivafanas/sltbench
CppBenchmark Performance benchmark framework for C++ with nanoseconds measure precision https://github.com/chronoxor/CppBenchmark
Benchmark tool library使用

Benchmark tool library for c++ code_summer_sunrise的博客-CSDN博客

 

posted @ 2023-10-07 23:11  sinferwu  阅读(27)  评论(0编辑  收藏  举报