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:

On Thursday 21 April 2005 4:41 am, PA wrote:
Using ApacheBench simulating 10K requests from 10 clients, LuaWeb [2]
handles around 150 requests per seconds for dynamic content. Not
stelar, but good enough for its humble purpose :)

are you using keepalive? (-k in ab2) using localhost it doesn't make a such a difference, but over 100baseT it certainly does! Xavante went from 1100 to
2000 requests/sec with SAJAX (with 10, 100 and 250 clients)

To put those numbers in perspective, I ran AutoBench against a popular Ruby application: Instiki with Webrick.

http://instiki.org/
http://www.webrick.org/

Out of the box, Instiki barely manages 6 requests per seconds... as always such micro benchmarks don't mean much, etc, etc... but still... go, go Lua :))

% ab -n 1000 -c 10 http://localhost:2500/wiki/show/HomePage
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software:        WEBrick/1.3.1
Server Hostname:        localhost
Server Port:            2500

Document Path:          /wiki/show/HomePage
Document Length:        3098 bytes

Concurrency Level:      10
Time taken for tests:   181.281 seconds
Complete requests:      1000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      3326000 bytes
HTML transferred:       3098000 bytes
Requests per second:    5.52 [#/sec] (mean)
Time per request:       1812.81 [ms] (mean)
Time per request: 181.28 [ms] (mean, across all concurrent requests)
Transfer rate:          18.35 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0     6  132.3      0  2960
Processing:   872  1794  644.9   1662  6216
Waiting:      871  1794  644.9   1661  6215
Total:        872  1800  655.4   1662  6216

Percentage of the requests served within a certain time (ms)
  50%   1662
  66%   1837
  75%   1972
  80%   2053
  90%   2402
  95%   2786
  98%   4408
  99%   4925
 100%   6216 (last request)


Cheers

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