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
  • skip_with_error_test.cc
Find file
BlameHistoryPermalink
  • Samuel Panzer's avatar
    Support State::KeepRunningBatch(). (#521) · 296ec569
    Samuel Panzer authored Feb 09, 2018
    * Support State::KeepRunningBatch().
    
    State::KeepRunning() can take large amounts of time relative to quick
    operations (on the order of 1ns, depending on hardware). For such
    sensitive operations, it is recommended to run batches of repeated
    operations.
    
    This commit simplifies handling of total_iterations_. Rather than
    predecrementing such that total_iterations_ == 1 signals that
    KeepRunning() should exit, total_iterations_ == 0 now signals the
    intention for the benchmark to exit.
    
    * Create better fast path in State::KeepRunningBatch()
    
    * Replace int parameter with size_t to fix signed mismatch warnings
    
    * Ensure benchmark State has been started even on error.
    
    * Simplify KeepRunningBatch()
    296ec569
skip_with_error_test.cc 6.17 KB
EditWeb IDE
×

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