You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Weijun-H (via GitHub)" <gi...@apache.org> on 2026/01/02 13:57:15 UTC
[PR] chore: increase row count and batch size for more deterministic tests [arrow-rs]
Weijun-H opened a new pull request, #9088:
URL: https://github.com/apache/arrow-rs/pull/9088
# Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax.
-->
- Closes #NNN.
# Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->
# What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->
# Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
# Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
If there are any breaking changes to public APIs, please call them out.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: increase row count and batch size for more deterministic tests [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #9088:
URL: https://github.com/apache/arrow-rs/pull/9088#issuecomment-3719201215
Thanks @Weijun-H and @Jefffrey
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: increase row count and batch size for more deterministic tests [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #9088:
URL: https://github.com/apache/arrow-rs/pull/9088#discussion_r2666399032
##########
arrow-json/benches/serde.rs:
##########
@@ -22,12 +22,15 @@ use rand::{Rng, rng};
use serde::Serialize;
use std::sync::Arc;
+const ROWS: usize = 1 << 18;
+
#[allow(deprecated)]
fn do_bench<R: Serialize>(c: &mut Criterion, name: &str, rows: &[R], schema: &Schema) {
let schema = Arc::new(schema.clone());
+ let batch_size = rows.len();
c.bench_function(name, |b| {
b.iter(|| {
- let builder = ReaderBuilder::new(schema.clone()).with_batch_size(64);
+ let builder = ReaderBuilder::new(schema.clone()).with_batch_size(batch_size);
Review Comment:
I think a batch size of 256k (2**18) is also too big -- can we use 4K or 8KB instead? I think that would be more realistic?
Parsing 256K rows does make sense to me
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: increase row count and batch size for more deterministic tests [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #9088:
URL: https://github.com/apache/arrow-rs/pull/9088
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org