Skip to content

Update asv config + fix some broken benchmarks #12563

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

Closed
wants to merge 4 commits into from

Conversation

pv
Copy link
Contributor

@pv pv commented Mar 8, 2016

  • Enable platform-dependent config in asv (needs asv git version for it to do something)
  • Enable wheel cache in asv (in asv git version)
  • Fix a few easily fixed broken benchmarks

self.df = DataFrame(np.random.randn(20000, 100))
self.df2 = DataFrame(np.random.randn(20000, 100))
self.df3 = DataFrame(np.random.randn(20000, 100))
self.df4 = DataFrame(np.random.randn(20000, 100))

def time_eval_frame_chained_cmp_python(self):
pd.eval('df < df2 < df3 < df4', engine='python')
if threads == 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm maybe should set this explicity each time something is run to 1 (then you can set in this particular one to higher)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure what would be a good value for threads=='all', could you explain how you'd like it. Note each benchmark is run in its own process, so those with threads!=1 get the default value on pandas startup.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, each is in own thread, then ok. I just didn't want to set a 'global', but if spinning off proc then its fine.

@jreback jreback added the Performance Memory or execution speed performance label Mar 8, 2016
@jreback jreback added this to the 0.18.1 milestone Mar 8, 2016
@jreback
Copy link
Contributor

jreback commented Mar 9, 2016

can you rebase this. we can prob throw this in 0.18.0; it doesn't affect user code.

Can you run vs 0.17.1 and post anything interesting?

@pv
Copy link
Contributor Author

pv commented Mar 9, 2016

Rebased.
Don't have time to run the full bench suite right now, but can be done via
asv continuous 6c30cbecf8 master

@pv
Copy link
Contributor Author

pv commented Mar 10, 2016

benchmarks: https://gist.github.com/pv/8ff97c3f6faa62fd6a5e --- not sure if all of those are real, or fluctuations (laptop under load)

@jreback
Copy link
Contributor

jreback commented Apr 17, 2016

I think we need to update the perf docs in contributing?

@pv
Copy link
Contributor Author

pv commented Apr 17, 2016

Not sure --- they already instruct to install the asv git version.

// are installed. The 'python' key is required. The exclude rules
// do not apply to includes.
//
// In addition to package names, the following keys are available:
Copy link
Contributor

Choose a reason for hiding this comment

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

so how does one choose the installation method / use this, ideally would ha e examples for conda (default) / pip

pv added 4 commits April 24, 2016 16:36
Add requirements rules for conda and virtualenv (requires asv git
version). Enable asv wheel cache.
- eval.eval_frame_*: fix up local variables
- groupby: range() -> list(range()) and using np.random.choice
- plotting: ensure matplotlib Agg backend is used
- packers: fix data file paths
@pv
Copy link
Contributor Author

pv commented Apr 24, 2016

Added explanation on how to choose between conda / virtualenv / existing environment to contributer docs.

@jreback jreback closed this in a544e9e Apr 25, 2016
@jreback
Copy link
Contributor

jreback commented Apr 25, 2016

thanks @pv

pls check the docs when built (prob a few hours) and if necessary issue a follow-up

@jreback
Copy link
Contributor

jreback commented Apr 25, 2016

should these be ignored as well?

[jreback-~/pandas] git st
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        asv_bench/.nojekyll
        asv_bench/results.orig/
        asv_bench/run_versions.sh

nothing added to commit but untracked files present (use "git add" to track)

@jreback
Copy link
Contributor

jreback commented Apr 25, 2016

sorry....these look like mine. nvm!

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