Skip to content

Closes #4679: refactor setops_multiarray benchmark - #4680

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4679_refactor_setops_multiarray_benchmark
Jul 8, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4679_refactor_setops_multiarray_benchmark

Conversation

@ajpotts

@ajpotts ajpotts commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

PR: Refactor setops_multiarray.py for Pytest-Benchmark Integration

This PR updates the multi-array set operations benchmark to follow Arkouda’s modern benchmarking conventions, including integration with pytest-benchmark and correctness checking.

✅ Key Improvements

  • Benchmark Function

    • Uses @pytest.mark.benchmark and benchmark.pedantic(...)
    • Measures performance of intersect1d, union1d, setdiff1d, and setxor1d
    • Parameterized over int64 and uint64 types
  • Benchmark Metadata

    • Records problem size, data type, backend, and transfer rate in GiB/sec
  • Auto Skipping

    • Skips in --numpy mode and --correctness-only mode

This refactor ensures consistency across Arkouda's benchmark suite and improves maintainability and reproducibility of performance results.

Closes #4679: refactor setops_multiarray benchmark

@ajpotts
ajpotts force-pushed the 4679_refactor_setops_multiarray_benchmark branch 2 times, most recently from 7c51b97 to 0e89c4c Compare June 26, 2025 17:35
@ajpotts
ajpotts marked this pull request as ready for review June 30, 2025 14:25

@vasslitvinov vasslitvinov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see that benchmarks/setops_multiarray.py does not actually test multi-array ops. Will the .dat files differentiate v2's performance numbers from v1's ? Just checking to be sure it is the case.

@drculhane drculhane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

@ajpotts
ajpotts force-pushed the 4679_refactor_setops_multiarray_benchmark branch from 0e89c4c to 0f76160 Compare July 7, 2025 15:59
@ajpotts
ajpotts added this pull request to the merge queue Jul 7, 2025
Merged via the queue into Bears-R-Us:master with commit 50ce1f8 Jul 8, 2025
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.

refactor setops_multiarray benchmark

5 participants