-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: ASV index_object benchmark #18758
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
CLN: ASV index_object benchmark #18758
Conversation
Hello @mroeschke! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on December 24, 2017 at 06:27 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #18758 +/- ##
==========================================
- Coverage 91.59% 91.57% -0.03%
==========================================
Files 150 150
Lines 48959 48959
==========================================
- Hits 44843 44833 -10
- Misses 4116 4126 +10
Continue to review full report at Codecov.
|
asv_bench/benchmarks/index_object.py
Outdated
self.idx_rng2 = self.idx_rng[:(-1)] | ||
fmt = '%Y-%m-%d %H:%M:%S' | ||
self.date_str_left = Index(self.dates_left.strftime(fmt)) | ||
self.date_str_right = self.date_str_left[:-1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could parametrize these over the actual operations (e.g. difference, intersection, etc). if you think its worth it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one black sheep benchmark, time_datetime_difference_disjoint
, that makes it a little more work to parametrize, but if i separate it out to a new class the rest should be easy to parametrize
Parametrized the
|
asv_bench/benchmarks/indexing.py
Outdated
@@ -369,3 +369,47 @@ def time_assign_with_setitem(self): | |||
self.df[i] = np.random.randn(self.N) | |||
|
|||
|
|||
class Float64(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would personally keep those in the index benchmarks, as indexing an index is something completely different (implementation wise) than indexing a series/dataframe
@jorisvandenbossche consolidated those index indexing benchmarks back to
|
can you rebase |
9da1480
to
add0d71
Compare
rebased and all green. |
Thanks! |
Remove star imports and flake8 checked
Moved some index constructor benchmarks to
ctors.py
(probably should rename this file in the future)Moved some index indexing benchmarks to
indexing.py