mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-27 21:08:21 +01:00
18 lines
275 B
Lua
18 lines
275 B
Lua
|
function load(s)
|
||
|
collectgarbage()
|
||
|
local a = gcinfo()
|
||
|
_G[s] = require(s)
|
||
|
collectgarbage()
|
||
|
local b = gcinfo()
|
||
|
print(s .. ":\t " .. (b-a) .. "k")
|
||
|
end
|
||
|
|
||
|
load("socket")
|
||
|
load("url")
|
||
|
load("ltn12")
|
||
|
load("mime")
|
||
|
load("tp")
|
||
|
load("smtp")
|
||
|
load("http")
|
||
|
load("ftp")
|