comparison etc/check-memory.lua @ 0:4b915342e2a8

LuaSocket 2.0.2 + CMake build description.
author Eric Wing <ewing . public |-at-| gmail . com>
date Tue, 26 Aug 2008 18:40:01 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4b915342e2a8
1 function load(s)
2 collectgarbage()
3 local a = gcinfo()
4 _G[s] = require(s)
5 collectgarbage()
6 local b = gcinfo()
7 print(s .. ":\t " .. (b-a) .. "k")
8 end
9
10 load("socket.url")
11 load("ltn12")
12 load("socket")
13 load("mime")
14 load("socket.tp")
15 load("socket.smtp")
16 load("socket.http")
17 load("socket.ftp")