James Cook wrote:
>
> What's the community's opinion of Larry O'Brien's column, "Servlet
> Solutions" in the August 1999 issue of JavaPro magazine? He was testing the
> performance aspects of CGI vs. Servlets and JSP in a Win32 environment using
> Apache web server w/ JServ.
>
> It turned out that the CGI application (a simple HelloWorld test) was 3
> times faster than the JSP version?! I was surprised that they published the
> article so open-ended. Larry mentioned that he had not tested it on other
> platforms and he still wanted to do so.
Never trust benchmarks ;-) I'm also surprised that the article was published
without careful analysis of what caused JServ to show such extremely bad
performance (6.5 seconds to execute a simple servlet). I don't know what the
problem is with Larry's setup, but just for fun I ran a similar test using
Windows NT 4.0 SP3 (Larry doesn't say)
Intel Pentium II MMX 233 MHz (Larry doesn't say)
96 MB (Larry doesn't say)
Apache 1.3.6 (Larry used 1.3.4)
JServ 1.0 (Larry used 1.0b1)
JServSSI 1.0 (not used by Larry)
JDK 1.2 (Sun's Windows reference implementation) (Larry doesn't say)
A more complex request than in the article:
JServSSI parsing an shtml file with one <SERVLET> tag generating
simple HTML.
avg response time 200 ms
A servlet doing database lookup:
JServSSI parsing an shtml file with two <SERVLET> tags doing a database
searches (using InstantDB, pure Java) plus two <SERVLET> tags generating
HTML based on the search result.
avg response time 395 ms
Both the server and the test client were running on the same box.
I didn't compare with CGI, but this simple exercise shows that Apache JServ's
performance is far better than reported in the article, at least with the
final 1.0 version I used. And again, that you should never trust generic
benchmarks (including mine). Always test performance in your own environment
with test data that represents your application.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html