René's URL Explorer Experiment


Title: Python3.13 performance Issue with python.org macOS installers on ARM Macs · Issue #122580 · python/cpython · GitHub

Open Graph Title: Python3.13 performance Issue with python.org macOS installers on ARM Macs · Issue #122580 · python/cpython

X Title: Python3.13 performance Issue with python.org macOS installers on ARM Macs · Issue #122580 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

X Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Opengraph URL: https://github.com/python/cpython

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python3.13 performance Issue with python.org macOS installers on ARM Macs","articleBody":"### Bug description:\r\nPython3.13rc1 seems to be about 20-25% slower than Python3.12.4.\r\nPlatform: M1 Mac running MacOS Sonoma 14.5 \r\n\r\nI first noticed the issue when running [this repository](https://github.com/Aardvark-team/Aardvark) where Python3.13rc1 ran on average 20-25% slower than Python3.12.4\r\n\r\nWith help from the Python discord server, we were able to create this minimal reproducible example:\r\n```python\r\nfrom time import process_time\r\n\r\nclass Lexer:\r\n    def __init__(self, data):\r\n        self.data = data\r\n        self.index = 0\r\n\r\n    def detect(self, text):\r\n        i = 0\r\n        for char in text:\r\n            if self.peek(i) != char:\r\n                return False\r\n            i += 1\r\n        return True\r\n\r\n    def peek(self, amt=1):\r\n        if self.index + amt \u003c len(self.data):\r\n            return self.data[self.index + amt]\r\n        else:\r\n            return None\r\n\r\ntext = \"return text + indent * ' ' + '}'\\n\" * 200\r\nneedle = \"return text + indent * ' ' + '}'\\n\" * 199 + \"Nope\\n\" \r\nlexer = Lexer(text)\r\nstart = process_time() \r\nfor x in range(10_000):\r\n    lexer.detect(needle)\r\nprint(process_time() - start)\r\n```\r\nThese were the results across many tests:\r\n**3.12.4:**   7.742122s\r\n**3.13rc1:** 8.309326s\r\n\r\nThe performance issue was not reproducible on other Operating Systems.\r\n\r\n\r\n### CPython versions tested on:\r\n\r\n3.11.1, 3.12.4, 3.13\r\n\r\n\r\n## CPython Options:\r\nFor my testing, I used the official Python3.13rc1 installer from Python.org, which has the following configuration:\r\n### OPT:\r\n**3.13rc1:** `-DNDEBUG -g -O3 -Wall`\r\n**3.12.4:** `-DNDEBUG -g -O3 -Wall`\r\n\r\n### CONFIG_ARGS:\r\n**3.13rc1:** `'--enable-framework' '--with-framework-name=Python' '--enable-universalsdk=/' '--with-universal-archs=universal2' '--enable-optimizations' '--with-lto' '--without-ensurepip' '--with-system-libmpdec' '--with-openssl=/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local' 'LIBLZMA_CFLAGS=-I/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/include' 'LIBLZMA_LIBS=-L/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/lib -llzma' 'LIBMPDEC_CFLAGS=-I/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/include' 'LIBMPDEC_LIBS=-L/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/lib -lmpdec -lm' 'LIBSQLITE3_CFLAGS=-I/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/include' 'LIBSQLITE3_LIBS=-L/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/lib -lsqlite3' 'TCLTK_CFLAGS=-I/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/include' 'TCLTK_LIBS=-L/Users/nad/release-tools/macos-installer/installer/variant/binaries/build/libraries/usr/local/lib -ltcl -ltk' 'CC=clang'`\r\n**3.12.4:** `'-C' '--enable-framework' '--enable-universalsdk=/' '--with-universal-archs=universal2' '--with-computed-gotos' '--without-ensurepip' '--with-openssl=/tmp/_py/libraries/usr/local' '--enable-optimizations' '--with-lto' 'TCLTK_CFLAGS=-I/tmp/_py/libraries/usr/local/include' 'TCLTK_LIBS=-ltcl8.6 -ltk8.6' 'LDFLAGS=-g' 'CFLAGS=-g' 'CC=clang'`\r\n\r\n\r\n### Operating systems tested on:\r\n\r\nLinux, macOS, Windows","author":{"url":"https://github.com/hg0428","@type":"Person","name":"hg0428"},"datePublished":"2024-08-01T19:52:34Z","url":"https://github.com/python/cpython/issues/122580"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:c1e17dfe-eb75-5838-78cb-2f56d6abf42d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA7E0:A99C2:4103C9B:5281B37:6B020985
html-safe-noncec7fb81aa89028ea00f95e499b3efea6ec971fad9e5e5f0febd5d36e66d0c8c76
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0UwOkE5OUMyOjQxMDNDOUI6NTI4MUIzNzo2QjAyMDk4NSIsInZpc2l0b3JfaWQiOiI2MTg3NjA0Nzc0OTA5Nzc0MjE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacebfffdd5de086025d3433dfcbf37473757d16208eda5edb18355671be81d67cd
hovercard-subject-tagrepository:81598961
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/issues/122580
twitter:imagehttps://opengraph.githubassets.com/266781776e7761c26feebf324de08621356d542594238e87edceca77a82e26e0/python/cpython
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/266781776e7761c26feebf324de08621356d542594238e87edceca77a82e26e0/python/cpython
og:image:altThe Python programming language. Contribute to python/cpython development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/122580#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F122580
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F122580
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/122580
Reloadhttps://github.com/python/cpython/issues/122580
Reloadhttps://github.com/python/cpython/issues/122580
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/122580
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/122580
Python3.13 performance Issue with python.org macOS installers on ARM Macshttps://github.com/python/cpython/issues/122580#top
https://github.com/ned-deily
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
https://github.com/hg0428
hg0428https://github.com/hg0428
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issue-2443289218
this repositoryhttps://github.com/Aardvark-team/Aardvark
Nexthttps://github.com/python/cpython/issues/122580?timeline_page=1
hg0428https://github.com/hg0428
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Aug 1, 2024https://github.com/python/cpython/issues/122580#event-13731346185
mdboomhttps://github.com/mdboom
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
on Aug 1, 2024https://github.com/python/cpython/issues/122580#event-13731850976
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2263948033
@devdanzinhttps://github.com/devdanzin
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2263957611
3% and 8% speedup for 3.13.0b4 vs. 3.12.0 on a MacOS ARM machinehttps://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20240718-3.13.0b4-567c38b#vs-3120-3
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264014330
https://github.com/hg0428
hg0428https://github.com/hg0428
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264089753
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264107917
@ned-deilyhttps://github.com/ned-deily
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264132956
brandtbucherhttps://github.com/brandtbucher
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
on Aug 1, 2024https://github.com/python/cpython/issues/122580#event-13733241560
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264151170
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264151915
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
on Aug 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264158449
@hg0428https://github.com/hg0428
ned-deilyhttps://github.com/ned-deily
on Aug 1, 2024https://github.com/python/cpython/issues/122580#event-13733367265
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
on Aug 2, 2024https://github.com/python/cpython/issues/122580#issuecomment-2264588320
ned-deilyhttps://github.com/ned-deily
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
release-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22release-blocker%22
on Sep 3, 2024https://github.com/python/cpython/issues/122580#event-14110063401
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
on Sep 3, 2024https://github.com/python/cpython/issues/122580#issuecomment-2325733458
#122832https://github.com/python/cpython/issues/122832
ThinLTO (Link Time Optimization)https://clang.llvm.org/docs/ThinLTO.html
test case provided above in this issuehttps://github.com/python/cpython/issues/122580#issue-2443289218
var_access_benchmarkhttps://github.com/python/cpython/blob/main/Tools/scripts/var_access_benchmark.py
Significant performance degradation in the macOS build #122832https://github.com/python/cpython/issues/122832
ned-deilyhttps://github.com/ned-deily
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
on Sep 3, 2024https://github.com/python/cpython/issues/122580
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 3, 2024https://github.com/python/cpython/issues/122580#issuecomment-2326473552
@ned-deilyhttps://github.com/ned-deily
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
on Sep 3, 2024https://github.com/python/cpython/issues/122580#issuecomment-2327079945
@ned-deilyhttps://github.com/ned-deily
https://github.com/itamaro
itamarohttps://github.com/itamaro
on Sep 3, 2024https://github.com/python/cpython/issues/122580#issuecomment-2327175550
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 3, 2024https://github.com/python/cpython/issues/122580#issuecomment-2327198961
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
on Sep 3, 2024https://github.com/python/cpython/issues/122580#issuecomment-2327431093
herehttps://github.com/python/cpython/blame/main/configure.ac#L1928
herehttps://github.com/python/cpython/issues/88506
herehttps://github.com/python/cpython/issues/89536
ned-deilyhttps://github.com/ned-deily
on Sep 3, 2024https://github.com/python/cpython/issues/122580#event-14121196650
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
on Sep 7, 2024https://github.com/python/cpython/issues/122580#issuecomment-2335010133
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 9, 2024https://github.com/python/cpython/issues/122580#issuecomment-2338121755
https://github.com/itamaro
itamarohttps://github.com/itamaro
on Sep 9, 2024https://github.com/python/cpython/issues/122580#issuecomment-2339243385
@rhettingerhttps://github.com/rhettinger
@mdboomhttps://github.com/mdboom
itamarohttps://github.com/itamaro
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 9, 2024https://github.com/python/cpython/issues/122580#event-14190092861
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
on Oct 1, 2024https://github.com/python/cpython/issues/122580#issuecomment-2387008865
#124567 (comment)https://github.com/python/cpython/issues/124567#issuecomment-2386994636
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/122580
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/122580
ned-deilyhttps://github.com/ned-deily
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.