curl-library
Re: libcurl and Perl's WWW::Curl::Easy slower than LWP on small HTTP POSTs
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Sep 2011 15:14:13 +0200 (CEST)
Date: Thu, 15 Sep 2011 15:14:13 +0200 (CEST)
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. =)
Did you try with using CURLOPT_TCP_NODELAY for this way of posting as well to
see if it made any difference?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-15