curl-library
Re: curl_global_init() performance issue
Date: Fri, 16 Apr 2010 02:38:26 +0400
> 2010/4/16 Daniel Stenberg <daniel_at_haxx.se>
>
> On Fri, 16 Apr 2010, Sergey S. wrote:
>
>> Am I doing something wrong? Now I am forced to downgrade to libcurl/7.19.5.
>
> Did you re-run the tests multiple times with each version to see that the timings were stable?
>
> I can't find any noticable differences between 7.19.5 and 7.20.1 for curl_global_init() (lib/easy.c for example hasn't been changed since 7.19.5...). I suspect the entire difference you see is due to OpenSSL taking various amounts of time to get enough random data for the PRNG.
>
> --
>
> / daniel.haxx.se
The timings are stable. I had built libcurl using different version of
openssl and got the same results
D:\Projects\CurlPerfTest\Release>curlperftest
libcurl/7.20.1 OpenSSL/0.9.8j zlib/1.2.4
Time elapsed: 156 msec
D:\Projects\CurlPerfTest\Release>curlperftest
libcurl/7.20.1 OpenSSL/0.9.8j zlib/1.2.4
Time elapsed: 157 msec
D:\Projects\CurlPerfTest\Release>curlperftest
libcurl/7.20.1 OpenSSL/0.9.8j zlib/1.2.4
Time elapsed: 140 msec
-------
libcurl/7.19.3 OpenSSL/0.9.8j zlib/1.2.4
Time elapsed: 15 msec
libcurl/7.19.3 OpenSSL/0.9.8j zlib/1.2.4
Time elapsed: 0 msec
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-16