| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -270,7 +270,7 @@ It uses tail calls between small C functions that implement individual | |
| Python opcodes, rather than one large C case statement. | ||
| For certain newer compilers, this interpreter provides | ||
| significantly better performance. Preliminary numbers on our machines suggest | ||
| anywhere from -3% to 30% faster Python code, and a geometric mean of 9-15% | ||
| anywhere up to 30% faster Python code, and a geometric mean of 3-5% | ||
| faster on ``pyperformance`` depending on platform and architecture. The | ||
| baseline is Python 3.14 built with Clang 19 without this new interpreter. | ||
|
|
||
| Expand All | @@ -295,6 +295,19 @@ For further information on how to build Python, see | |
|
|
||
| __ https://en.wikipedia.org/wiki/Tail_call | ||
|
|
||
| .. attention:: | ||
|
|
||
| This section previously reported a 9-15% geomean speedup. This number has since been | ||
| cautiously revised down to 3-5%. While we expect performance results to be better | ||
| than what we report, our estimates are more conservative due to a | ||
| `compiler bug <https://github.com/llvm/llvm-project/issues/106846>`_ found in | ||
| Clang/LLVM 19. We were unaware of this bug, and it artifically boosted | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityInstead of saying "artificially boosted our numbers" (which seems to imply it magically made tail calling even better), maybe say "which negatively impacted the performance of the traditional non-tail calling interpreter loop"
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityYeah Stefan Marr pointed out that the artificially boosting comment makes no sense too. So I addressed that here #130911
Sorry, something went wrong.
mdboom reacted with thumbs up emoji
All reactions
|
||
| our numbers, resulting in inaccurate results. We sincerely apologize for | ||
| communicating results that were only accurate for certain versions of LLVM 19 | ||
| and 20. At the time of writing, this bug has not yet been fixed in LLVM 19-21. Thus | ||
| any benchmarks with those versions of LLVM may produce artifically inflated numbers. | ||
| (Thanks to Nelson Elhage for bringing this to light.) | ||
|
|
||
| (Contributed by Ken Jin in :gh:`128563`, with ideas on how to implement this | ||
| in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.) | ||
|
|
||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityCan we say "geometric mean" here? I think geomean is too jargonny.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality🤦 thanks, but I automerged too quickly.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.