Title: Multithreaded scaling regression in 3.13.1t · Issue #131988 · python/cpython · GitHub
Open Graph Title: Multithreaded scaling regression in 3.13.1t · Issue #131988 · python/cpython
X Title: Multithreaded scaling regression in 3.13.1t · Issue #131988 · python/cpython
Description: Bug report Bug description: #127114 changed the logic to immortalize certain objects when the first thread is created instead of the first non-main thread. 3.13.0: sgross@devfair0453:/raid/sgross/clean-cpython/Tools/ftscalingbench$ uv ru...
Open Graph Description: Bug report Bug description: #127114 changed the logic to immortalize certain objects when the first thread is created instead of the first non-main thread. 3.13.0: sgross@devfair0453:/raid/sgross/c...
X Description: Bug report Bug description: #127114 changed the logic to immortalize certain objects when the first thread is created instead of the first non-main thread. 3.13.0: sgross@devfair0453:/raid/sgross/c...
Opengraph URL: https://github.com/python/cpython/issues/131988
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multithreaded scaling regression in 3.13.1t","articleBody":"# Bug report\n\n### Bug description:\n\nhttps://github.com/python/cpython/pull/127114 changed the logic to immortalize certain objects when the first thread is created instead of the first *non-main* thread.\n\n\n3.13.0:\n```\nsgross@devfair0453:/raid/sgross/clean-cpython/Tools/ftscalingbench$ uv run -p 3.13.0t ftscalingbench.py\nRunning benchmarks with 20 threads\nobject_cfunction 14.3x faster\ncmodule_function 14.3x faster\nobject_lookup_special 14.3x faster\nmult_constant 13.8x faster\ngenerator 13.8x faster\npymethod 14.3x faster\npyfunction 14.0x faster\nmodule_function 14.2x faster\nload_string_const 2.5x slower\nload_tuple_const 13.5x faster\ncreate_pyobject 14.0x faster\ncreate_closure 14.0x faster\ncreate_dict 13.0x faster\nthread_local_read 3.0x slower\n```\n\n3.13.1:\n```\nsgross@devfair0453:/raid/sgross/clean-cpython/Tools/ftscalingbench$ uv run -p 3.13.1t ftscalingbench.py\nRunning benchmarks with 20 threads\nobject_cfunction 1.6x slower\ncmodule_function 1.9x slower\nobject_lookup_special 1.7x slower\nmult_constant 14.3x faster\ngenerator 2.7x faster\npymethod 2.3x slower\npyfunction 3.1x slower\nmodule_function 2.1x slower\nload_string_const 2.1x slower\nload_tuple_const 13.1x faster\ncreate_pyobject 3.6x slower\ncreate_closure 4.3x slower\ncreate_dict 15.0x faster\nthread_local_read 3.0x slower\n```\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-131989\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2025-04-01T19:21:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/131988/cpython/issues/131988"}
| 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:1c3efdd6-5e1e-9291-0008-64b535787b5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A90E:A4FD:45A8C3:605E2C:6A57D0C6 |
| html-safe-nonce | a17f9c999c8da6dedf3e5f59131d3e048f983f2357168c76f2aefaa8bc9371b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTBFOkE0RkQ6NDVBOEMzOjYwNUUyQzo2QTU3RDBDNiIsInZpc2l0b3JfaWQiOiI3ODQwNTcyMDAwMTc1NjQwNzc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 332f02bc55b896837977e6e5c3899c5d0feb4ee9da2aa87dfb626686af29c280 |
| hovercard-subject-tag | issue:2964375479 |
| 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/131988/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26666c6709e0d78af44f415eb6e83ba4e8267a7b0dfb3158b30569b9ae124cf4/python/cpython/issues/131988 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26666c6709e0d78af44f415eb6e83ba4e8267a7b0dfb3158b30569b9ae124cf4/python/cpython/issues/131988 |
| og:image:alt | Bug report Bug description: #127114 changed the logic to immortalize certain objects when the first thread is created instead of the first non-main thread. 3.13.0: sgross@devfair0453:/raid/sgross/c... |
| 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 | 5bf9f84655de1d0e9aa064cd3b2bc9703556c68ae53b94e21b872b7e9f1f7cc1 |
| 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 | f76ee5bea8be15c2aede06f855f5c4c808f6eaf5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width