Skip to content

Conversation

@bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Nov 7, 2025

  • This contribution adheres to CONTRIBUTING.md.
  • I've updated CHANGELOG.md if applicable.
  • I've added tests applicable for this pull request

What does this Pull Request accomplish?

Fix AB#3465696 - DAQmx read benchmarks allocate a much larger buffer than necessary for >1 channel

samps_per_chan is "per chan", so we shouldn't multiply by the number of channels when specifying it.

Why should this Pull Request be merged?

This bug makes it harder to write a benchmark for read_all_available.

What testing has been done?

Ran benchmarks locally.

Samps per chan already takes num_channels into account.
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

Test Results

    42 files  ±0      42 suites  ±0   1h 3m 2s ⏱️ +42s
 3 110 tests ±0   2 451 ✅ ±0     659 💤 ±0  0 ❌ ±0 
51 408 runs  ±0  40 974 ✅ ±0  10 434 💤 ±0  0 ❌ ±0 

Results for commit 4e91b15. ± Comparison against base commit 4771be1.

@bkeryan bkeryan merged commit da2233f into master Nov 10, 2025
29 checks passed
@bkeryan bkeryan deleted the users/bkeryan/fix-benchmark-buffer-size branch November 10, 2025 14:54
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.

4 participants