Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Sandbox/Ahecht/benchmark

From Wikipedia, the free encyclopedia
local p = {}

function p.ustring()
	for i = 1, 1000000 do 
		mw.ustring.match(" abcde ",'%S')
	end
	return "done"
end

function p.string()
	for i = 1, 1000000 do 
		string.match(" abcde ",'%S')
	end
	return "done"
end

function p.ipairs()
	a = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
	for i = 1, 1000000 do 
		for k, v in ipairs(a) do
		end
	end
	return "done"
end

function p.pairs()
	a = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
	for i = 1, 1000000 do 
		for k, v in pairs(a) do
		end
	end
	return "done"
end
return p