MCPcopy Create free account
hub / github.com/apache/arrow-rs / bench_array_reader

Function bench_array_reader

parquet/benches/arrow_reader.rs:825–837  ·  view source on GitHub ↗
(mut array_reader: Box<dyn ArrayReader>)

Source from the content-addressed store, hash-verified

823}
824
825fn bench_array_reader(mut array_reader: Box<dyn ArrayReader>) -> usize {
826 // test procedure: read data in batches of 8192 until no more data
827 let mut total_count = 0;
828 loop {
829 let array = array_reader.next_batch(BATCH_SIZE);
830 let array_len = array.unwrap().len();
831 total_count += array_len;
832 if array_len < BATCH_SIZE {
833 break;
834 }
835 }
836 total_count
837}
838
839fn bench_array_reader_skip(mut array_reader: Box<dyn ArrayReader>) -> usize {
840 // test procedure: read data in batches of 8192 until no more data

Callers 6

bench_byte_decimalFunction · 0.85
bench_f16Function · 0.85
bench_flbaFunction · 0.85
bench_primitiveFunction · 0.85
bench_struct_primitiveFunction · 0.85
add_benchesFunction · 0.85

Calls 2

next_batchMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected