Gisle Vanem via curl-library (Thu, 9 Aug 2018 13:51:50 +0200):
>Jan Ehrhardt wrote:
>
>>> 33.153s vs 5.4s for a 10 MByte file.
>> 
>> Did you time how long Filezilla takes for the same action? Filezilla
>> squeezes quite a lot over sftp-connections...
>
>11.4 sec!!
snip
>I must be using the wrong compiler and SSL-lib :-)
>But, it's certainly possible to make SFTP faster.

Same results here. Yesterday I had a discussion with a customer, uploading
a 274MB file from an iPad over sftp. That took 2:27 minutes. I repeated the
upload now with Filezilla, lftp and curl

TL;DR

iPad sftp (NMSSH2)      147 seconds
Filezilla sftp           67 seconds
lftp sftp                70 seconds
curl plain ftp vanilla   56 seconds
curl plain ftp patched   41 seconds (the 2nd is my own compiled version: 42s)
curl patched sftp      1925 seconds
-- 
Jan

Microsoft Windows [Version 6.1.7601]
running lftp....

ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/
Copyright(C) 2002, Jem Berkes <jber...@pc-tools.net>

===  E:\utils\bash.exe /utils/bash.sh ===

Execution time: 70.587 s
running vanilla...

ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/
Copyright(C) 2002, Jem Berkes <jber...@pc-tools.net>

===  curl -w"start:%{time_starttransfer} total:%{time_total}\n" removed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  274M    0     0  100  274M      0  4982k  0:00:56  0:00:56 --:--:-- 4960k
start:0,374000 total:56,394000

Execution time: 56.547 s
running patched...

ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/
Copyright(C) 2002, Jem Berkes <jber...@pc-tools.net>

===  curl -w"start:%{time_starttransfer} total:%{time_total}\n" removed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  274M    0     0  100  274M      0  6812k  0:00:41  0:00:41 --:--:-- 6420k
start:0,375000 total:41,247000

Execution time: 41.408 s
running curl patched...

ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/
Copyright(C) 2002, Jem Berkes <jber...@pc-tools.net>

===  curl -w"start:%{time_starttransfer} total:%{time_total}\n" removed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  274M    0     0  100  274M      0  6617k  0:00:42  0:00:42 --:--:-- 6923k
start:0,374000 total:42,463000

Execution time: 42.699 s
running patched sftp

ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/
Copyright(C) 2002, Jem Berkes <jber...@pc-tools.net>

===  curl -w"start:%{time_starttransfer} total:%{time_total}\n" removed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  274M    0     0  100  274M      0   145k  0:32:05  0:32:05 --:--:--  150k
100  274M    0     0  100  274M      0   145k  0:32:05  0:32:05 --:--:--  145k
start:0,421000 total:1925,349000

Execution time: 1925.451 s

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to