Skip to content

Commit

Permalink
Fix failing test. However, the ci has another failing test, which run…
Browse files Browse the repository at this point in the history
…s through locally
  • Loading branch information
janekdererste committed Jun 18, 2024
1 parent 12bb0c8 commit 13eb108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/experiments/stack_vs_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ fn run() {
);
println!("Heap result: {:?}, Time: {:?}", heap_result, heap_duration);

// divide by at least one
println!(
"Ratio Heap/Stack: {:?}",
heap_duration.as_nanos() / stack_duration.as_nanos()
heap_duration.as_nanos() / stack_duration.as_nanos().max(1)
)
}

Expand Down

0 comments on commit 13eb108

Please sign in to comment.