W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

RE: Comparing the performace of libwww and java servlet

From: Ailleen Lien <alien@clientsoft.com>
Date: Wed, 31 Jan 2001 16:45:25 -0500
Message-ID: <F3327358F65CD31196DE00A0C9FC4F79011975E9@MAIL>
To: "'Jeff Adams'" <jeffa@coursewave.com>
Cc: www-lib@w3.org, "'Worik Macky Turei Stanton'" <worik@noggon.co.nz>
Hi, Jeff,
   HTTP_setBodyWriteDelay(25, 30) does improve the response from the server.
It cuts the response time to less a second. Now my boss is happy. Thanks for
your helps.

Ailleen Lien
Software Engineer
ClientSoft INC.

-----Original Message-----
From: Jeff Adams [mailto:jeffa@coursewave.com]
Sent: Wednesday, January 31, 2001 3:01 PM
To: www-lib@w3.org
Subject: Re: Comparing the performace of libwww and java servlet




Not sure if there were many details reported, but if this is doing
POST-s,
perhaps you are using the default and very long delays with body writes?

I have been using:
HTTP_setBodyWriteDelay (25, 30);

And libwww is extremely response. 

Maybe the delays you are seeing on the order
of 2 seconds is because of the default values, ie from HTTP.h:

"The default wait periods are 2000ms for the first wait and 3000ms if
that
fails. These are rather conservative values but can be changed by using
these
functions. The second try value must be larger (or equal) to the first
try
value and the first try value must be larger than 20 ms."

Jeff


Worik Macky Turei Stanton wrote:
> 
> Does anybody have an answer for this?  I would really like to know why
> this is and weather it indicates some fundamental problem in libwww.
> 
> Anybody?
> 
> Ailleen Lien <alien@clientsoft.com> writes:
> 
> > Hi,
> >     I am comparing the performance of libwww and jave servlet.  I have
> > modified the showxml.c to send  a request to my server and get
> > some message back.  I am surprised that libwww takes about 2 seconds to
send
> > data out  to my server while java servlet only takes 0.5 second.  Did
anyone
> > do the comparison before?
> >
> >
> > Ailleen Lien
> >
> >
> >
> 
> --
>                      Worik Macky Turei Stanton
>                           worik@noggon.co.nz
>                               Aotearoa
>      This line would have seven words if only it had six words less.
Received on Wednesday, 31 January 2001 16:45:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT