ab-comparing FOW and Django

By farcaller December 2nd, 2008

I’ve fixed all the stuff that prevented CTemplate from running on linux and did a quick test of FOW and Django using ab (apache benchmark).

Benchmark consisted of resolving a typical URL regexp, loading handler, loading template and rendering static context onto it. Both Django and FOW were running with 2 threads attached to lighttpd via FCGI.

Django:

Concurrency Level:      20
Time taken for tests:   0.403 seconds
Complete requests:      500
Failed requests:        421
   (Connect: 0, Receive: 0, Length: 421, Exceptions: 0)
Write errors:           0
Non-2xx responses:      421
Keep-Alive requests:    403
Total transferred:      257544 bytes
HTML transferred:       173835 bytes
Requests per second:    1239.72 [#/sec] (mean)
Time per request:       16.133 [ms] (mean)
Time per request:       0.807 [ms] (mean, across all concurrent requests)
Transfer rate:          623.60 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       3
Processing:     1   12  23.1      3     188
Waiting:        1   12  22.7      3     162
Total:          1   12  23.3      3     188

Percentage of the requests served within a certain time (ms)
  50%      3
  66%      3
  75%      3
  80%      4
  90%     64
  95%     66
  98%     68
  99%     76
 100%    188 (longest request)

FOW:

Concurrency Level:      20
Time taken for tests:   0.916 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Keep-Alive requests:    480
Total transferred:      179400 bytes
HTML transferred:       104000 bytes
Requests per second:    545.79 [#/sec] (mean)
Time per request:       36.644 [ms] (mean)
Time per request:       1.832 [ms] (mean, across all concurrent requests)
Transfer rate:          191.24 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       1
Processing:     7   36  14.8     29      83
Waiting:        7   36  14.8     29      83
Total:          7   36  14.8     29      83

Percentage of the requests served within a certain time (ms)
  50%     29
  66%     32
  75%     41
  80%     45
  90%     53
  95%     81
  98%     82
  99%     82
 100%     83 (longest request)

This entry was posted on Tuesday, December 2nd, 2008 at 19:06 and is filed under Prototyping. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply