Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
B
benchmark
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • benchmark
  • Repository

Switch branch/tag
  • benchmark
  • src
  • benchmark.cc
Find file
BlameHistoryPermalink
  • Roman Lebedev's avatar
    Random interleaving of benchmark repetitions - the sequel (fixes #1051) (#1163) · fbc31405
    Roman Lebedev authored Jun 03, 2021
    Inspired by the original implementation by Hai Huang @haih-g
    from https://github.com/google/benchmark/pull/1105.
    
    The original implementation had design deficiencies that
    weren't really addressable without redesign, so it was reverted.
    
    In essence, the original implementation consisted of two separateable parts:
    * reducing the amount time each repetition is run for, and symmetrically increasing repetition count
    * running the repetitions in random order
    
    While it worked fine for the usual case, it broke down when user would specify repetitions
    (it would completely ignore that request), or specified per-repetition min time (while it would
    still adjust the repetition count, it would not adjust the per-repetition time,
    leading to much greater run times)
    
    Here, like i was originally suggesting in the original review, i'm separating the features,
    and only dealing with a single one - running repetitions in random order.
    
    Now that the runs/repetitions are no longer in-order, the tooling may wish to sort the output,
    and indeed `compare.py` has been updated to do that: #1168.
    fbc31405
benchmark.cc 21.5 KB
EditWeb IDE
×

Replace benchmark.cc

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.