Skip to content

BENCH: Add rolling apply benchmarks #28566

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
Sep 23, 2019

Conversation

mroeschke
Copy link
Member

  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

@mroeschke mroeschke added Benchmark Performance (ASV) benchmarks Window rolling, ewma, expanding labels Sep 22, 2019
@@ -25,6 +25,25 @@ def peakmem_rolling(self, constructor, window, dtype, method):
getattr(self.roll, method)()


class Apply:
params = (
["DataFrame", "Series"],
Copy link
Member

Choose a reason for hiding this comment

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

any reason not to just put (pd.DataFrame, pd.Series) and avoid the getattr?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was the nicest way to have it label nicely in the params and not be an if/else in the setup. Plus the getattr is in the setup so it won't impact the benchmark time.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@WillAyd WillAyd added this to the 1.0 milestone Sep 22, 2019
@mroeschke mroeschke merged commit 1285938 into pandas-dev:master Sep 23, 2019
@mroeschke mroeschke deleted the add_rolling_apply_benchmarks branch September 23, 2019 00:06
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* BENCH: Add rolling apply benchmarks

* black
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* BENCH: Add rolling apply benchmarks

* black
bongolegend pushed a commit to bongolegend/pandas that referenced this pull request Jan 1, 2020
* BENCH: Add rolling apply benchmarks

* black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Benchmark Performance (ASV) benchmarks Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants