This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TableCountTest() | |
local function RunTest(numValues, countFunc) | |
local t = {} | |
for i = 1, numValues do | |
t["key_"..i] = i | |
end | |
assert(countFunc(t) == numValues) | |
local numLoops = 10000 | |
local startTime = debugprofilestop() | |
for _ = 1, numLoops do |