Repository navigation
Closes #3577: Update setops_benchmark - #4646
Merged
Merged
Conversation
ajpotts
force-pushed
the
3577_Update_setops_benchmark
branch
from
June 20, 2025 17:24
fb25415 to
59866d8
Compare
ajpotts
marked this pull request as ready for review
June 20, 2025 19:37
vasslitvinov
approved these changes
Jun 26, 2025
vasslitvinov
left a comment
Contributor
There was a problem hiding this comment.
I suggest adding "skipif" if the given dtype is not supported by the server, like you have done in other cases. Otherwise looks good.
ajpotts
force-pushed
the
3577_Update_setops_benchmark
branch
from
June 30, 2025 20:54
59866d8 to
6cc2b3e
Compare
ajpotts
force-pushed
the
3577_Update_setops_benchmark
branch
from
July 9, 2025 15:27
6cc2b3e to
10cb84d
Compare
drculhane
approved these changes
Jul 10, 2025
drculhane
left a comment
Contributor
There was a problem hiding this comment.
This looks solid to me, and when I run the benchmark locally, it seems to work as advertised.
I'm a bit surprised at:
if dtype == "int64":
a = ak.randint (0,2**32,N,seed=seed)
etc...
elif dtype == "uint64":
a = ak.randint(0,2**32,N,seed=seed,dtype=ak.uint64)
etc...
instead of:
a = ak.randint(0,2**32,N,seed=seed,dtype=dtype)
without the if and elif. Is there a reason not to do it that way?
ajpotts
force-pushed
the
3577_Update_setops_benchmark
branch
from
July 10, 2025 16:38
10cb84d to
901d03f
Compare
Contributor
Author
|
@drculhane I simplified the logic as you recommended. |
drculhane
approved these changes
Jul 10, 2025
ajpotts
enabled auto-merge
July 10, 2025 16:41
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.
This updates the setups benchmark. It also limits the size of the
SegArraysetopsbenchmark because it was timing out on the server.PR: Refactor and Consolidate
setops_benchmark.pywith NumPy and SegArray SupportThis PR updates
setops_benchmark.pyto unify benchmarking of Arkouda and NumPy set operations into a single function and adds a size-controlled SegArray benchmark for setops.✅ Key Updates
Unified Setops Benchmark (
bench_setops)--numpyflag..to_ndarray()for NumPy benchmarking.intersect1d,union1d,setdiff1d, andsetxor1d.Correctness Verification (
--correctness_only)np.testing.assert_array_equal.SegArray Benchmark Reintroduced (
bench_segarr_setops_small)"Segarray_Setops_Small"and marked with@pytest.mark.skip_numpy(True)to reflect non-NumPy compatibility.🔧 Other Improvements
"Setops"and"Segarray_Setops_Small"for clarityThis cleanup ensures consistent testing, easier maintenance, and prepares the benchmarks for future scaling and correctness integration.
Closes #3577: Update setops_benchmark