File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 ! (
You can’t perform that action at this time.
0 commit comments