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

Function bench_decode_binary

arrow-json/benches/json_reader.rs:162–172  ·  view source on GitHub ↗
(c: &mut Criterion, name: &str, data: &[u8], field: Arc<Field>)

Source from the content-addressed store, hash-verified

160}
161
162fn bench_decode_binary(c: &mut Criterion, name: &str, data: &[u8], field: Arc<Field>) {
163 c.bench_function(name, |b| {
164 b.iter(|| {
165 let mut decoder = ReaderBuilder::new_with_field(field.clone())
166 .with_batch_size(BATCH_SIZE)
167 .build_decoder()
168 .unwrap();
169 decode_and_flush(&mut decoder, data);
170 })
171 });
172}
173
174#[inline]
175fn append_hex_byte(buf: &mut String, byte: u8) {

Callers 1

bench_binary_hexFunction · 0.85

Calls 5

decode_and_flushFunction · 0.85
iterMethod · 0.45
build_decoderMethod · 0.45
with_batch_sizeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected