Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sshirokov/benchmark #147

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Sshirokov/benchmark #147

merged 2 commits into from
Dec 3, 2024

Conversation

serges147
Copy link
Contributor

@serges147 serges147 commented Dec 3, 2024

  • 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
@thirtytwobits thirtytwobits merged commit 096f890 into main Dec 3, 2024
58 checks passed
@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