Repository navigation
Closes #3570: Update groupby_benchmark - #4613
Merged
Merged
Conversation
ajpotts
force-pushed
the
3570_Update_groupby_benchmark
branch
from
June 18, 2025 12:22
adfe8ce to
19a04a4
Compare
ajpotts
marked this pull request as ready for review
June 22, 2025 13:23
vasslitvinov
approved these changes
Jul 2, 2025
vasslitvinov
left a comment
Contributor
There was a problem hiding this comment.
How about adding skipif_if_numpy and benchmark.extra_info["backend"] = "Arkouda" ?
ajpotts
force-pushed
the
3570_Update_groupby_benchmark
branch
from
July 7, 2025 18:01
662adf3 to
c22b848
Compare
ajpotts
force-pushed
the
3570_Update_groupby_benchmark
branch
from
July 10, 2025 13:41
c22b848 to
711a81c
Compare
drculhane
approved these changes
Jul 10, 2025
drculhane
left a comment
Contributor
There was a problem hiding this comment.
Looks straightforward. Good improvements.
ajpotts
added this pull request to the merge queue
Jul 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: Refactor
groupby_benchmark.pyfor Consistency and Correctness-Only SupportThis PR refactors the
groupby_benchmark.pybenchmark to align with Arkouda’s standardized benchmarking style and enable correctness-only testing.✅ Key Updates
Correctness-Only Mode Support (
pytest.correctness_only=True)Automatically reduces problem size to
10**4for fast validation and CI efficiency.Accurate Byte Tracking for Throughput Reporting
Benchmarked function now returns the number of bytes processed, enabling consistent and accurate
GiB/sectransfer rate metrics.Helper Function Enhanced
generate_arrays()now accepts a target problem size and handles all dtype/structure combinations with accurate byte counting.Consistent Benchmark Wrapping
GroupBy creation logic is now wrapped in a function (
create_groupby) that returns transfer volume, mirroring the approach used inaggregate_benchmark.py.🔧 Structural Improvements
Nmanagement usingcfg["numLocales"]numBytes,totalbytes,N, etc.)This update ensures that
ak.GroupBycreation benchmarks are reliable, reproducible, and compatible with future correctness/NumPy testing workflows.Closes #3570: Update groupby_benchmark