[dev] IMP login template...

Nuno Loureiro nuno at co.sapo.pt
Fri Jul 25 09:00:45 PDT 2003


Here's the first patch for converting IMP to Horde Templates...
Attached is the diff against HEAD and the new file
(imp/templates/login/login.html).

I did some tests with ab with and without Horde Templates, and concluded
the overhead of using Horde Templates is about 15% (on this specific
page).

The time taken for tests was 74.460 secs for IMP without Horde Templates
against 88.521 seconds with Horde Templates.


----------------------------------with-----------------------------------

$ab -n 1000 -c 10
"http://localhost/horde.dev/imp/login.php?Webmail=9ffe31002ebbebf72709b5293c1960f4"
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2002 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
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software:        Apache/1.3.27
Server Hostname:        localhost
Server Port:            80

Document Path:         
/horde.dev/imp/login.php?Webmail=9ffe31002ebbebf72709b5293c1960f4
Document Length:        7445 bytes
Concurrency Level:      10
Time taken for tests:   88.521 seconds
Complete requests:      1000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      7807000 bytes
HTML transferred:       7445000 bytes
Requests per second:    11.30 [#/sec] (mean)
Time per request:       885.21 [ms] (mean)
Time per request:       88.52 [ms] (mean, across all concurrent
requests)
Transfer rate:          88.19 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0     1    9.2      0   116
Processing:   260   881  127.7    876  1576
Waiting:      260   881  128.0    876  1576
Total:        260   882  126.4    876  1576

Percentage of the requests served within a certain time (ms)
  50%    876
  66%    901
  75%    932
  80%    963
  90%   1039
  95%   1106
  98%   1209
  99%   1259
 100%   1576 (last request)

---------------------------without-------------------------------------------------

$ab -n 1000 -c 10
"http://localhost/horde.dev/imp/login.php?Webmail=9ffe31002ebbebf72709b5293c1960f4"
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2002 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
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software:        Apache/1.3.27
Server Hostname:        localhost
Server Port:            80

Document Path:         
/horde.dev/imp/login.php?Webmail=9ffe31002ebbebf72709b5293c1960f4
Document Length:        7265 bytes

Concurrency Level:      10
Time taken for tests:   74.460 seconds
Complete requests:      1000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      7639774 bytes
HTML transferred:       7277050 bytes
Requests per second:    13.43 [#/sec] (mean)
Time per request:       744.60 [ms] (mean)
Time per request:       74.46 [ms] (mean, across all concurrent
requests)
Transfer rate:          102.60 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0     1    8.5      0   103
Processing:   118   740  145.1    721  1378
Waiting:      118   740  145.5    720  1377
Total:        118   741  144.0    721  1378

Percentage of the requests served within a certain time (ms)
  50%    721
  66%    761
  75%    802
  80%    840
  90%    932
  95%   1009
  98%   1100
  99%   1203
 100%   1378 (last request)




-- 
Nuno Loureiro <nuno at co.sapo.pt>
PTM.com - http://www.sapo.pt/
PGP fingerprint = 8A32 5174 E80C 2D40 9075 405E C107 6592 054A 4D05
-------------- next part --------------
A non-text attachment was scrubbed...
Name: login.diff
Type: text/x-patch
Size: 8922 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030725/17548b5b/login.bin


More information about the dev mailing list