Title: gh-145230: Update lockbench by colesbury · Pull Request #145231 · python/cpython · GitHub
Open Graph Title: gh-145230: Update lockbench by colesbury · Pull Request #145231 · python/cpython
X Title: gh-145230: Update lockbench by colesbury · Pull Request #145231 · python/cpython
Description: 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. Issue: gh-145230
Open Graph Description: 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_loc...
X Description: 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_loc...
Opengraph URL: https://github.com/python/cpython/pull/145231
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f3076f86-d356-5827-36e4-7601f10a33c5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A718:1EFAFB:9106F2:C38ECD:6A52AFD5 |
| html-safe-nonce | d419e0ebb47a1165213c00b56372c3e9c51601a9c74ffe4abd091a947afd62da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzE4OjFFRkFGQjo5MTA2RjI6QzM4RUNEOjZBNTJBRkQ1IiwidmlzaXRvcl9pZCI6IjY3NDU4OTAyNTYzOTcxODQ5ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ea9ed2c95e8ebfd901ba6288e0cfab4e33f23ed906cca2fd3e0fead38b9ca8ee |
| hovercard-subject-tag | pull_request:3327269447 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/145231/files |
| twitter:image | https://avatars.githubusercontent.com/u/655866?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/655866?s=400&v=4 |
| og:image:alt | 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_loc... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width