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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ coverage.xml
*.cover
*.py,cover
.hypothesis/
# hegeltest's example database, the Rust equivalent of .hypothesis/
.hegel/
.pytest_cache/
cover/

Expand Down
85 changes: 83 additions & 2 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ glob = "0.3.2"
goldenfile = "1"
half = { version = "2.7.1", features = ["std", "num-traits"] }
hashbrown = "0.17.1"
hegeltest = "0.28.7"
http = "1.5.0"
humansize = "2.1.3"
indicatif = "0.18.0"
Expand Down
2 changes: 2 additions & 0 deletions encodings/decimal-byte-parts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ vortex-session = { workspace = true }

[dev-dependencies]
divan = { workspace = true }
hegeltest = { workspace = true }
rand = { workspace = true }
rstest = { workspace = true }
vortex-array = { path = "../../vortex-array", features = ["_test-harness"] }
vortex-bench-support = { workspace = true }

[[bench]]
name = "dbp_assemble"
Expand Down
1 change: 1 addition & 0 deletions encodings/decimal-byte-parts/benches/dbp_assemble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fn main() {
divan::main();
}

#[vortex_bench_support::cpu_features]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you do this over the kernel working with [T] not vortex arrays. This is more noisy so it would be nice to only run if over small loops with allocs

#[divan::bench(args = cases())]
fn dbp_assemble(bencher: Bencher, (values_type, len): (DecimalType, usize)) {
let decimal = decimal_array(values_type, len, Validity::NonNullable);
Expand Down
8 changes: 8 additions & 0 deletions encodings/decimal-byte-parts/benches/dbp_split.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,19 @@ fn main() {
divan::main();
}

#[vortex_bench_support::cpu_features]
#[divan::bench(args = cases())]
fn dbp_split_all_valid(bencher: Bencher, (values_type, len): (DecimalType, usize)) {
bench_split(bencher, values_type, len, Validity::AllValid);
}

#[vortex_bench_support::cpu_features]
#[divan::bench(args = cases())]
fn dbp_split_all_null(bencher: Bencher, (values_type, len): (DecimalType, usize)) {
bench_split(bencher, values_type, len, Validity::AllInvalid);
}

#[vortex_bench_support::cpu_features]
#[divan::bench(args = cases())]
fn dbp_split_mixed_null(bencher: Bencher, (values_type, len): (DecimalType, usize)) {
let mut rng = StdRng::seed_from_u64(42);
Expand Down
Loading
Loading