Skip to content

Instantly share code, notes, and snippets.

@Shishqa
Created August 21, 2021 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shishqa/94152d538816fc64b68200336e6305d3 to your computer and use it in GitHub Desktop.
Save Shishqa/94152d538816fc64b68200336e6305d3 to your computer and use it in GitHub Desktop.
local chunk = [[
function lua_global_f()
local str = string.rep("%d", 100)
end
]]
for i=1,1000000 do
local f, err = loadstring(chunk:format(i))
assert(f, err)
f()
lua_global_f()
end
collectgarbage()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment