Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Benchmark suggestion: deepcopy #199

Copy link
Copy link
@eendebakpt

Description

@eendebakpt
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.