You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Ethan Adams <et...@adamsinc.net> on 2001/08/01 13:08:36 UTC

Velocity vs. JSP Benchmarks

I've searched the Velocity and Turbine mailing lists (even Yahoo) and have found nothing on benchmarking Velocity in comparison to JSP.

Does it exist?  If so, where to find it.


Re: Velocity vs. JSP Benchmarks

Posted by Rickard Öberg <ri...@xpedio.com>.
Hey

Tal Dayan wrote:
> Just curious, who is faster, Tomcat or Resin ?

I'd say Resin (at least compared with Tomcat 3.2, 4.0 I don't know), but
if you want disgustingly fast JSP I'd vote for Orion or WebLogic 6. They
are very very fast.

/Rickard

-- 
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: rickard@xpedio.com

RE: Velocity vs. JSP Benchmarks

Posted by Nick Bauman <ni...@cortexity.com>.
Resin.

> Just curious, who is faster, Tomcat or Resin ?
> 
> Tal
> 
>> -----Original Message-----
>> From: Nick Bauman [mailto:nick@cortexity.com]
>> Sent: Wednesday, August 01, 2001 12:46 PM
>> To: velocity-user@jakarta.apache.org
>> Subject: Re: Velocity vs. JSP Benchmarks
>>
>>
>> Your benchmarks vary highly depending on what you are doing. Even
>> benchmarking JSP to JSP varies highly on implementation to
>> implementation: For instance benchmarking Tomcat's Jasper versus
>> Resin's JspServlet and you'd see differences that are plus or minus an
>> order of magnitude.


-- 
Nick Bauman
3600 N. Dupont
Minneapolis, MN 55412
Mobile: (612) 232-7120
SMS: 6122327120@voicestream.net
Home: (612) 522-0165


RE: Velocity vs. JSP Benchmarks

Posted by Tal Dayan <ta...@zapta.com>.
Just curious, who is faster, Tomcat or Resin ?

Tal

> -----Original Message-----
> From: Nick Bauman [mailto:nick@cortexity.com]
> Sent: Wednesday, August 01, 2001 12:46 PM
> To: velocity-user@jakarta.apache.org
> Subject: Re: Velocity vs. JSP Benchmarks
>
>
> Your benchmarks vary highly depending on what you are doing. Even
> benchmarking JSP to JSP varies highly on implementation to implementation:
> For instance benchmarking Tomcat's Jasper versus Resin's JspServlet and
> you'd see differences that are plus or minus an order of magnitude.
>


Re: Velocity vs. JSP Benchmarks

Posted by Nick Bauman <ni...@cortexity.com>.
Your benchmarks vary highly depending on what you are doing. Even
benchmarking JSP to JSP varies highly on implementation to implementation:
For instance benchmarking Tomcat's Jasper versus Resin's JspServlet and
you'd see differences that are plus or minus an order of magnitude.

This is my straw-poll benchmarks of Velocity on 500 mHz PII with 192 MB ram
and ordinary non-DMA IDE disks. The pages do nothing but spit out the names
and values of the request parameters in all three cases. IMHO, the
benchmarks mean almost nothing, since I can make these fluctuate wildly by
tweaking seemingly insignificant things in the servlet engine, the web
server, the environment etc etc:

------------------------------
Ordinary JSP

/index.jsp?name=value

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:        Resin/2.0.0                                        
Server Hostname:        mspdevapp01
Server Port:            40680

Document Path:          /index.jsp?name=value
Document Length:        0 bytes

Concurrency Level:      100
Time taken for tests:   4.379 seconds
Complete requests:      1000
Failed requests:        0
Non-2xx responses:      1000
Total transferred:      155000 bytes
HTML transferred:       > 1K
Requests per second:    228.36
Transfer rate:          35.40 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0     0    16
Processing:     2    67  3365
Total:          2    67  3381

------------------------------
My Framework based on Velocity (supports dynamic controllers and VTL for
MVC)

/index.vtl?name=value

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:        Resin/2.0.0                                        
Server Hostname:        mspdevapp01
Server Port:            40680

Document Path:          /index.vtl?name=value
Document Length:        0 bytes

Concurrency Level:      100
Time taken for tests:   4.310 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      121000 bytes
HTML transferred:       > 1K
Requests per second:    232.02
Transfer rate:          28.07 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0     3    76
Processing:     3    82  3337
Total:          3    85  3413


------------------------------
Ordinary Velocity framework (supports VTL/Servlets for MVC)

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:        Resin/2.0.0                                        
Server Hostname:        mspdevapp01
Server Port:            40680

Document Path:          /index.vm?name=value
Document Length:        0 bytes

Concurrency Level:      100
Time taken for tests:   2.756 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      121121 bytes
HTML transferred:       > 1K
Requests per second:    362.84
Transfer rate:          43.95 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0     4    96
Processing:     3    18    43
Total:          3    22   139



> I've searched the Velocity and Turbine mailing lists (even Yahoo) and
> have found nothing on benchmarking Velocity in comparison to JSP.
> 
> Does it exist?  If so, where to find it.


-- 
Nick Bauman
3600 N. Dupont
Minneapolis, MN 55412
Mobile: (612) 232-7120
SMS: 6122327120@voicestream.net
Home: (612) 522-0165


RE: Velocity vs. JSP Benchmarks

Posted by David Rees <dr...@ebetinc.com>.
> -----Original Message-----
> From: Ethan Adams [mailto:ethan@adamsinc.net]
> Sent: Wednesday, August 01, 2001 4:09 AM
>
> I've searched the Velocity and Turbine mailing lists (even Yahoo)
> and have found nothing on benchmarking Velocity in comparison to JSP.
>
> Does it exist?  If so, where to find it.

The biggest problem with comparing the two is that your results are highly
dependant on what you're using Velocity or JSP for.

The best thing to do is to try a few sample pages from your specific
application and benchmark them yourself.

In general, I have found the speed of Velocity to be comparable to JSP.
I've most often found that other parts of the application are the slow parts
(DB Queries, etc), while Velocity can keep up just fine.

I remember doing some simple comparisons a few months back, but I can't find
them now...

-Dave