Skip to content
New issue

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

Benchmark suggestion: deepcopy #199

Closed
eendebakpt opened this issue May 13, 2022 · 2 comments · Fixed by #201
Closed

Benchmark suggestion: deepcopy #199

eendebakpt opened this issue May 13, 2022 · 2 comments · Fixed by #201

Comments

@eendebakpt
Copy link
Contributor

One python method that is currently not in the pyperformance benchmarks is deepcopy (at least not in the benchmarks that execute on my system).

Can we add a benchmark specifically for deepcopy?

In #91610 (reimplement deepcopy in C) there is a simple benchmarking script for deepcopy. It is a simple execution of deepcopy on a dict and a dataclass. The benchmark is really simple (not embedded program), but it is representative for the cost of deepcopy that I encountered in larger projects.

If required, I can create a PR with a benchmark similar to the one in #91610.

@ericsnowcurrently
Copy link
Member

I'd say give writing the benchmark a try.

@eendebakpt
Copy link
Contributor Author

@ericsnowcurrently #201 is the PR for the benchmark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants