lua-users home
lua-l archive

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


On my system[1], I get the following:

defiant:/tmp/lua-big-script% time lua -i show.lua <<EOF
dofile("default.lua")
os.exit()
EOF
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> dofile("default.lua")
> os.exit()
lua -i show.lua <<< 'dofile("default.lua") os.exit()'  4.33s user 0.33s
system 99% cpu 4.667 total
defiant:/tmp/lua-big-script% 


All other variants take about the same time.

[1] Linux version 2.6.31-1-amd64 (Debian 2.6.31-1), 2 x Intel(R) Xeon(R)
E5310 @ 1.60GHz, 8GB memory

</nk>