lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Eric Wing once stated:
> 
> Also, if anybody finds this data point useful, I measured a single
> baseline Lua state to take about 4-5KB of RAM on a 64-bit Mac.

  I did this some time ago.  The output is the amount of bytes per library
(the first line is an empty state, thus no size for the first column), the
second is the accumulated amount of memory used, and last the largest amount
of memory used up to that point.

x86 32 bit system, Linux:

(empty)         2371    2371
        3156    5527    5564
package 2310    7837    8994
table   884     8721    8994
io      2290    11011   11031
os      1461    12472   12810
string  1166    13638   13695
math    2159    15797   15817
debug   1236    17033   17053

x86-64 64 bit system, Linux:

(empty)         3627    3692
        5024    8651    8716
package 3360    12011   13678
table   1368    13379   13678
io      3634    17013   17053
os      2505    19518   20256
string  1842    21360   21465
math    3391    24751   24791
debug   1916    26667   26707

  -spc