Skip to content

Closes #4677: refactor small-str-groupby - #4678

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4677_refactor_small-str-groupby
Jul 7, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4677_refactor_small-str-groupby

Conversation

@ajpotts

@ajpotts ajpotts commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

PR: Refactor small-str-groupby.py for Pytest Benchmark Integration

This PR migrates the original script-style benchmark to the standardized pytest-benchmark format used throughout Arkouda.

✅ Refactor Highlights

  • Unified Benchmark Format

    • Uses @pytest.mark.benchmark with pedantic timing
    • Measures GroupBy construction time over random strings
  • Parameterization

    • Benchmarks short, medium, and longer strings using keys of length 6, 12, and 24
  • Benchmark Metadata

    • Includes problem size, backend, string length, and transfer rate in GiB/sec
  • Correctness Testing

    • Adds a check_groupby_correctness test to validate consistent grouping post-permutation
  • Skip Handling

    • Benchmarks skip under --numpy
    • Correctness check skips under --correctness_only

This change improves integration with the broader Arkouda benchmark suite and makes future scaling and profiling more consistent.

Closes #4677: refactor small-str-groupby

@ajpotts
ajpotts marked this pull request as ready for review June 27, 2025 20:47

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

refactor small-str-groupby

3 participants