pub fn batch_size(arg: &str) -> Result<usize>
Expand description
Parses a batch size.
This function accepts either a number (possibly followed by a
SI or NIST multiplier k, M, G, T, P, ki, Mi, Gi, Ti, or Pi), or a percentage
(followed by a %
) that is interpreted as a percentage of the core
memory. The function returns the number of pairs to be used for batches.