python / python/cpython

perf_counter result does not count system sleep time in Mac OS

Open
#85,475 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension-modules OS-mac type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 41303
Nosy @ronaldoussoren, @abalkin, @vstinner, @ned-deily, @njsmith, @jab, @eryksun, @pganssle, @xrisk
PRs
  • python/cpython#21719
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-07-15.12:43:19.496>
    labels = ['OS-mac', 'type-bug', '3.8', '3.9', '3.10']
    title = 'perf_counter result does not count system sleep time in Mac OS'
    updated_at = <Date 2020-08-07.16:29:12.431>
    user = 'https://bugs.python.org/nooB'
    

    bugs.python.org fields:

    activity = <Date 2020-08-07.16:29:12.431>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['macOS']
    creation = <Date 2020-07-15.12:43:19.496>
    creator = 'nooB'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41303
    keywords = ['patch']
    message_count = 20.0
    messages = ['373690', '374523', '374765', '374840', '374852', '374853', '374854', '374888', '374890', '374892', '374897', '374923', '374925', '374935', '374936', '374937', '374938', '374940', '374972', '375011']
    nosy_count = 10.0
    nosy_names = ['ronaldoussoren', 'belopolsky', 'vstinner', 'ned.deily', 'njs', 'jab', 'nooB', 'eryksun', 'p-ganssle', 'xrisk']
    pr_nums = ['21719']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41303'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start by reviewing pull request #21719 and the macOS component context for the reported perf_counter behavior. The issue names no files or tests; done means resolving the discrepancy so perf_counter includes system sleep time on macOS and validating the result against the reported behavior.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    operating-systems, performance
    Issue type
    Bug
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    25/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.