Skip to content

Commit ce8faa8

Browse files
committed
Remove module in the multiplication benchmark
1 parent 3f8187a commit ce8faa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bench.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ local function benchmark_mul()
7070
local r, it = 1, 100000
7171
local bm = BenchmarkStart("Multiplication", it)
7272

73-
for i = 1, it do
74-
r = (r * i) % 1000000007 -- Keep the result small to avoid overflow
73+
for _ = 1, it do
74+
r = (r * 1.000000001)
7575
end
7676

7777
BenchmarkEnd(bm)

0 commit comments

Comments
 (0)