This is the module sandbox page for Module:User:Mr. Stradivarius. |
local iterations = 1000000
local p = {}
function p.time(times, func, ...)
times = times or 1
local tick = os.clock()
for i=1, times do
func(...)
end
local tock = os.clock()
mw.log("Time taken: " .. (tock - tick))
end
function p.timedab()
local mDab = require('Module:Disambiguation/sandbox')
local content = mw.title.new('Paris'):getContent()
p.time(100, mDab.isDisambiguation, content)
end
return p