T-97: pre-fetch bson 3.1.0 into Cargo.lock, enable compat-3-0-0 feature, and fix bench borrow
This commit is contained in:
parent
01bcf85631
commit
08b80dafae
3 changed files with 218 additions and 13 deletions
|
|
@ -6,6 +6,6 @@ authors.workspace = true
|
|||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
bson = { version = "=3.1.0", default-features = false }
|
||||
bson = { version = "=3.1.0", default-features = false, features = ["compat-3-0-0"] }
|
||||
parquet = { version = "=60.2.0", default-features = false, features = ["zstd"] }
|
||||
|
||||
|
|
|
|||
|
|
@ -3745,6 +3745,7 @@ pub fn run_bson_eod_prices_benchmark(rows: usize) -> BsonEodPricesBenchReport {
|
|||
|
||||
let bytes = buffer.len();
|
||||
let mut hash = 0u64;
|
||||
let mut err_hash = 0u64;
|
||||
|
||||
let start = Instant::now();
|
||||
let stats = decode_eod_price_buffer(
|
||||
|
|
@ -3759,7 +3760,7 @@ pub fn run_bson_eod_prices_benchmark(rows: usize) -> BsonEodPricesBenchReport {
|
|||
hash = mix_u64(hash, bar.adj_volume.to_bits());
|
||||
},
|
||||
|offset, _err| {
|
||||
hash = mix_u64(hash, offset as u64 ^ 0xDEAD_BEEF_CAFE_BABEu64);
|
||||
err_hash = mix_u64(err_hash, offset as u64 ^ 0xDEAD_BEEF_CAFE_BABEu64);
|
||||
},
|
||||
);
|
||||
let elapsed_secs = start.elapsed().as_secs_f64();
|
||||
|
|
@ -3770,7 +3771,7 @@ pub fn run_bson_eod_prices_benchmark(rows: usize) -> BsonEodPricesBenchReport {
|
|||
} else {
|
||||
0.0
|
||||
};
|
||||
let checksum = black_box(hash);
|
||||
let checksum = black_box(hash ^ err_hash);
|
||||
|
||||
BsonEodPricesBenchReport {
|
||||
rows,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue