Skip to content

Conversation

@lukemanley
Copy link
Member

Adding a benchmark per the discussion in the linked issue.

from asv_bench.benchmarks.reindex import Reindex

b = Reindex()
b.setup()

%timeit b.time_reindex_multiindex_no_cache_dates()
603 ms ± 20.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)    <- 1.4.2
45.6 ms ± 995 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)  <- main

@lukemanley lukemanley added the Benchmark Performance (ASV) benchmarks label Jun 4, 2022
@jreback jreback added this to the 1.5 milestone Jun 5, 2022
@jreback jreback merged commit 16a4e59 into pandas-dev:main Jun 5, 2022
@jreback
Copy link
Contributor

jreback commented Jun 5, 2022

thanks @lukemanley very nice!

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
@lukemanley lukemanley deleted the perf-reindex-with-multiindex branch September 10, 2022 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Benchmark Performance (ASV) benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PERF: regression in reindex. Pandas 0.23.4 is 60x slower than 0.22.0 with a MultiIndex with datetime64

2 participants