so ok.. I have been using perl for years.. I had an old site online a
looong time which had lots of old perl and really had to upgrade..things were real smooth BUT.. so I am doing this mod_perl2 thing..

and check out the benchmark between the same exact page, which is just a test page in written in perl/mod_perl, it loads a real big image, some perl output text/html etc.. first in cgi, then (handler) apache2::registry, then (handler) apache2::perlrun, it's an amazing difference!!

I actually ran the first old type cgi again last to make sure I wasn't seeing things.. should have done this a long time ago!

***  ***   ****   ***  ***

root [ /thisplace/apache2/thatplace ]# ab -c1 -n50 http://10.x.x.x/cgi-bin/pretty1
This is ApacheBench, Version 2.3 <$Revision: 1178079 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.x.x.x (be patient).....done


Server Software:        Apache
Server Hostname:        10.x.x.x
Server Port:            80

Document Path:          /cgi-bin/pretty1
Document Length:        1259 bytes

Concurrency Level:      1
Time taken for tests:   9.234 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      74950 bytes
HTML transferred:       62950 bytes
Requests per second:    5.41 [#/sec] (mean)
Time per request:       184.673 [ms] (mean)
Time per request: 184.673 [ms] (mean, across all concurrent requests)
Transfer rate:          7.93 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   182  184   3.6    184     201
Waiting:      177  181   4.0    181     199
Total:        182  185   3.6    184     201

Percentage of the requests served within a certain time (ms)
  50%    184
  66%    184
  75%    185
  80%    185
  90%    186
  95%    187
  98%    201
  99%    201
 100%    201 (longest request)

root [ /thisplace/apache2/thatplace ]# ab -c1 -n50 http://10.x.x.x/registry/pretty1
This is ApacheBench, Version 2.3 <$Revision: 1178079 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.x.x.x (be patient).....done


Server Software:        Apache
Server Hostname:        10.x.x.x
Server Port:            80

Document Path:          /registry/pretty1
Document Length:        1396 bytes

Concurrency Level:      1
Time taken for tests:   0.207 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      75600 bytes
HTML transferred:       69800 bytes
Requests per second:    240.96 [#/sec] (mean)
Time per request:       4.150 [ms] (mean)
Time per request: 4.150 [ms] (mean, across all concurrent requests)
Transfer rate:          355.80 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     3    4   1.8      3       9
Waiting:        0    3   1.2      2       6
Total:          3    4   1.8      3       9

Percentage of the requests served within a certain time (ms)
  50%      3
  66%      3
  75%      5
  80%      6
  90%      7
  95%      7
  98%      9
  99%      9
 100%      9 (longest request)

root [ /thisplace/apache2/thatplace ]# ab -c1 -n50 http://10.x.x.x/perlrun/pretty1
This is ApacheBench, Version 2.3 <$Revision: 1178079 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.x.x.x (be patient).....done


Server Software:        Apache
Server Hostname:        10.x.x.x
Server Port:            80

Document Path:          /perlrun/pretty1
Document Length:        1396 bytes

Concurrency Level:      1
Time taken for tests:   0.331 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      75600 bytes
HTML transferred:       69800 bytes
Requests per second:    151.15 [#/sec] (mean)
Time per request:       6.616 [ms] (mean)
Time per request: 6.616 [ms] (mean, across all concurrent requests)
Transfer rate:          223.18 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     5    6   1.7      5       9
Waiting:        0    4   0.9      4       7
Total:          5    6   1.7      5       9

Percentage of the requests served within a certain time (ms)
  50%      5
  66%      8
  75%      8
  80%      9
  90%      9
  95%      9
  98%      9
  99%      9
 100%      9 (longest request)

root [ /thisplace/apache2/thatplace ]# ab -c1 -n50 http://10.x.x.x/cgi-bin/pretty1
This is ApacheBench, Version 2.3 <$Revision: 1178079 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.x.x.x (be patient).....done


Server Software:        Apache
Server Hostname:        10.x.x.x
Server Port:            80

Document Path:          /cgi-bin/pretty1
Document Length:        1259 bytes

Concurrency Level:      1
Time taken for tests:   9.222 seconds
Complete requests:      50
Failed requests:        0
Write errors:           0
Total transferred:      74950 bytes
HTML transferred:       62950 bytes
Requests per second:    5.42 [#/sec] (mean)
Time per request:       184.442 [ms] (mean)
Time per request: 184.442 [ms] (mean, across all concurrent requests)
Transfer rate:          7.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   180  184   3.9    184     203
Waiting:      175  181   4.0    180     198
Total:        180  184   3.9    184     203

Percentage of the requests served within a certain time (ms)
  50%    184
  66%    184
  75%    185
  80%    185
  90%    187
  95%    191
  98%    203
  99%    203
 100%    203 (longest request)


Reply via email to