> -----Original Message-----
> From: Burian, Todd [mailto:[EMAIL PROTECTED]]

> Our compan is planning to migrate from jsp to 
> Turbine/Velocity.  I have noticed a few issues where it seems 
> Velocity is slower tha JSP and it seems slower in general. 
> What do all you gurus think?

I recommend doing some tests yourself.

Take the velocity servlet extends it.
Do a raw servlet that use a stream and a writer.

For whatever it represents it allows me to see what top score I can achieve
with a given servlet engine and the overhead of some components. With Tomcat
3.3a (no logs), on a Pentium 3 700MHz, NT 4.0SP6, JDK 1.3.1_02 (no specific
tuning):

A simple 1 minute load test

Raw Stream: 232 req/s
Raw Writer: 158 req/s
Velocity  : 127 req/s

I use urls as follows:
http://<host>:<port>/bench/data?bytes=15000
http://<host>:<port>/bench/data?bytes=15000&writer=1
http://<host>:<port>/bench/velocity?template=Data.vm&bytes=15000

Data.vm
#if ($req.getParameter('bytes'))
#set ($data = "<h1>Hello World</h1>")
#set ($count = $Integer.parseInt($req.getParameter('bytes')) /
$data.length() )
#foreach ($i in [1..$count])$data#end
#end

I find the raw performance of velocity pretty close to what you can achieve
by simply outputting the data to the writer. that show its potential.

I use 15000 bytes since it is approx what is the page size of my webapp and
the hello world html takes 20 bytes.

Stephane

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to