Re: performance question
Date: Mon, 28 Jan 2002 13:26:11 -0500
I was using 7.9.2 of libcurl, running on solaris sunOS 5.8.
>From: Daniel Stenberg <daniel_at_haxx.se>
>To: rick vaillancourt <rick_vaillancourt_at_hotmail.com>
>CC: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
>Subject: Re: performance question
>Date: Mon, 28 Jan 2002 11:49:58 +0100 (MET)
>On Fri, 25 Jan 2002, rick vaillancourt wrote:
> > I did a very simple performance test of calling the curl lib serially
> > times in a row with the same URL to measure the difference in reusing
> > same connection v. calling curl_easy_init & curl_easy_cleanup(curl)
> > every execution.
> > To my surprise it seemed to be consistently faster when reinitialized
> > time; on average .17+ secs per call reinitializing every time v. .25+
> > per call reusing connection.
> > Seems contrary to the doco, anyone experience this?
>This seems to go against all sense, but I figure there is a perfectly logic
>and sane explanation behind! ;-)
>I take it this was a rather recent libcurl? What OS? What protocol did you
>use? Did the server use persistant connections? Did you use SSL? Did you
>I guess your tests prove that re-using a handle is not always faster that
>init/cleanup in between, but I would say that this is nothing but a rare
>exception to the rule.
>Or can you or anyone else explain this?
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Join the world’s largest e-mail service with MSN Hotmail.
Received on 2002-01-28