Skip to content

Closes #3575: Update scan_benchmark - #4664

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

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:3575_Update_scan_benchmark

Conversation

@ajpotts

@ajpotts ajpotts commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

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

This PR updates the scan benchmark to align with Arkouda’s benchmark framework with unified logic, correctness checking, and NumPy fallback.

✅ Key Features

  • Unified Benchmark Function

    • Handles both Arkouda and NumPy via --numpy
    • Uses a shared run() function for consistent timing and validation
  • Correctness Verification

    • Compares Arkouda results to NumPy using np.allclose(...)
    • Activated when --correctness_only is passed
  • Data Types and Operations

    • Supports cumsum and cumprod for int64 and float64
  • Benchmark Metadata

    • Includes backend name, problem size, and transfer rate in GiB/sec
  • Determinism Support

    • Honors --random and --seed flags for reproducible testing

This improves reliability and comparability of Arkouda’s scan benchmarks while ensuring correctness and performance tracking.

Closes #3575: Update scan_benchmark

@ajpotts
ajpotts marked this pull request as ready for review June 25, 2025 16: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 8, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 8, 2025
@ajpotts
ajpotts added this pull request to the merge queue Jul 8, 2025
Merged via the queue into Bears-R-Us:master with commit 96c4295 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 scan_benchmark

3 participants