Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add a benchmark for take #1519

wants to merge 1 commit into from

Conversation

phofl
Copy link
Contributor

@phofl phofl commented Aug 1, 2024

No description provided.

Copy link
Member

@hendrikmakait hendrikmakait left a 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.

Comment on lines +280 to +286

# 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()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# 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()

Copy link
Contributor Author

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))
Copy link
Member

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):
Copy link
Member

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.

Copy link
Contributor Author

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

@phofl phofl marked this pull request as draft August 1, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants