Skip to content

[pull] main from python:main#807

Merged
pull[bot] merged 7 commits intotj-python:mainfrom
python:main
Feb 27, 2026
Merged

[pull] main from python:main#807
pull[bot] merged 7 commits intotj-python:mainfrom
python:main

Conversation

@pull
Copy link

@pull pull bot commented Feb 27, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


📚 Documentation preview 📚: https://cpython-previews--807.org.readthedocs.build/

@pull pull bot locked and limited conversation to collaborators Feb 27, 2026
@pull pull bot added the ⤵️ pull label Feb 27, 2026
StanFromIreland and others added 2 commits February 27, 2026 18:46
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Remove PyThread_type_lock (now uses PyMutex internally).

Add new benchmark options:
- work_inside/work_outside: control work inside and outside the critical section to vary contention levels
- num_locks: use multiple independent locks with threads assigned round-robin
- total_iters: fixed iteration count per thread instead of time-based, useful for measuring fairness
- num_acquisitions: lock acquisitions per loop iteration
- random_locks: acquire random lock each iteration

Also return elapsed time from benchmark_locks() and switch lockbench.py to use argparse.
@pull pull bot merged commit 72eca2a into tj-python:main Feb 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants