lua-users home
lua-l archive

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


A lua page will be just about the same speed as a simple cgilua.put as
long as the results of the parsing is cached.

I don't know how you have cgilua setup on the server, but if it is
restarted on every request... then no caching can occur.

It could also be something to do w/ Lua rings (if that's being used)
since every request would be in its own environment... thus no
caching.

On 3/14/07, gary ng <garyng2000@yahoo.com> wrote:
Hi,

I am playing with cgilua on my dreamhost account and
do some not very scientific benchmark(running ab from
another host where the ping latency is in the range of
30ms) among the following :

turbogear 0.5 request/sec
django    30 request/sec
cgilua(lua page) 9 request/sec
cgilua(simple print/cgilua.put) 70 request/sec

How can lua page be so much slower than using the same
cgilua modules but generate everything by hand?

While lua still beats the other by a wide margin(and
the memory footprint is much lower), doing everything
in it can be a bit painful.

Is there a faster template system that is compatible
with lua ?

--
Thomas Harning Jr.