From 244ed2e55005c7eac2d40299ccb382776dffc194 Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Thu, 6 Jun 2024 06:49:45 +0800 Subject: [PATCH] set input size --- src/bench_input_group.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bench_input_group.rs b/src/bench_input_group.rs index d667b69..5c43323 100644 --- a/src/bench_input_group.rs +++ b/src/bench_input_group.rs @@ -143,7 +143,9 @@ impl InputGroup { let named_input: NamedInput<'static, I> = unsafe { transmute_lifetime(named_input) }; - group.set_input_size(input.input_size_in_bytes.unwrap()); + if let Some(input_size) = input.input_size_in_bytes { + group.set_input_size(input_size); + } group.register_named_with_input(bench, named_input); } group.run();