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
  • test
  • diagnostics_test.cc
Find file
BlameHistoryPermalink
  • Eric's avatar
    Refactor most usages of KeepRunning to use the perfered ranged-for. (#459) · 25acf220
    Eric authored Oct 17, 2017
    Recently the library added a new ranged-for variant of the KeepRunning
    loop that is much faster. For this reason it should be preferred in all
    new code.
    
    Because a library, its documentation, and its tests should all embody
    the best practices of using the library, this patch changes all but a
    few usages of KeepRunning() into for (auto _ : state).
    
    The remaining usages in the tests and documentation persist only
    to document and test behavior that is different between the two formulations.
    
    Also note that because the range-for loop requires C++11, the KeepRunning
    variant has not been deprecated at this time.
    25acf220
diagnostics_test.cc 1.84 KB
EditWeb IDE
×

Replace diagnostics_test.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.