模組:沙盒/Cwek/StringJoin

local p = {}

function p.join1(frame) 
	local a = 'abc'
	local b = '789'
	local c = 'QWE'
	local _
		
	for i=1,1000000 do 
		_ = a..b..c..tostring(i)
	end
	return _
end

function tableJoinStr(...)
	return table.concat(arg, '')
end

function p.join2(frame)
	local a = 'abc'
	local b = '789'
	local c = 'QWE'
	local _
	
	for i=1,1000000 do 
		_ = tableJoinStr(a,b,c,i)
	end 
	return _
end

return p