Skip to content

Improve startup overhead #884

Open
1 of 3 issues completed
Open

Description

@ofek
No description provided.

Activity

  1. ofek commented on Jun 21, 2026

    @ofek
    MemberAuthor

    When it comes time to start robustly tracking this, I strongly recommend that we use hyperfine to measure the true overhead by computing the delta of the interpreter startup time.

    ❯ (
        uv run --python 3.14 --no-project --isolated --with msgspec
        -- hyperfine
            --export-json -
            --style none
            --shell none
            --min-runs 100
            --warmup 10
            --reference-name baseline
            --reference 'python -c pass'
            --command-name combined
            'python -c "import msgspec"'
        err> null-device
        | from json
        | get results
        | select command median
        | update median {|r| $r.median * 1000}
        | transpose --header-row --as-record
        | insert overhead {|r| $r.combined - $r.baseline}
    )
    ╭──────────┬───────╮
    │ baseline │ 47.02 │
    │ combined │ 87.67 │
    │ overhead │ 40.65 │
    ╰──────────┴───────╯
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions