diff --git a/bindings/rust/standard/benchmarks/benches/throughput.rs b/bindings/rust/standard/benchmarks/benches/throughput.rs index 9acfee93671..0befe4df0d8 100644 --- a/bindings/rust/standard/benchmarks/benches/throughput.rs +++ b/bindings/rust/standard/benchmarks/benches/throughput.rs @@ -43,8 +43,8 @@ fn bench_throughput_for_library( } pub fn bench_throughput_cipher_suites(c: &mut Criterion) { - // arbitrarily large to cut across TLS record boundaries - let mut shared_buf = [0u8; 100000]; + // 10MB buffer - arbitrarily large to cut across TLS record boundaries. + let mut shared_buf = vec![0u8; 10_000_000]; for cipher_suite in CipherSuite::iter() { let mut bench_group = c.benchmark_group(format!("throughput-{cipher_suite:?}"));