Skip to content

Commit

Permalink
Two decimal digits.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Aug 23, 2023
1 parent d0d2052 commit a0a65cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/test-cpp_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn test_packed(num_moves: usize) {
println!("{:?}", current.bytes);
let duration = start.elapsed();
println!(
"Time elapsed for {} moves (packed) without hashing (minimal allocation): {:?} ({:.1}M moves/s)",
"Time elapsed for {} moves (packed) without hashing (minimal allocation): {:?} ({:.2}M moves/s)",
num_moves,
duration,
(std::convert::TryInto::<f64>::try_into(num_moves as u32).unwrap()
Expand All @@ -78,7 +78,7 @@ fn test_packed(num_moves: usize) {
println!("{:?}", state.bytes);
let duration = start.elapsed();
println!(
"Time elapsed for {} moves (packed) without hashing: {:?} ({:.1}M moves/s)",
"Time elapsed for {} moves (packed) without hashing: {:?} ({:.2}M moves/s)",
num_moves,
duration,
(std::convert::TryInto::<f64>::try_into(num_moves as u32).unwrap()
Expand Down Expand Up @@ -143,7 +143,7 @@ fn test_unpacked(num_moves: usize) {
// );
let duration = start.elapsed();
println!(
"Time elapsed for {} moves (unpacked) without hashing: {:?} ({:.1}M moves/s)",
"Time elapsed for {} moves (unpacked) without hashing: {:?} ({:.2}M moves/s)",
num_moves,
duration,
(std::convert::TryInto::<f64>::try_into(num_moves as u32).unwrap()
Expand Down

0 comments on commit a0a65cf

Please sign in to comment.