Skip to content

Use py-cpuinfo2 fork#308

Merged
ionelmc merged 1 commit intoionelmc:masterfrom
akx:use-faster-cpuinfo
Mar 26, 2026
Merged

Use py-cpuinfo2 fork#308
ionelmc merged 1 commit intoionelmc:masterfrom
akx:use-faster-cpuinfo

Conversation

@akx
Copy link
Copy Markdown
Contributor

@akx akx commented Mar 25, 2026

py-cpuinfo hasn't seen a new version in 4 years, and the author says they don't have time to maintain things.

This switches to my fork of it; API compatible in the 10.x series, but much faster (no subprocesses spawned for every call).

Switch to a maintained fork of py-cpuinfo.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.72%. Comparing base (cf97f26) to head (aaa2136).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #308   +/-   ##
=======================================
  Coverage   90.72%   90.72%           
=======================================
  Files          28       28           
  Lines        3052     3052           
  Branches      336      336           
=======================================
  Hits         2769     2769           
  Misses        208      208           
  Partials       75       75           
Flag Coverage Δ
py310-pytest84-nodist-cover (macos/arm64) 86.40% <ø> (ø)
py310-pytest84-nodist-cover (ubuntu/x64) 86.89% <ø> (ø)
py310-pytest84-nodist-cover (windows/x64) 86.17% <ø> (ø)
py310-pytest84-xdist-cover (macos/arm64) 86.73% <ø> (ø)
py310-pytest84-xdist-cover (ubuntu/x64) 87.22% <ø> (ø)
py310-pytest84-xdist-cover (windows/x64) 86.50% <ø> (ø)
py310-pytest90-nodist-cover (macos/arm64) 86.17% <ø> (-0.20%) ⬇️
py310-pytest90-nodist-cover (ubuntu/x64) 86.66% <ø> (ø)
py310-pytest90-nodist-cover (windows/x64) 86.14% <ø> (+0.19%) ⬆️
py310-pytest90-xdist-cover (macos/arm64) 86.69% <ø> (?)
py310-pytest90-xdist-cover (ubuntu/x64) 86.99% <ø> (ø)
py310-pytest90-xdist-cover (windows/x64) 86.27% <ø> (-0.20%) ⬇️
py311-pytest84-nodist-cover (macos/arm64) 86.40% <ø> (ø)
py311-pytest84-nodist-cover (ubuntu/x64) 86.92% <ø> (+0.22%) ⬆️
py311-pytest84-nodist-cover (windows/x64) 86.17% <ø> (ø)
py311-pytest84-xdist-cover (macos/arm64) 86.73% <ø> (ø)
py311-pytest84-xdist-cover (ubuntu/x64) 87.02% <ø> (-0.04%) ⬇️
py311-pytest84-xdist-cover (windows/x64) 86.30% <ø> (ø)
py311-pytest90-nodist-cover (macos/arm64) 86.36% <ø> (ø)
py311-pytest90-nodist-cover (ubuntu/x64) 86.69% <ø> (+0.03%) ⬆️
py311-pytest90-nodist-cover (windows/x64) 86.14% <ø> (ø)
py311-pytest90-xdist-cover (macos/arm64) 86.69% <ø> (ø)
py311-pytest90-xdist-cover (ubuntu/x64) 87.18% <ø> (-0.04%) ⬇️
py311-pytest90-xdist-cover (windows/x64) 86.46% <ø> (+0.19%) ⬆️
py312-pytest84-nodist-cover (macos/arm64) 86.40% <ø> (ø)
py312-pytest84-nodist-cover (ubuntu/x64) 86.89% <ø> (ø)
py312-pytest84-nodist-cover (windows/x64) 86.17% <ø> (ø)
py312-pytest84-xdist-cover (macos/arm64) 86.73% <ø> (ø)
py312-pytest84-xdist-cover (ubuntu/x64) 87.02% <ø> (-0.04%) ⬇️
py312-pytest84-xdist-cover (windows/x64) 86.50% <ø> (+0.19%) ⬆️
py312-pytest90-nodist-cover (macos/arm64) 86.36% <ø> (ø)
py312-pytest90-nodist-cover (ubuntu/x64) 86.86% <ø> (+0.16%) ⬆️
py312-pytest90-nodist-cover (windows/x64) 86.14% <ø> (+0.19%) ⬆️
py312-pytest90-xdist-cover (macos/arm64) 86.69% <ø> (ø)
py312-pytest90-xdist-cover (ubuntu/x64) 86.99% <ø> (-0.04%) ⬇️
py312-pytest90-xdist-cover (windows/x64) 86.46% <ø> (ø)
py313-pytest84-nodist-cover (macos/arm64) 86.20% <ø> (-0.20%) ⬇️
py313-pytest84-nodist-cover (ubuntu/x64) 86.73% <ø> (+0.03%) ⬆️
py313-pytest84-nodist-cover (windows/x64) 86.17% <ø> (ø)
py313-pytest84-xdist-cover (macos/arm64) 86.73% <ø> (ø)
py313-pytest84-xdist-cover (ubuntu/x64) 87.02% <ø> (-0.20%) ⬇️
py313-pytest84-xdist-cover (windows/x64) 86.50% <ø> (ø)
py313-pytest90-nodist-cover (macos/arm64) 86.36% <ø> (ø)
py313-pytest90-nodist-cover (ubuntu/x64) 86.69% <ø> (-0.20%) ⬇️
py313-pytest90-nodist-cover (windows/x64) 86.14% <ø> (+0.19%) ⬆️
py313-pytest90-xdist-cover (macos/arm64) 86.69% <ø> (ø)
py313-pytest90-xdist-cover (ubuntu/x64) 86.99% <ø> (-0.04%) ⬇️
py313-pytest90-xdist-cover (windows/x64) 86.46% <ø> (+0.19%) ⬆️
py314-pytest84-nodist-cover (macos/arm64) 89.60% <ø> (?)
py314-pytest84-nodist-cover (ubuntu/x64) 89.87% <ø> (-0.23%) ⬇️
py314-pytest84-nodist-cover (windows/x64) 89.15% <ø> (-0.20%) ⬇️
py314-pytest84-xdist-cover (macos/arm64) 89.93% <ø> (?)
py314-pytest84-xdist-cover (ubuntu/x64) 90.19% <ø> (-0.20%) ⬇️
py314-pytest84-xdist-cover (windows/x64) 89.47% <ø> (-0.20%) ⬇️
py314-pytest90-nodist-cover (macos/arm64) 89.60% <ø> (ø)
py314-pytest90-nodist-cover (ubuntu/x64) 89.87% <ø> (ø)
py314-pytest90-nodist-cover (windows/x64) 89.15% <ø> (ø)
py314-pytest90-xdist-cover (macos/arm64) 89.93% <ø> (ø)
py314-pytest90-xdist-cover (ubuntu/x64) 90.19% <ø> (-0.23%) ⬇️
py314-pytest90-xdist-cover (windows/x64) 89.67% <ø> (+0.19%) ⬆️
pypy311-pytest84-nodist-cover (macos/arm64) 85.58% <ø> (ø)
pypy311-pytest84-nodist-cover (ubuntu/x64) 85.87% <ø> (ø)
pypy311-pytest84-nodist-cover (windows/x64) 85.32% <ø> (+0.16%) ⬆️
pypy311-pytest84-xdist-cover (macos/arm64) 85.91% <ø> (ø)
pypy311-pytest84-xdist-cover (ubuntu/x64) 86.20% <ø> (-0.04%) ⬇️
pypy311-pytest84-xdist-cover (windows/x64) 85.68% <ø> (+0.19%) ⬆️
pypy311-pytest90-nodist-cover (macos/arm64) 85.58% <ø> (?)
pypy311-pytest90-nodist-cover (ubuntu/x64) 85.87% <ø> (-0.04%) ⬇️
pypy311-pytest90-nodist-cover (windows/x64) 85.15% <ø> (-0.20%) ⬇️
pypy311-pytest90-xdist-cover (macos/arm64) 85.91% <ø> (ø)
pypy311-pytest90-xdist-cover (ubuntu/x64) 86.20% <ø> (-0.04%) ⬇️
pypy311-pytest90-xdist-cover (windows/x64) 85.48% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@akx
Copy link
Copy Markdown
Contributor Author

akx commented Mar 26, 2026

This branch:

================== 243 passed, 3 skipped in 427.68s (0:07:07) ==================
py310-pytest90-nodist-nocov: exit 0 (430.16 seconds) /home/runner/work/pytest-benchmark/pytest-benchmark> pytest -vv --ignore=src pid=2435
  py310-pytest90-nodist-nocov: OK (445.01=setup[14.85]+cmd[430.16] seconds)
  congratulations :) (446.83 seconds)

cf97f26:

================== 243 passed, 3 skipped in 461.36s (0:07:41) ==================
py314-pytest90-nodist-nocov: exit 0 (463.96 seconds) /home/runner/work/pytest-benchmark/pytest-benchmark> pytest -vv --ignore=src pid=2513
  py314-pytest90-nodist-nocov: OK (485.05=setup[21.09]+cmd[463.96] seconds)
  congratulations :) (486.91 seconds)

@ionelmc ionelmc merged commit 17aa0d9 into ionelmc:master Mar 26, 2026
220 of 223 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants