"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/command.rs" between
hyperfine-1.14.0.tar.gz and hyperfine-1.15.0.tar.gz

About: hyperfine is a command-line benchmarking tool.

command.rs  (hyperfine-1.14.0):command.rs  (hyperfine-1.15.0)
skipping to change at line 182 skipping to change at line 182
) )
.into()); .into());
} }
let mut i = 0; let mut i = 0;
let mut commands = Vec::with_capacity(param_space_size); let mut commands = Vec::with_capacity(param_space_size);
let mut index = vec![0usize; dimensions.len()]; let mut index = vec![0usize; dimensions.len()];
'outer: loop { 'outer: loop {
let name = command_names let name = command_names
.get(i) .get(i)
.or_else(|| command_names.get(0)) .or_else(|| command_names.first())
.copied(); .copied();
i += 1; i += 1;
let (command_index, params_indices) = index.split_first().unwrap (); let (command_index, params_indices) = index.split_first().unwrap ();
let parameters: Vec<_> = param_names_and_values let parameters: Vec<_> = param_names_and_values
.iter() .iter()
.zip(params_indices) .zip(params_indices)
.map(|((name, values), i)| (*name, ParameterValue::Text(valu es[*i].clone()))) .map(|((name, values), i)| (*name, ParameterValue::Text(valu es[*i].clone())))
.collect(); .collect();
commands.push(Command::new_parametrized( commands.push(Command::new_parametrized(
skipping to change at line 274 skipping to change at line 274
param_count, param_count,
)); ));
} }
let mut i = 0; let mut i = 0;
let mut commands = vec![]; let mut commands = vec![];
for value in param_range { for value in param_range {
for cmd in &command_strings { for cmd in &command_strings {
let name = command_names let name = command_names
.get(i) .get(i)
.or_else(|| command_names.get(0)) .or_else(|| command_names.first())
.copied(); .copied();
commands.push(Command::new_parametrized( commands.push(Command::new_parametrized(
name, name,
cmd, cmd,
vec![(param_name, ParameterValue::Numeric(value.into()))], vec![(param_name, ParameterValue::Numeric(value.into()))],
)); ));
i += 1; i += 1;
} }
} }
Ok(commands) Ok(commands)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)