Skip to content

Commit

Permalink
Fix benchmark for subtraction. (#92)
Browse files Browse the repository at this point in the history
In particular, the timings for "small, overflow" were nonsensical, since
they did not exercise any overflow.
  • Loading branch information
silene authored Nov 12, 2020
1 parent c379dfe commit 6028d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/timings.ml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let add (x, y) =

let sub (x, y) =
for i = 1 to 50_000_000 do
ignore (Sys.opaque_identity (Z.add x y))
ignore (Sys.opaque_identity (Z.sub x y))
done;
50_000_000

Expand Down

0 comments on commit 6028d67

Please sign in to comment.