Skip to content

Conversation

jbrockmendel
Copy link
Member

xref #34507

Based on the asv mentioned in that thread:

In [3]: N = 10**5                                                                                                                                                                                              
In [4]: tz = "UTC"                                                              
In [5]: series = Series(date_range(start="1/1/2000", periods=N, freq="T", tz=tz))

In [6]: %timeit series.dt.normalize()                                                                                                                                                                          
947 µs ± 4.33 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)   # <-- PR
3.26 ms ± 43.8 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)   # <-- master

@jreback jreback added Performance Memory or execution speed performance Datetime Datetime data dtype labels Jun 9, 2020
@jreback jreback added this to the 1.1 milestone Jun 9, 2020
@jreback jreback merged commit 6010141 into pandas-dev:master Jun 9, 2020
@jbrockmendel jbrockmendel deleted the perf-simd branch June 9, 2020 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants