Skip to content

Closes #4670: update str-locality benchmark - #4671

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4670_update_str-locality_benchmark
Jul 7, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4670_update_str-locality_benchmark

Conversation

@ajpotts

@ajpotts ajpotts commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

PR: Refactor str_locality_benchmark.py to Match Arkouda Benchmark Standards

This PR updates the string locality benchmark to align with Arkouda’s modern benchmarking conventions for clarity, consistency, and integration with --correctness_only and --numpy flags.

✅ Key Changes

  • Unified Benchmark Format

    • Uses benchmark.pedantic(...) for precise, trial-controlled timing
    • Adds benchmark metadata: description, problem size, backend, transfer rate
  • Parameterization

    • Benchmarks the impact of string locality (Good vs. Poor) across:
      • Hashing
      • Regex search
      • Scalar comparison
      • Type casting
  • Graceful Skipping

    • Skips when --numpy is enabled (no NumPy equivalent for string operations)
    • Skips during correctness-only mode (no validation logic required)

🔬 Benchmark Group

This benchmark is registered under the group name:

Closes #4670: update str-locality benchmark

@ajpotts
ajpotts force-pushed the 4670_update_str-locality_benchmark branch from 2214263 to 3a99728 Compare June 25, 2025 17:38
@ajpotts
ajpotts marked this pull request as ready for review June 27, 2025 21:28

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

3 participants