Skip to content

Commit

Permalink
set input size
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed Jun 5, 2024
1 parent 2dc7e43 commit 244ed2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bench_input_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ impl<I: 'static> InputGroup<I> {
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();
Expand Down

0 comments on commit 244ed2e

Please sign in to comment.