Skip to content

Closes #3574: Update reduce_benchmark - #4663

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:3574_Update_reduce_benchmark
Jul 9, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:3574_Update_reduce_benchmark

Conversation

@ajpotts

@ajpotts ajpotts commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

PR: Refactor reduce_benchmark.py to Support --numpy and --correctness_only

This PR updates the reduce_benchmark.py module to align with Arkouda's standardized benchmarking framework.

✅ Key Enhancements

  • --numpy support

    • Benchmarks are executed using NumPy when --numpy is passed
    • Uses .to_ndarray() and NumPy reduction methods
  • --correctness_only validation

    • Compares Arkouda results to NumPy equivalents
    • Ensures correctness across all operations
  • Unified Test Logic

    • Combines all backends into a single parameterized benchmark
    • Uses benchmark.pedantic for consistent trial-based timing
  • Benchmark Metadata

    • Annotates output with problem size, backend name, and transfer rate

🧪 Coverage

  • Operations: sum, prod, min, max
  • Dtypes: int64, float64

This ensures reproducible performance tracking with correctness validation for key reduction operations.

Closes #3574: Update reduce_benchmark

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

Looks good!

@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 8, 2025
Merged via the queue into Bears-R-Us:master with commit 84c35b8 Jul 9, 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 reduce_benchmark

3 participants