Repository navigation
Closes #3579: Update str_locality_benchmark - #4712
Merged
ajpotts merged 1 commit intoAug 5, 2025
Merged
Conversation
ajpotts
marked this pull request as ready for review
July 15, 2025 20:49
ajpotts
marked this pull request as draft
July 15, 2025 21:16
ajpotts
marked this pull request as ready for review
July 15, 2025 21:52
vasslitvinov
approved these changes
Jul 17, 2025
ajpotts
force-pushed
the
3579_Update_str_locality_benchmark
branch
from
July 24, 2025 14:44
d63a7cc to
f827f71
Compare
ajpotts
force-pushed
the
3579_Update_str_locality_benchmark
branch
from
July 24, 2025 19:38
f827f71 to
8312b64
Compare
drculhane
pushed a commit
to drculhane/arkouda
that referenced
this pull request
Aug 20, 2025
## PR: Refactor `str_locality_benchmark.py` for Clarity and Consistency This PR makes minor refinements to the `str_locality_benchmark.py` benchmark while maintaining its original functionality and performance focus. ### ✅ Changes Made - **Seed Handling**: Avoids mutating `pytest.seed` directly by incrementing a local copy when generating the second string component. This ensures reproducibility without side effects across tests. - **Consistent Data Size Calculation**: Uses `data.nbytes` consistently for transfer rate calculation. - **Minor Code Cleanup**: Simplified logic for generating sorted/unsorted string arrays for locality effects. ### 🔍 Behavior - **No Correctness Mode**: The benchmark remains performance-only, skipping when `--correctness_only` or `--numpy` is set. - **Parameters**: Benchmarks string locality effects (`Good` vs `Poor`) across four operations (`Hashing`, `Regex_Search`, `Casting`, `Scalar_Compare`). - **Metadata**: Still reports problem size, backend, and transfer rate. This refactor improves maintainability and reproducibility while keeping results comparable with previous runs. Closes Bears-R-Us#3579: Update str_locality_benchmark Co-authored-by: ajpotts <[email protected]>
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
str_locality_benchmark.pyfor Clarity and ConsistencyThis PR makes minor refinements to the
str_locality_benchmark.pybenchmark while maintaining its original functionality and performance focus.✅ Changes Made
pytest.seeddirectly by incrementing a local copy when generating the second string component. This ensures reproducibility without side effects across tests.data.nbytesconsistently for transfer rate calculation.🔍 Behavior
--correctness_onlyor--numpyis set.GoodvsPoor) across four operations (Hashing,Regex_Search,Casting,Scalar_Compare).This refactor improves maintainability and reproducibility while keeping results comparable with previous runs.
Closes #3579: Update str_locality_benchmark