alamb commented on code in PR #8037: URL: https://github.com/apache/arrow-rs/pull/8037#discussion_r2254291163
########## parquet/benches/metadata.rs: ########## @@ -36,6 +167,20 @@ fn criterion_benchmark(c: &mut Criterion) { SerializedFileReader::new_with_options(data.clone(), options).unwrap() }) }); + + let meta_data = get_footer_bytes(data); + c.bench_function("decode file metadata", |b| { + b.iter(|| { + parquet::thrift::bench_file_metadata(&meta_data); + }) + }); + + let buf = black_box(encoded_meta()).into(); + c.bench_function("decode file metadata (wide)", |b| { + b.iter(|| { + parquet::thrift::bench_file_metadata(&buf); + }) + }); Review Comment: I wonder if there is any other interesting metadata benchmarks we should add? This looks like a good start 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org