Skip to content

Closes #3581: Update substring_search_benchmark - #4665

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

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:3581_Update_substring_search_benchmark

Conversation

@ajpotts

@ajpotts ajpotts commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

PR: Refactor substring_search_benchmark.py for Benchmark Consistency

This PR updates the substring_search_benchmark.py to follow Arkouda's standard benchmark conventions.

✅ Changes Included

  • Benchmark Metadata
    • Problem size, backend, and transfer rate (GiB/sec) are recorded
  • benchmark.pedantic(...)
    • Ensures consistent timing across pytest.trials
  • Graceful Skipping
    • Added @pytest.mark.skip_numpy(True) since NumPy lacks string array support
    • Skips when --correctness_only is enabled (unchanged)
  • Parameterization
    • Benchmarks different string array sizes and both regex and literal search

This improves clarity, consistency, and comparability across Arkouda's string benchmark suite.

Closes #3581: Update substring_search_benchmark

@ajpotts
ajpotts force-pushed the 3581_Update_substring_search_benchmark branch from 9ee4b06 to 5ebdd3d Compare June 25, 2025 15:53
@ajpotts
ajpotts marked this pull request as ready for review June 25, 2025 18:08

@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.

We could have a numpy mode with some kind of numpy array with strings. However it would unlikely add any useful information to testing and benchmarking, as hopefully Arkouda would be much faster.

@ajpotts
ajpotts force-pushed the 3581_Update_substring_search_benchmark branch 3 times, most recently from b458a94 to 09647c8 Compare June 30, 2025 23:03

@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!

@ajpotts
ajpotts force-pushed the 3581_Update_substring_search_benchmark branch from 09647c8 to aecad25 Compare July 7, 2025 16:20
@ajpotts
ajpotts enabled auto-merge July 8, 2025 01:23

@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 added this pull request to the merge queue Jul 8, 2025
Merged via the queue into Bears-R-Us:master with commit b568071 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.

Update substring_search_benchmark

4 participants