Created
August 21, 2021 12:40
-
-
Save Shishqa/94152d538816fc64b68200336e6305d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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