alamb commented on code in PR #7120:
URL: https://github.com/apache/arrow-rs/pull/7120#discussion_r1972004065
##########
arrow-ipc/benches/ipc_reader.rs:
##########
@@ -123,6 +163,46 @@ fn criterion_benchmark(c: &mut Criterion) {
});
}
+/// Return an IPC stream with 10 record batches
+fn ipc_stream() -> Vec<u8> {
+ let batch = create_batch(8192, true);
+ let mut buffer = Vec::with_capacity(2 * 1024 * 1024);
+ let mut writer = StreamWriter::try_new(&mut buffer,
batch.schema().as_ref()).unwrap();
+ for _ in 0..10 {
+ writer.write(&batch).unwrap();
+ }
+ writer.finish().unwrap();
+ buffer
+}
+
+/// Return an IPC stream with ZSTD compression with 10 record batches
+fn ipc_stream_zstd() -> Vec<u8> {
Review Comment:
this was a good suggestion -- I did it in 7d3f0200e6 🧹
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]