Module:User:Mr. Stradivarius/sandbox

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