Quick benchmark of cache



               Time    Requests Per Second    Transfer Rate
Just Apache 5.072 985.80 8239.16 kb/s
Cache          19.652      254.43                               2097.97 kb/s
No Cache       72.438      69.02                                 567.80 kb/s

As you can see the cache is a huge speed advantage over generating cache page, even though this page is pretty simple just a
echo str_repeat("<h1>Testing</h1>",500);

The reason for this is of course the overhead of doing output buffering, and the fact that each page is being written to the cache while not bad my pIII 700 mhz with 256mb of ram can't fill a T1 without the cache

Well thats a basic benchmark, if the cache isn't fast enough yet i'll put more work into it, otherwise i'll just leave it as it is and work on adding
other features.

-josh


The first time is the display of a cached test page, the second time is the display of the copy through just apache, the third run is the generated page with the cache turned off.
[jeichorn residual bin]$ ./ab localhost/gnomeweb2/index.xml -n 5000 -c 50
This is ApacheBench, Version 1.3c <$Revision: 1.44 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2000 The Apache Group, http://www.apache.org/

Server Software: Apache/1.3.20 Server Hostname: localhost
Server Port:            80

Document Path:          /gnomeweb2/index.xml
Document Length:        8040 bytes

Concurrency Level:      50
Time taken for tests:   19.652 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      41229218 bytes
HTML transferred:       40360758 bytes
Requests per second:    254.43
Transfer rate:          2097.97 kb/s received

Connnection Times (ms)
             min   avg   max
Connect:        0    36   163
Processing:    49   157   825
Total:         49   193   988
[jeichorn residual bin]$ ./ab localhost/gnomeweb2/index.html -n 5000 -c 50
This is ApacheBench, Version 1.3c <$Revision: 1.44 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2000 The Apache Group, http://www.apache.org/

Server Software: Apache/1.3.20 Server Hostname: localhost
Server Port:            80

Document Path:          /gnomeweb2/index.html
Document Length:        8040 bytes

Concurrency Level:      50
Time taken for tests:   5.072 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      41788999 bytes
HTML transferred:       40465320 bytes
Requests per second:    985.80
Transfer rate:          8239.16 kb/s received

Connnection Times (ms)
             min   avg   max
Connect:        4    23    53
Processing:    35    26    34
Total:         39    49    87
[jeichorn residual bin]$ ./ab localhost/gnomeweb2/index.xml -n 5000 -c 50
This is ApacheBench, Version 1.3c <$Revision: 1.44 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2000 The Apache Group, http://www.apache.org/

Server Software: Apache/1.3.20 Server Hostname: localhost
Server Port:            80

Document Path:          /gnomeweb2/index.xml
Document Length:        8040 bytes

Concurrency Level:      50
Time taken for tests:   72.438 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      41130557 bytes
HTML transferred:       40264173 bytes
Requests per second:    69.02
Transfer rate:          567.80 kb/s received

Connnection Times (ms)
             min   avg   max
Connect:        0   132   586
Processing:    13   586  3639
Total:         13   718  4225






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