cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: v7.30.0 is slower than v2.29.0 when I upload files with FTP

From: Mike Mio <mikemio_at_rogers.com>
Date: Mon, 19 Aug 2013 17:23:00 -0400

On Sunday, August 18, 2013 5:31 PM, daniel.haxx.se wrote

>Are you working against a local FTP server, what is the general RTT to it
like with a mere >ping?

I am not working with a local server. I will try that later but I have tried
several different remote servers and the differences between versions are
consistent.

The RTTs are generally just under 100ms.

I modified your ftpupload.c example to upload and time a set of files. You
can see the difference between versions clearly. I have attached the code
in case that is helpful. The results I got are below.

>Do you see the same slowdown with a download?
My code is not downloading anything so I haven't tried that.

>Can you try using active(PORT/EPRT) mode and see if it shows any
difference?
Ok, I will try that.

I will get you results for an active connection and from a local server. Let
me know if there is any else I provide that would make it easier to see what
is going on.

Thanks for your help with this.

Mike

===================================================
These are the results I see with the modified ftpget.c:
=================
BEGIN: 'libcurl/7.29.0 OpenSSL/1.0.0k zlib/1.2.7 libidn/1.18 libssh2/
mp/2.3'
'file0.txt' size: 7295 read 7295 Elapsed Time: 1.43994
'file1.txt' size: 7295 read 7295 Elapsed Time: 0.62429
'file2.txt' size: 7295 read 7295 Elapsed Time: 0.589603
'file3.txt' size: 7295 read 7295 Elapsed Time: 0.589663
'file4.txt' size: 7295 read 7295 Elapsed Time: 0.594933
'file5.txt' size: 7295 read 7295 Elapsed Time: 0.633527
'file6.txt' size: 7295 read 7295 Elapsed Time: 0.592577
'file7.txt' size: 7295 read 7295 Elapsed Time: 0.579882
'file8.txt' size: 7295 read 7295 Elapsed Time: 0.578211
'file9.txt' size: 7295 read 7295 Elapsed Time: 0.580956
'file10.txt' size: 7295 read 7295 Elapsed Time: 0.571157
'file11.txt' size: 7295 read 7295 Elapsed Time: 0.606134
Elapsed Time for all: High: 7.98088
Total Time: High: 0 Low: 8.09556

 =================
BEGIN: 'libcurl/7.29.0 OpenSSL/1.0.0k zlib/1.2.7 libidn/1.18 libssh2/
mp/2.3'
'file0.txt' size: 7295 read 7295 Elapsed Time: 1.35272
'file1.txt' size: 7295 read 7295 Elapsed Time: 0.57774
'file2.txt' size: 7295 read 7295 Elapsed Time: 0.576571
'file3.txt' size: 7295 read 7295 Elapsed Time: 0.577777
'file4.txt' size: 7295 read 7295 Elapsed Time: 0.579752
'file5.txt' size: 7295 read 7295 Elapsed Time: 0.597366
'file6.txt' size: 7295 read 7295 Elapsed Time: 0.582459
'file7.txt' size: 7295 read 7295 Elapsed Time: 0.577308
'file8.txt' size: 7295 read 7295 Elapsed Time: 0.579557
'file9.txt' size: 7295 read 7295 Elapsed Time: 0.580751
'file10.txt' size: 7295 read 7295 Elapsed Time: 0.590834
'file11.txt' size: 7295 read 7295 Elapsed Time: 0.567829
Elapsed Time for all: High: 7.74067
Total Time:Low: 7.85675

=================
BEGIN: 'libcurl/7.30.0 OpenSSL/1.0.0k zlib/1.2.7 libidn/1.18 libssh2/
mp/2.3'
'file0.txt' size: 7295 read 7295 Elapsed Time: 2.29765
'file1.txt' size: 7295 read 7295 Elapsed Time: 1.34104
'file2.txt' size: 7295 read 7295 Elapsed Time: 1.40517
'file3.txt' size: 7295 read 7295 Elapsed Time: 1.32037
'file4.txt' size: 7295 read 7295 Elapsed Time: 1.31047
'file5.txt' size: 7295 read 7295 Elapsed Time: 1.31063
'file6.txt' size: 7295 read 7295 Elapsed Time: 1.32296
'file7.txt' size: 7295 read 7295 Elapsed Time: 1.32354
'file8.txt' size: 7295 read 7295 Elapsed Time: 1.31742
'file9.txt' size: 7295 read 7295 Elapsed Time: 1.32078
'file10.txt' size: 7295 read 7295 Elapsed Time: 1.31473
'file11.txt' size: 7295 read 7295 Elapsed Time: 1.31142
Elapsed Time for all: High: 16.8962
Total Time:Low: 17.0148

=================
BEGIN: 'libcurl/7.32.0 OpenSSL/1.0.0k zlib/1.2.8 libidn/1.18 libssh2/
mp/2.3'
'file0.txt' size: 7295 read 7295 Elapsed Time: 3.17875
'file1.txt' size: 7295 read 7295 Elapsed Time: 2.31883
'file2.txt' size: 7295 read 7295 Elapsed Time: 2.31994
'file3.txt' size: 7295 read 7295 Elapsed Time: 2.3173
'file4.txt' size: 7295 read 7295 Elapsed Time: 2.32381
'file5.txt' size: 7295 read 7295 Elapsed Time: 2.3171
'file6.txt' size: 7295 read 7295 Elapsed Time: 2.32718
'file7.txt' size: 7295 read 7295 Elapsed Time: 2.30788
'file8.txt' size: 7295 read 7295 Elapsed Time: 2.30961
'file9.txt' size: 7295 read 7295 Elapsed Time: 2.31843
'file10.txt' size: 7295 read 7295 Elapsed Time: 2.30817
'file11.txt' size: 7295 read 7295 Elapsed Time: 2.31527
Elapsed Time for all: High: 28.6623
Total Time:Low: 28.782

=================
BEGIN: 'libcurl/7.30.0 OpenSSL/1.0.0k zlib/1.2.7 libidn/1.18 libssh2/
mp/2.3'
'file0.txt' size: 7295 read 7295 Elapsed Time: 2.34051
'file1.txt' size: 7295 read 7295 Elapsed Time: 1.36425
'file2.txt' size: 7295 read 7295 Elapsed Time: 1.38852
'file3.txt' size: 7295 read 7295 Elapsed Time: 1.33263
'file4.txt' size: 7295 read 7295 Elapsed Time: 1.3185
'file5.txt' size: 7295 read 7295 Elapsed Time: 1.31753
'file6.txt' size: 7295 read 7295 Elapsed Time: 1.30698
'file7.txt' size: 7295 read 7295 Elapsed Time: 1.31956
'file8.txt' size: 7295 read 7295 Elapsed Time: 1.31884
'file9.txt' size: 7295 read 7295 Elapsed Time: 1.3197
'file10.txt' size: 7295 read 7295 Elapsed Time: 1.31781
'file11.txt' size: 7295 read 7295 Elapsed Time: 1.308
Elapsed Time for all: High: 16.9528
Total Time:Low: 17.0731

=================
BEGIN: 'libcurl/7.29.0 OpenSSL/1.0.0k zlib/1.2.7 libidn/1.18 libssh2/1.4.3
librt
mp/2.3'
'file0.txt' size: 7295 read 7295 Elapsed Time: 1.35792
'file1.txt' size: 7295 read 7295 Elapsed Time: 0.579659
'file2.txt' size: 7295 read 7295 Elapsed Time: 0.602493
'file3.txt' size: 7295 read 7295 Elapsed Time: 0.571397
'file4.txt' size: 7295 read 7295 Elapsed Time: 0.580294
'file5.txt' size: 7295 read 7295 Elapsed Time: 0.579617
'file6.txt' size: 7295 read 7295 Elapsed Time: 0.581423
'file7.txt' size: 7295 read 7295 Elapsed Time: 0.589468
'file8.txt' size: 7295 read 7295 Elapsed Time: 0.598464
'file9.txt' size: 7295 read 7295 Elapsed Time: 0.589759
'file10.txt' size: 7295 read 7295 Elapsed Time: 0.579805
'file11.txt' size: 7295 read 7295 Elapsed Time: 0.592074
Elapsed Time for all: High: 7.80238
Total Time:Low: 7.92088
==========================

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2013-08-19