local x = 10000000 -- 1千万次v = "111"s = os.time()for i=0,x,1 doz = string.format("%s %s %s",v,v,v)endprint("111", os.time()-s)s = os.time()for i=0,x,1 doz = v..v..vendprint("222", os.time()-s)v = 111s = os.time()for i=0,x,1 doz = tostring(v)..tostring(v)..tostring(v)endprint("333", os.time()-s)
111 5222 1333 20
评论