Ok, the kaffe JVM I was using appears to be pretty brutal. Here's the
results on the same machine with the blackdown 1.1.6 compiler and JVM:
voodoo$ java newTimer
Start: 953911983966
End: 953911988423
Created 1000000 Strings in 4457ms
Start: 953911988452
End: 953911996663
Created 1000 row table in 8211ms
Start: 953911996664
End: 953912000944
Generated HTML in 4280ms
Presumably this can be improved a lot with a new JDK too.
Here's some more results from a Sun box with JDK 1.2:
com$ java -version
java version "1.2.1"
Solaris VM (build Solaris_JDK_1.2.1_03, native threads, sunwjit)
com$ java newTimer
Start: 953911860371
End: 953911861396
Created 1000000 Strings in 1025ms
Start: 953911861546
End: 953911862781
Created 1000 row table in 1235ms
Start: 953911862784
End: 953911866364
Walked table in 3580ms
Anyway, let me try a different approach here. Who else is using ECS
instead of or in addition to JSP and what are your thoughts on doing
this? Our impressions are that the code is *much* more readable and the
design ends up much cleaner using ECS. The only problem we have selling
ECS internally at this point is that retrieving a similar JSP page is 2x
to 10x faster than retrieving the same page generated with ECS. On the
other hand, the HTML generated by ECS is about half the size of the
corresponding JSP HTML although I'm sure this can be fixed somewhat by
uglifying the JSP page even further.
Simon Christian wrote:
>
> Derek,
>
> thought those looked like rather strange results so ran it myself getting these
> timings over 3 runs:
>
> JDK1.2.2 JDK1.1.7A
> Created Strings: 1573 1932
> Created Table: 5194 6823
> Generated HTML: 4158 4850
>
> Then changed a couple of lines to buffer the output stream (see below).
>
> Created Strings: 1535 1926
> Created Table: 5156 6813
> Generated HTML: 2353 (-43%) 3518 (-27%)
>
> This is on a PIII, NT4. jdk1.1.7A required an -mx64M argument to complete the
> test.
Thanks very much folks!
--
Cheers,
Derek
_____________________________________________________________________
Derek Scherger Echologic Software Corporation
mailto:[EMAIL PROTECTED] http://www.echologic.com
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]