Skip to content

BENCH: skip slowest tzlocal asvs #39995

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 8 commits into from
Feb 27, 2021
Merged

BENCH: skip slowest tzlocal asvs #39995

merged 8 commits into from
Feb 27, 2021

Conversation

jbrockmendel
Copy link
Member

Running with -b tslibs in master takes 141 minutes. This cuts it down to 36 minutes

@jreback jreback added the Benchmark Performance (ASV) benchmarks label Feb 24, 2021
@jreback jreback added this to the 1.3 milestone Feb 24, 2021
@@ -30,6 +30,10 @@ def setup(self, size, tz):
dti = pd.date_range("2016-01-01", periods=10, tz=tz).repeat(size // 10)
self.i8data = dti.asi8

if size == 10 ** 6 and tz is _tzs[-1]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems a bit fragile, so 2 recommendations:

  1. let's skip tzlocal() entirely from benchmarks
  2. you can define a tzlocal import that we cache (might be complicated)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to use 2.

if we ever get to cython 3.0 i think i'll be able to implement a tzlocal-equivalent in cython and this may cease to be an issue

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated + greenish

@jreback jreback merged commit 3bfbb54 into pandas-dev:master Feb 27, 2021
@jbrockmendel jbrockmendel deleted the asvs branch February 27, 2021 19:16
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.

2 participants