Skip to content

Benchmark suggestion: deepcopy #379

Closed
@eendebakpt

Description

@eendebakpt

At the python language summit @markshannon invited ideas for benchmarking. One python method that is currently not in the pyperformance benchmarks is deepcopy (at least not in the benchmarks that execute on my system).

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 a program), but in larger projects the cost of deepcopy was sometimes a significant part of the total execution time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions