mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-17 02:38: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")
|