curl-library
Re: libcurl and Perl's WWW::Curl::Easy slower than LWP on small HTTP POSTs
From: Martin J. Evans <martin.evans_at_easysoft.com>
Date: Thu, 15 Sep 2011 16:15:57 +0100
Date: Thu, 15 Sep 2011 16:15:57 +0100
On 15/09/11 14:14, Daniel Stenberg wrote:
> On Thu, 15 Sep 2011, Martin J. Evans wrote:
>
>> Benchmark: timing 1000 iterations of curl, lwp... curl: 20
>> wallclock secs ( 0.34 usr + 0.13 sys = 0.47 CPU) @ 2127.66/s
>> (n=1000) lwp: 26 wallclock secs ( 4.41 usr + 0.58 sys = 4.99 CPU) @
>> 200.40/s (n=1000)
>
> Ah, that's certainly a lot better. I can live with using a 10th as
> much CPU and still being faster. =)
So can I.
> Did you try with using CURLOPT_TCP_NODELAY for this way of posting as
> well to see if it made any difference?
>
Yes, but as you can imagine, now the post header and data is in one write it makes no difference.
Thanks again for your help.
Martin
-- Martin J. Evans Easysoft Limited http://www.easysoft.com ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-15