bench: Fix subtle counting issue when rescaling iteration count #9200

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2016_11_bench_fix changing 1 files +5 −2
  1. laanwj commented at 9:00 AM on November 22, 2016: member

    Make sure that the count is a zero modulo the new mask before scaling, otherwise the next time until a measure triggers will take only 1/2 as long as accounted for. This caused the 'min time' to be potentially off by as much as 100%.

  2. laanwj added the label Tests on Nov 22, 2016
  3. bench: Fix subtle counting issue when rescaling iteration count
    Make sure that the count is a zero modulo the new mask before
    scaling, otherwise the next time until a measure triggers
    will take only 1/2 as long as accounted for. This caused
    the 'min time' to be potentially off by as much as 100%.
    e0a9cb25b0
  4. laanwj force-pushed on Nov 22, 2016
  5. jonasschnelli commented at 9:17 AM on November 22, 2016: contributor

    Uh. Good catch. utACK e0a9cb25b0af87723d50cb8d8cffa10f1ebf7dcc

  6. gmaxwell commented at 9:51 AM on November 22, 2016: contributor

    looks good to me utACK.

  7. laanwj merged this on Nov 22, 2016
  8. laanwj closed this on Nov 22, 2016

  9. laanwj referenced this in commit 55b2eddcc8 on Nov 22, 2016
  10. luke-jr referenced this in commit eebc699d30 on Dec 2, 2016
  11. codablock referenced this in commit 481bab7456 on Jan 15, 2018
  12. lateminer referenced this in commit 3cbcdbd9a1 on Oct 24, 2018
  13. andvgal referenced this in commit 34c9031c36 on Jan 6, 2019
  14. CryptoCentric referenced this in commit 76d41e5e21 on Feb 24, 2019
  15. zkbot referenced this in commit aa225ebb0b on Jan 24, 2020
  16. zkbot referenced this in commit 74ff73abab on Jan 24, 2020
  17. furszy referenced this in commit 4ed15cc69d on Jun 8, 2020
  18. MarcoFalke locked this on Sep 8, 2021

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: 2026-04-13 15:15 UTC

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