[Zope] Zope 2.5.2 vrs 2.7b2 for speed

BZ bz at bwanazulia.com
Thu Sep 4 07:42:20 EDT 2003


I went back to check and found a few things:

- someone (me) had put a RAM cache on index_html in the 2.5.2 install 
so I removed it
- the 2.5.2 index_html method called standard header and footers so I 
added that to the 2.7b2
- I could not figure out how to up my ZODB cache in 2.7b2 so I lowered 
the 2.5.2 to 400 items
- Made sure both were debugging off, running FTP, had 20 threads and 
had an interval check of 3000 (tried a few different ones, they didn't 
seem to make much difference)

New results, best of three tries:

Zope 2.5.2 for MacOSX 10.2.6 running on 1 Ghz G4 w/ 2GB of RAM
Server Software:        Zope/(Zope
Server Hostname:        10.0.1.2
Server Port:            8080

Document Path:          /
Document Length:        3203 bytes

Concurrency Level:      25
Time taken for tests:   9.557 seconds
Complete requests:      500
Failed requests:        0
Broken pipe errors:     0
Total transferred:      1723868 bytes
HTML transferred:       1607906 bytes
Requests per second:    52.32 [#/sec] (mean)
Time per request:       477.85 [ms] (mean)
Time per request:       19.11 [ms] (mean, across all concurrent 
requests)
Transfer rate:          180.38 [Kbytes/sec] received

Zope 2.7b2 complied from source with Python 2.3 on MacOSX 10.2.6 
running on 1 Ghz G4 w/ 2GB of RAM
Server Software:        Zope/(Zope
Server Hostname:        10.0.1.2
Server Port:            8080

Document Path:          /
Document Length:        3141 bytes

Concurrency Level:      25
Time taken for tests:   4.888 seconds
Complete requests:      500
Failed requests:        0
Broken pipe errors:     0
Total transferred:      1670835 bytes
HTML transferred:       1573641 bytes
Requests per second:    102.29 [#/sec] (mean)
Time per request:       244.40 [ms] (mean)
Time per request:       9.78 [ms] (mean, across all concurrent requests)
Transfer rate:          341.82 [Kbytes/sec] received

Connnection Times (ms)
               min  mean[+/-sd] median   max
Connect:        0     4   16.2      0    88
Processing:    91   234   46.7    228   421
Waiting:        7   233   47.4    228   421
Total:         91   237   39.4    228   421

Looks like I was smoking crack or something the first time, but I am 
sure that I was seeing the almost direct opposite. Just as an FYI, 
(because everyone likes to compare to apache, which is neither fair not 
relevant since it is usually against a static page) on the same 
machine, on Apache, I am getting around 500 RPS on a very static, 7K 
index.html. Still, with everything that Zope is doing to be 1/5 the 
speed is still damn impressive.

On a whim I tried 2.6.1 with python 2.1.3
Server Software:        Zope/(Zope
Server Hostname:        10.0.1.2
Server Port:            8080

Document Path:          /index_html
Document Length:        3169 bytes

Concurrency Level:      25
Time taken for tests:   10.021 seconds
Complete requests:      500
Failed requests:        0
Broken pipe errors:     0
Total transferred:      1706800 bytes
HTML transferred:       1590838 bytes
Requests per second:    49.90 [#/sec] (mean)
Time per request:       501.05 [ms] (mean)
Time per request:       20.04 [ms] (mean, across all concurrent 
requests)
Transfer rate:          170.32 [Kbytes/sec] received


BZ



On Thursday, September 4, 2003, at 04:55  AM, Chris Withers wrote:

> BZ wrote:
>> It was the index_html method  which just has a call to the zope start.
>> <dtml-var zope_quick_start>
>
> Hmmmm, is zope_quick_star a DTML method in both places?
>
> I'm wondering if it became a ZPT in 2.7b2 and that's what's causing 
> the speed difference?
>
> cheers,
>
> Chris
>
>




More information about the Zope mailing list