Use bincode fixint for benchmarks because it's faster than varint.
(v: &(impl Serialize + ?Sized))
| 105 | |
| 106 | // Use bincode fixint for benchmarks because it's faster than varint. |
| 107 | fn bincode_serialize(v: &(impl Serialize + ?Sized)) -> Vec<u8> { |
| 108 | bincode::serialize(v).unwrap() |
| 109 | } |
| 110 | fn bincode_deserialize<T: DeserializeOwned>(v: &[u8]) -> T { |
| 111 | bincode::deserialize(v).unwrap() |
| 112 | } |
nothing calls this directly
no test coverage detected