etseidl commented on code in PR #8037:
URL: https://github.com/apache/arrow-rs/pull/8037#discussion_r2255133810


##########
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'm sure more will come to mind as we tinker with the new decoder.



-- 
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]

Reply via email to