diff --git a/sn_client/benches/serialize.rs b/sn_client/benches/serialize.rs index c18bb82bb8..5d74cddd67 100644 --- a/sn_client/benches/serialize.rs +++ b/sn_client/benches/serialize.rs @@ -105,9 +105,8 @@ fn criterion_benchmark(c: &mut Criterion) { Err(_error) => panic!("Could not serialize the msg bytes"), }; - group.throughput(Throughput::Bytes( - (std::mem::size_of_val(&msg_bytes) * dsts.len()) as u64, - )); + group.throughput(Throughput::Bytes((&msg_bytes.len() * dsts.len()) as u64)); + // upload and read group.bench_with_input( "generating bytes to send the same msg to various Dsts",