Module:Performance Test

local p = {}

local utilsPage = require("Module:UtilsPage")

local ITERATIONS = 75

function p.Noop(frame) -- no-op end

function p.A(frame) for i=1, ITERATIONS do		local file = mw.ext.cargo.query("Images", "type, licensing", {			limit = 1,			where = "licensing = 'Copyright'",		}) mw.logObject(file[1].licensing) end end

function p.B(frame) for i=1, ITERATIONS do 		local file = mw.title.new("File:00.jpg") mw.log(file.file.width) end end

return p