I installed velocity, and make a some test.

the test environment:

Solaris 8 for Intel(1024Mb ram, 2CPU)
java version "1.2.1"
apache 1.3.12 + resin 1.1.3

webmacro.29-09-2000.tgz  vs  Apache-Velocity-20001006.tar.gz


here is my result:
1. There is no character encoding problem which webmacro still can't
deal properly. My project use Chinese character, so velocity is my only
choice.
2. the benchmark shows velocity is faster than webmacro. 332 hits/second
vs 236 hits/second.
3. velocity is not so stable as webmacro. i always get some failed
requests.



 /usr/local/apache/bin/ab -n 1000 -c 20 http://sh.cn99.com/servlet/Hel
loWorld
This is ApacheBench, Version 1.3c <$Revision: 1.38 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:        Apache/1.3.12
Server Hostname:        sh.cn99.com
Server Port:            80

Document Path:          /servlet/HelloWorld
Document Length:        291 bytes

Concurrency Level:      20
Time taken for tests:   4.226 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      435598 bytes
HTML transferred:       292746 bytes
Requests per second:    236.63
Transfer rate:          103.08 kb/s received
Connnection Times (ms)
              min   avg   max
Connect:        0     0    18
Processing:     6    81  2155
Total:          6    81  2173


 /usr/local/apache/bin/ab -n 1000 -c 20 http://sh.cn99.com/servlet/Sam
pleServlet
This is ApacheBench, Version 1.3c <$Revision: 1.38 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:        Apache/1.3.12
Server Hostname:        sh.cn99.com
Server Port:            80

Document Path:          /servlet/SampleServlet
Document Length:        104 bytes

Concurrency Level:      20
Time taken for tests:   3.005 seconds
Complete requests:      1000
Failed requests:        9
   (Connect: 0, Length: 9, Exceptions: 0)
Non-2xx responses:      2
Total transferred:      271706 bytes
HTML transferred:       108161 bytes
Requests per second:    332.78
Transfer rate:          90.42 kb/s received
Connnection Times (ms)
              min   avg   max
Connect:        0     0     3
Processing:     3    50  2091
Total:          3    50  2094




----
Peng Yong                     Email: [EMAIL PROTECTED]
Bentium Ltd.                  URL: http://www.cn99.com

Reply via email to