cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi vs. curl_easy threads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 5 Dec 2014 19:27:48 +0100 (CET)

On Fri, 5 Dec 2014, Robert Kohn wrote:

> 1) Create 10 threads, each uploading with a curl_easy.
> 2) Use curl_multi with 10 curl_easy requests
>
> Which of the two should yield better performance?

It depends on lots of details including CPU performance and network speeds -
ie if any of them is bound to hit a performance ceiling etc. And which
resolver backend your libcurl uses.

I usually suggest you write up a small test application that mimics your
intended use as close as possible and then you run a some performance tests.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-05