[zope2-tracker] [Bug 486182] Re: Support for method cache in ExtensionClass

Yoshinori K. Okuji okuji at enbug.org
Mon Nov 23 02:57:44 EST 2009


I don't know what a typical site is, as every application on top of
Zope2 is heavily customized. For now, Zope 2.12 is too new to test
complex projects, such as Plone and ERP5, so I made a simple test
against the default installation of ZWiki 2:

(original)
$ ab -n 500 http://localhost:8080/zwiki/FrontPage
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to 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
Finished 500 requests


Server Software:        Zope/(2.12.2-dev,
Server Hostname:        localhost
Server Port:            8080

Document Path:          /zwiki/FrontPage
Document Length:        7679 bytes

Concurrency Level:      1
Time taken for tests:   54.929 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      3983000 bytes
HTML transferred:       3839500 bytes
Requests per second:    9.10 [#/sec] (mean)
Time per request:       109.857 [ms] (mean)
Time per request:       109.857 [ms] (mean, across all concurrent requests)
Transfer rate:          70.81 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       1
Processing:   106  110   3.9    109     149
Waiting:       95  109   3.9    108     148
Total:        107  110   3.9    109     149

Percentage of the requests served within a certain time (ms)
  50%    109
  66%    109
  75%    109
  80%    110
  90%    116
  95%    119
  98%    121
  99%    122
 100%    149 (longest request)
$ ab -n 500 'http://localhost:8080/zwiki/FrontPage/searchwiki?expr=this'
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to 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
Finished 500 requests


Server Software:        Zope/(2.12.2-dev,
Server Hostname:        localhost
Server Port:            8080

Document Path:          /zwiki/FrontPage/searchwiki?expr=this
Document Length:        5642 bytes

Concurrency Level:      1
Time taken for tests:   39.018 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      2920000 bytes
HTML transferred:       2821000 bytes
Requests per second:    12.81 [#/sec] (mean)
Time per request:       78.035 [ms] (mean)
Time per request:       78.035 [ms] (mean, across all concurrent requests)
Transfer rate:          73.08 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       1
Processing:    75   78   3.1     77     110
Waiting:       67   77   3.0     76     108
Total:         75   78   3.1     77     110

Percentage of the requests served within a certain time (ms)
  50%     77
  66%     78
  75%     78
  80%     78
  90%     79
  95%     86
  98%     88
  99%     90
 100%    110 (longest request)

(modified)
$ ab -n 500 http://localhost:8080/zwiki/FrontPage
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to 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
Finished 500 requests


Server Software:        Zope/(2.12.2-dev,
Server Hostname:        localhost
Server Port:            8080

Document Path:          /zwiki/FrontPage
Document Length:        7680 bytes

Concurrency Level:      1
Time taken for tests:   54.630 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      3983500 bytes
HTML transferred:       3840000 bytes
Requests per second:    9.15 [#/sec] (mean)
Time per request:       109.260 [ms] (mean)
Time per request:       109.260 [ms] (mean, across all concurrent requests)
Transfer rate:          71.21 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       2
Processing:   106  109   3.6    108     139
Waiting:       99  108   3.5    107     138
Total:        106  109   3.6    108     140

Percentage of the requests served within a certain time (ms)
  50%    108
  66%    109
  75%    109
  80%    109
  90%    114
  95%    118
  98%    119
  99%    125
 100%    140 (longest request)
$ ab -n 500 'http://localhost:8080/zwiki/FrontPage/searchwiki?expr=this'
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to 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
Finished 500 requests


Server Software:        Zope/(2.12.2-dev,
Server Hostname:        localhost
Server Port:            8080

Document Path:          /zwiki/FrontPage/searchwiki?expr=this
Document Length:        5642 bytes

Concurrency Level:      1
Time taken for tests:   38.907 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      2920000 bytes
HTML transferred:       2821000 bytes
Requests per second:    12.85 [#/sec] (mean)
Time per request:       77.814 [ms] (mean)
Time per request:       77.814 [ms] (mean, across all concurrent requests)
Transfer rate:          73.29 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:    75   78   3.1     77     108
Waiting:       64   77   3.0     76     106
Total:         75   78   3.1     77     108

Percentage of the requests served within a certain time (ms)
  50%     77
  66%     77
  75%     78
  80%     78
  90%     79
  95%     86
  98%     88
  99%     90
 100%    108 (longest request)

So the speedup is not dramatic in this case, but still slightly faster
consistently.

-- 
Support for method cache in ExtensionClass
https://bugs.launchpad.net/bugs/486182
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list