cleanup; move ./etc into ./samples and mark 'unsupported'
This commit is contained in:
parent
7187be8b76
commit
86de838eb5
18 changed files with 98 additions and 112 deletions
17
samples/check-memory.lua
Normal file
17
samples/check-memory.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
function load(s)
|
||||
collectgarbage()
|
||||
local a = gcinfo()
|
||||
_G[s] = require(s)
|
||||
collectgarbage()
|
||||
local b = gcinfo()
|
||||
print(s .. ":\t " .. (b-a) .. "k")
|
||||
end
|
||||
|
||||
load("socket.url")
|
||||
load("ltn12")
|
||||
load("socket")
|
||||
load("mime")
|
||||
load("socket.tp")
|
||||
load("socket.smtp")
|
||||
load("socket.http")
|
||||
load("socket.ftp")
|
Loading…
Add table
Add a link
Reference in a new issue