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
  • complexity_test.cc
Find file
BlameHistoryPermalink
  • Eric Backus's avatar
    Bugfix/wsl selftest fixes. Fixes #839 (#843) · 32a1e397
    Eric Backus authored Jul 27, 2019
    * Update AUTHORS and CONTRIBUTORS
    
    * Fix WSL self-test failures
    
    Some of the benchmark self-tests expect and check for a particular
    output format from the benchmark library. The numerical values must
    not be infinity or not-a-number, or the test will report an error.
    Some of the values are computed bytes-per-second or items-per-second
    values, so these require that the measured CPU time for the test to be
    non-zero. But the loop that is being measured was empty, so the
    measured CPU time for the loop was extremely small. On systems like
    Windows Subsystem for Linux (WSL) the timer doesn't have enough
    resolution to measure this, so the measured CPU time was zero.
    
    This fix just makes sure that these tests have something within the
    timing loop, so that the benchmark library will not decide that the
    loop takes zero CPU time. This makes these tests more robust, and in
    particular makes them pass on WSL.
    32a1e397
complexity_test.cc 8.07 KB
EditWeb IDE
×

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