Skip to content

Sshirokov/benchmark - #147

Merged
thirtytwobits merged 2 commits into
mainfrom
sshirokov/benchmark
Dec 3, 2024
Merged

thirtytwobits merged 2 commits into
mainfrom
sshirokov/benchmark

Conversation

@serges147

@serges147 serges147 commented Dec 3, 2024

Copy link
Copy Markdown
Contributor
  • Fix clang-tidy false positive.
  • Added new "benchmark" suite.
  • The suite now has benchmark of the cetl::function (comparing with std::function and pure lambda):
2024-12-03T12:04:03+02:00
Running /home/sergei/Develop/git/OpenCyphal/CETL/cetlvast/cmake-build-release/suites/benchmark/benchmark_pmr_function
Run on (16 X 4791.28 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x8)
  L1 Instruction 32 KiB (x8)
  L2 Unified 1024 KiB (x8)
  L3 Unified 16384 KiB (x1)
Load Average: 0.73, 1.78, 2.14
--------------------------------------------------------------
Benchmark                    Time             CPU   Iterations
--------------------------------------------------------------
BM_CetlFn_call/1000       1030 ns         1030 ns       672510
BM_StdFn_call/1000        1026 ns         1026 ns       690998
BM_Lambda_call/1000        206 ns          206 ns      3390901

Process finished with exit code 0

@serges147 serges147 self-assigned this Dec 3, 2024
Comment thread include/cetl/unbounded_variant.hpp
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2024

Copy link
Copy Markdown

@thirtytwobits
thirtytwobits merged commit 096f890 into main Dec 3, 2024
@thirtytwobits
thirtytwobits deleted the sshirokov/benchmark branch December 3, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants