Here’s a good test pulled from Basics of Basic Optimization
local function TestFunction()
--Insert the code to tesst
end
local Start = tick() --Start time in seconds
for i = 1, 1000 do --For 1,000 times...
TestFunction() --Call TestFunction
End
print(tick()-Start) --End time in seconds