Update nanobench to version v4.3.10 #27030

pull martinus wants to merge 1 commits into bitcoin:master from martinus:2023-02-update-nanobench changing 1 files +284 −179
  1. martinus commented at 6:10 am on February 3, 2023: contributor

    Nothing has changed that would affect Bitcoin’s usage of nanobench.

    Here is a detailed list of the changes

    • Plenty of clang-tidy updates
    • documentation updates
    • faster Rng::shuffle
    • Enable perf counters on older kernels
    • Raise default minimum epoch time to 1ms (doesn’t effect bitcoin’s usage)
    • Add support for custom information per benchmark
  2. Update nanobench to version v4.3.10
    Nothing has changed that would affect Bitcoin's usage of nanobench. Here is a detailed list of the changes
    * Plenty of clang-tidy updates
    * documentation updates
    * faster Rng::shuffle
    * Enable perf counters on older kernels
    * Raise default minimum epoch time to 1ms (doesn't effect bitcoin's usage)
    * Add support for custom information per benchmark
    82f895d7b5
  3. DrahtBot commented at 6:10 am on February 3, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK hebasto

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #26642 (clang-tidy: Add more performance-* checks and related fixes by hebasto)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. martinus commented at 6:13 am on February 3, 2023: contributor
    I’ve activated plenty more clang-tidy checks and either fixed them or added NOLINT markers in the upstream repository. This is a plain copy of the nanobench.h file from https://raw.githubusercontent.com/martinus/nanobench/v4.3.10/src/include/nanobench.h. This update compiles without warnings with the .clang-tidy changes in #26642.
  5. in src/bench/nanobench.h:2256 in 82f895d7b5
    2255@@ -2183,6 +2256,7 @@ struct IterationLogic::Impl {
    2256                                            << ", mState=" << static_cast<int>(mState));
    


    maflcko commented at 8:26 am on February 3, 2023:
    unrelated nit: Could replace the static_cast<double>(a.count()) with d(a) in the lines above?

    martinus commented at 8:32 am on February 3, 2023:
    Ha, yes; I wrote that little d() helper and then forgot about it…
  6. hebasto commented at 8:54 am on February 3, 2023: member
    Concept ACK.
  7. in src/bench/nanobench.h:1981 in 82f895d7b5
    1977@@ -1905,7 +1978,7 @@ PerformanceCounters& performanceCounters() {
    1978 // Windows version of doNotOptimizeAway
    1979 // see https://github.com/google/benchmark/blob/master/include/benchmark/benchmark.h#L307
    1980 // see https://github.com/facebook/folly/blob/master/folly/Benchmark.h#L280
    1981-// see https://learn.microsoft.com/en-us/cpp/preprocessor/optimize
    1982+// see https://docs.microsoft.com/en-us/cpp/preprocessor/optimize
    


    hebasto commented at 9:22 am on February 3, 2023:
    nit: Maybe backport a change from f84e445dee5f4c5d65cb702958701ff7b38ebdce into the original repo?

    martinus commented at 10:42 am on February 3, 2023:
    thanks, I’ll backport this. Both URLs work currently though, so not much is lost.
  8. hebasto approved
  9. hebasto commented at 9:31 am on February 3, 2023: member
    ACK 82f895d7b540ae421f80305a4f7cbb42905fb2c6, I’ve reviewed the code, all related changes from #26642 have been implemented.
  10. fanquake merged this on Feb 5, 2023
  11. fanquake closed this on Feb 5, 2023

  12. martinus deleted the branch on Feb 5, 2023
  13. sidhujag referenced this in commit 965f71901e on Feb 5, 2023
  14. bitcoin locked this on Feb 5, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-19 06:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me