Title: gh-145230: Update lockbench.py and benchmark_locks API by gourijain029-del · Pull Request #145271 · python/cpython · GitHub
Open Graph Title: gh-145230: Update lockbench.py and benchmark_locks API by gourijain029-del · Pull Request #145271 · python/cpython
X Title: gh-145230: Update lockbench.py and benchmark_locks API by gourijain029-del · Pull Request #145271 · python/cpython
Description: PR Description Updates lockbench.py and the internal benchmark_locks API to support more realistic PyMutex benchmarking. Key Changes: New Metrics: Added --work-outside, --num-locks, and --total-iters to simulate varying contention levels and measure fairness. Redundancy: Removed PyThread_type_lock benchmarking as it now uses PyMutex. CLI: Switched to argparse and made the number of threads configurable. Efficiency: Added cache-line padding to mutex states in C to prevent false sharing during multi-lock tests. Issue: gh-145230
Open Graph Description: PR Description Updates lockbench.py and the internal benchmark_locks API to support more realistic PyMutex benchmarking. Key Changes: New Metrics: Added --work-outside, --num-locks, and --total-ite...
X Description: PR Description Updates lockbench.py and the internal benchmark_locks API to support more realistic PyMutex benchmarking. Key Changes: New Metrics: Added --work-outside, --num-locks, and --total-ite...
Opengraph URL: https://github.com/python/cpython/pull/145271
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c16bf80d-1757-56d9-9067-252327f2382f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A31C:3F60C6:9A1DD39:D9AB4D1:6A512183 |
| html-safe-nonce | 1be29f076d52956993593a6bf44f946a518b3c055550ad5881e00f4a8176377c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzFDOjNGNjBDNjo5QTFERDM5OkQ5QUI0RDE6NkE1MTIxODMiLCJ2aXNpdG9yX2lkIjoiMTk5NTEwNDg2NzMyMDkzMDY5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e426cd33cae99a0d872f8d9136241dd31aeb849f7c76f47b68b17cc61a06386d |
| hovercard-subject-tag | pull_request:3332668100 |
| 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/145271/files |
| twitter:image | https://avatars.githubusercontent.com/u/235066236?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/235066236?s=400&v=4 |
| og:image:alt | PR Description Updates lockbench.py and the internal benchmark_locks API to support more realistic PyMutex benchmarking. Key Changes: New Metrics: Added --work-outside, --num-locks, and --total-ite... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width