criterion.rs
criterion.rs copied to clipboard
book: fix an example of throughput measurements
This PR fixes a mistake in an example of throughput measurements in the book.
In an example code of throughput measurements,
-
elems
is used before it is defined. This seems to be a mistake forelements
. - the arguments of the third parameter
bench_with_input
iselem, b
. It seems to be a mistake forb, elem