lua-users home
lua-l archive

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



On Apr 21, 2005, at 17:39, Javier Guerra wrote:

are you using keepalive? (-k in ab2)

With ApacheBench? Nope.

  using localhost it doesn't make a such a
difference, but over 100baseT it certainly does!

Yep. That said, even supposedly well behaved clients (e.g. Apple's Safari) do tend to explicitly close their connections. Go figure.

Another trick perhaps worth implementing is to provide proper "last-modified" and "etag" so the server can handle "if-modified-since" and ""if-none-match" with a graceful "304 Not Modified". Both IE and the Mozilla family do send those headers.

And gzip is your friend :)

  Xavante went from 1100 to
2000 requests/sec with SAJAX (with 10, 100 and 250 clients)

Excellent! This nicely illustrates that even a tiny Lua HTTP server can perform quite decently :)

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/