-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add a benchmark for take #1519
base: main
Are you sure you want to change the base?
Add a benchmark for take #1519
Conversation
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.
Waiting for CI before approving but leaving some comments already.
|
||
# def test_shuffle(small_client, new_array): | ||
# n = 2000 | ||
# chunk_n = 250 | ||
# x = new_array((n, n, n), chunks=(chunk_n, chunk_n, chunk_n)) | ||
# indexer = _create_indexer(n, chunk_n) | ||
# x.shuffle(indexer, axis=1).sum().compute() |
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.
# def test_shuffle(small_client, new_array): | |
# n = 2000 | |
# chunk_n = 250 | |
# x = new_array((n, n, n), chunks=(chunk_n, chunk_n, chunk_n)) | |
# indexer = _create_indexer(n, chunk_n) | |
# x.shuffle(indexer, axis=1).sum().compute() |
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.
should have converted to draft, I don't want to merge this before shuffle is available
def test_take(small_client, new_array): | ||
n = 2000 | ||
chunk_n = 250 | ||
x = new_array((n, n, n), chunks=(chunk_n, chunk_n, chunk_n)) |
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.
nit: Annotating some data sizes would be interesting.
return indexer | ||
|
||
|
||
def test_take(small_client, new_array): |
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.
Is this test based on some real-world use case? If so, some context would be helpful.
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.
this is the smallest thing that the current implementation can still handle in reasonable time... everything bigger blows up
No description provided.