Skip to content

Commit 8df7a98

Browse files
committed
Add missing file
1 parent ffe2ff0 commit 8df7a98

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/batcher/src/types/batch_queue.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,14 +1062,13 @@ mod test {
10621062

10631063
// With serde_bytes, CBOR should be very efficient (close to 1.0x)
10641064
assert!(
1065-
cbor_efficiency_ratio < 1.1,
1065+
cbor_efficiency_ratio < 1.01,
10661066
"CBOR serialization should be efficient with serde_bytes. Ratio: {:.3}x",
10671067
cbor_efficiency_ratio
10681068
);
10691069

1070-
// Verify CBOR uses byte strings, not arrays by checking the whole struct efficiency
1071-
// If serde_bytes is working, the struct should be encoded efficiently
1072-
// (Individual Vec<u8> serialization bypasses struct annotations)
1070+
// Verify CBOR encodes binary data efficiently with serde_bytes
1071+
// Should be close to 1.0x overhead (raw data size vs CBOR size)
10731072

10741073
// The estimation should be an upper bound
10751074
assert!(

0 commit comments

Comments
 (0)