Title: Add free threading scaling microbenchmarks · Issue #125985 · python/cpython · GitHub
Open Graph Title: Add free threading scaling microbenchmarks · Issue #125985 · python/cpython
X Title: Add free threading scaling microbenchmarks · Issue #125985 · python/cpython
Description: Feature or enhancement I've been using a simple script to help identify and track scaling bottlenecks in the free threading build. The benchmarks consists of patterns that ought to scale well, but haven't in the past, typically due to re...
Open Graph Description: Feature or enhancement I've been using a simple script to help identify and track scaling bottlenecks in the free threading build. The benchmarks consists of patterns that ought to scale well, but ...
X Description: Feature or enhancement I've been using a simple script to help identify and track scaling bottlenecks in the free threading build. The benchmarks consists of patterns that ought to scale well, ...
Opengraph URL: https://github.com/python/cpython/issues/125985
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add free threading scaling microbenchmarks","articleBody":"# Feature or enhancement\r\n\r\nI've been using a simple script to help identify and track scaling bottlenecks in the free threading build. The benchmarks consists of patterns that ought to scale well, but haven't in the past, typically due to reference count contention or lock contention.\r\n\r\nI think this is generally useful for people working on free-threading and would like to include it under `Tools`, perhaps as `Tools/ftscalingbench/ftscalingbench.py`.\r\n\r\nNote that this is not intended to be a general multithreading benchmark suite, nor are the benchmarks intended to be representative of real-world workloads. The benchmarks are only intended to help identify and track scaling bottlenecks that occur in basic usage.\r\n\r\nHere is the original script, I've since made some modifications:\r\nhttps://github.com/colesbury/nogil-micro-benchmarks\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-125986\n* gh-128460\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2024-10-25T16:25:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/125985/cpython/issues/125985"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cd19c2bd-9ab2-3ec2-d886-f72e9627ddc0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4C4:7E1F2:9ED99:EA93B:6A577488 |
| html-safe-nonce | 3670daf6c7502d3d70178917b7ee5c9d78185b3ad5eb8b7a012359a2c0c19be5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEM0OjdFMUYyOjlFRDk5OkVBOTNCOjZBNTc3NDg4IiwidmlzaXRvcl9pZCI6IjM3Mzk3MjkxNDU5OTg1MTE0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 25ecab4e9fa0fdf86db11d73e335adfca284446e44b38ea336a0fc4b30430bd6 |
| hovercard-subject-tag | issue:2614566311 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/125985/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f54ce4d566f6c36eb76e630ae5b0ff494706264cd7f657e70c64c5cd107cabb/python/cpython/issues/125985 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f54ce4d566f6c36eb76e630ae5b0ff494706264cd7f657e70c64c5cd107cabb/python/cpython/issues/125985 |
| og:image:alt | Feature or enhancement I've been using a simple script to help identify and track scaling bottlenecks in the free threading build. The benchmarks consists of patterns that ought to scale well, but ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c0ca805e53f128ba1f966be1d3ccd81d0d1959c7 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width