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.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a22a3b2d4ea3b40c

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