Skip to content

Commit 961a0c7

Browse files
committed
Bump version to 186.7.1
- update benchmark script - bump version of module
1 parent eb741f3 commit 961a0c7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

benchmark.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ local int = require("int")
1515
local loaded = os.clock()
1616

1717
os.execute("cls")
18-
print(("\nUsing Benchmark.\nUsing module version: %s (%s)"):format(int._VERSION or "UNKNOW", _VERSION))
19-
local MAXLOOP = arg[1] and tonumber(arg[1]:match("(%d+)$")) or 700
18+
local MAXLOOP = arg[1] and tonumber(arg[1]:match("(%d+)$")) or 500
19+
local MAXNLEN = arg[2] and tonumber(arg[2]:match("(%d+)$")) or 500
2020
local ALLSAME = false
2121
local n, c = {}, {}
2222

23+
print(("\nUsing Benchmark. %s/%s\nUsing module version: %s (%s)"):format(MAXLOOP, MAXNLEN, int._VERSION or "UNKNOW", _VERSION))
2324
local example_result = {}
2425
local avg = {i = 0, avg = 0}
2526
local operation_start = os.clock()
@@ -28,7 +29,7 @@ for i = 1, MAXLOOP do
2829
if not ALLSAME then
2930
n, c = {}, {}
3031
end
31-
for _ = 1, arg[2] and tonumber(arg[2]:match("(%d+)$")) or 300 do
32+
for _ = 1, MAXNLEN do
3233
n[#n + 1] = math.random(0, 9)
3334
c[#c + 1] = math.random(0, 9)
3435
end

0 commit comments

Comments
 (0)