Skip to content

PERF: array_equivalent_object #44832

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

Merged
merged 2 commits into from
Dec 11, 2021

Conversation

jbrockmendel
Copy link
Member

from asv_bench.benchmarks.frame_methods import *
self = Equals()
self.setup()

df = self.nonunique_cols
df2 = df.T


%timeit df.equals(df)
26.4 ms ± 667 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)  # <- master
25.9 ms ± 1.36 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)  # <- PR

%timeit df2.equals(df2)
47.3 ms ± 704 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)  # <- master
27.2 ms ± 1.16 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)  # <- PR

@jreback jreback added the Performance Memory or execution speed performance label Dec 11, 2021
@jreback jreback added this to the 1.4 milestone Dec 11, 2021
@jreback jreback merged commit 246c747 into pandas-dev:master Dec 11, 2021
@jbrockmendel jbrockmendel deleted the perf-array_equivalent branch December 11, 2021 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants