Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ rust-version = "1.94.0"

[workspace.dependencies]
arrow = { version = "59.2.0", features = ["prettyprint", "ffi", "chrono-tz"] }
arrow-data = { version = "59.2.0" }
arrow-select = { version = "59.2.0" }
async-trait = { version = "0.1" }
bytes = { version = "1.11.1" }
Expand Down
1 change: 1 addition & 0 deletions native/shuffle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ publish = false

[dependencies]
arrow = { workspace = true }
arrow-data = { workspace = true }
arrow-select = { workspace = true }
async-trait = { workspace = true }
bytes = { workspace = true }
Expand Down
16 changes: 15 additions & 1 deletion native/shuffle/benches/shuffle_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ use arrow::ipc::reader::StreamReader;
use arrow::ipc::writer::IpcWriteContext;
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
use datafusion::physical_plan::metrics::Time;
use datafusion_comet_shuffle::{read_ipc_compressed, CompressionCodec, ShuffleBlockWriter};
use datafusion_comet_shuffle::{
read_ipc_compressed, reset_schema_cache, CompressionCodec, ShuffleBlockWriter,
};
use std::hint::black_box;
use std::io::Cursor;
use std::sync::Arc;
Expand Down Expand Up @@ -100,6 +102,18 @@ fn criterion_benchmark(c: &mut Criterion) {
|b, block| b.iter(|| black_box(read_ipc_compressed(black_box(block)).unwrap())),
);

// same decode with the cache cleared each iteration, so drift moves both arms together
group.bench_with_input(
BenchmarkId::new("decode_block_uncached", &id),
&uncompressed,
|b, block| {
b.iter(|| {
reset_schema_cache();
black_box(read_ipc_compressed(black_box(block)).unwrap())
})
},
);

// schema parse alone: `try_new` stops before the record batch. Skips the codec tag.
group.bench_with_input(
BenchmarkId::new("parse_schema_only", &id),
Expand Down
Loading
Loading