Skip to content

Closes #4684: refactor csvIO benchmark - #4685

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

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4684_refactor_csvIO_benchmark

Conversation

@ajpotts

@ajpotts ajpotts commented Jun 25, 2025 •

Copy link
Copy Markdown
Contributor

PR: Refactor csvIO.py for Integration with Pytest-Benchmark

This PR refactors the original CLI-based CSV I/O benchmark into a unified and parameterized benchmark compatible with Arkouda’s pytest-benchmark suite.

✅ Highlights

  • Unified Benchmark Function

    • Tests both CSV read and write performance
    • Parameterized over:
      • dtype: int64, float64, uint64, str
      • operation: read or write
  • Temporary Directory Usage

    • Ensures isolation and no side effects using tmp_path fixture
  • Trial-Based Measurement

    • Uses benchmark.pedantic(...) for consistent timing with --trials
  • Benchmark Metadata

    • Records backend, dtype, compression, operation type, and problem size
  • Graceful Skipping

    • Auto-skips during --numpy or --correctness_only modes

This modern refactor improves reproducibility, usability, and integration with the Arkouda benchmark ecosystem.

Closes #4684: refactor csvIO benchmark

@ajpotts
ajpotts force-pushed the 4684_refactor_csvIO_benchmark branch 4 times, most recently from 0d52925 to 22e7b30 Compare June 26, 2025 15:18
@ajpotts
ajpotts marked this pull request as ready for review June 26, 2025 22:24

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

@ajpotts
ajpotts requested a review from vasslitvinov July 7, 2025 16:39

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

I am not seeing parameterization over compression that's claimed in the PR message. Also there is no recording of performance. Please reconcile.

@ajpotts
ajpotts force-pushed the 4684_refactor_csvIO_benchmark branch from 22e7b30 to 39ed0b8 Compare July 8, 2025 19:01
@ajpotts

ajpotts commented Jul 8, 2025

Copy link
Copy Markdown
Contributor Author

Compression is not implemented for CSV read/write so it has been removed from the description. I also added the transfer_rate.

@ajpotts
ajpotts requested a review from vasslitvinov July 8, 2025 22:55

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

@ajpotts
ajpotts enabled auto-merge July 9, 2025 14:48
@ajpotts
ajpotts added this pull request to the merge queue Jul 9, 2025
Merged via the queue into Bears-R-Us:master with commit 4ae2951 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.

refactor csvIO benchmark

3 participants