Skip to content

Commit aa29467

Browse files
gh-145230: Update lockbench.py and benchmark_locks API
- Remove PyThread_type_lock benchmark as it now uses PyMutex.\n- Add --work-outside to adjust work outside critical sections.\n- Add --num-locks to support benchmarking multiple independent locks.\n- Make number of threads configurable.\n- Add --total-iters for fixed iteration benchmarks.
1 parent 4401f23 commit aa29467

3 files changed

Lines changed: 491 additions & 419 deletions

File tree

Modules/_testinternalcapi/clinic/test_lock.c.h

Lines changed: 104 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)