FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132657: Add free-threading scaling benchmark for copy.copy and copy.deepcopy by eendebakpt · Pull Request #132658 · python/cpython · GitHub

/ cpython Public

gh-132657: Add free-threading scaling benchmark for copy.copy and copy.deepcopy - #132658

Closed
eendebakpt wants to merge 4 commits into
python:mainfrom
eendebakpt:ftscaling_copy
Closed

gh-132657: Add free-threading scaling benchmark for copy.copy and copy.deepcopy#132658
eendebakpt wants to merge 4 commits into
python:mainfrom
eendebakpt:ftscaling_copy

Conversation

eendebakpt commented Apr 17, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

In this branch two benchmarks for the free-threading scaling are added. They are not completely microbenchmarks (they test multiple aspects of the free-threaded performance).

colesbury left a comment

Copy link
Copy Markdown
Contributor

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

This looks good, but in general my preference is to add these benchmarks when we fix the scaling issue. I think of these like regression tests, and having a mix of "passing" and "failing" cases makes it harder to notice regressions.

Comment thread Tools/ftscalingbench/ftscalingbench.py Outdated
Comment thread Tools/ftscalingbench/ftscalingbench.py Outdated
Co-authored-by: Sam Gross <colesbury@gmail.com>

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. I suspect we will only need one of the two benchmarks as a regression test (as the reason for not scaling seems to be the same). Once we have a better scaling, I will remove one of the tests.

nascheme added a commit to nascheme/cpython that referenced this pull request Dec 18, 2025

Copy link
Copy Markdown
Contributor Author

@colesbury The deepcopy benchmark was already merged in #142843. The copy benchmark overlaps for a large part with the deepcopy benchmark (e.g. both have the same potential FT bottlenecks). Unless there are reasons to add the copy as well I suggest we close this PR.

Copy link
Copy Markdown
Contributor

Sounds good to me

colesbury closed this Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL