EldoS | Feel safer!

Software components for data protection, secure storage and transfer

FTPS download speed vs ftpwebrequest

Posted: 11/18/2011 15:09:15
by Aaron Nelson (Standard support level)
Joined: 11/18/2011
Posts: 1

Hi there -
I am switching over to using SBB from the standard .NET ftpwebrequest. So far, so good, but when I benchmarked it, SBB was taking 2X the time of ftpwebrequest.

I am downloading discrete files using Receive() (I cannot use GetFiles() because the files are processed in transit)

I tried setting the ftpBufferSize to 32767 and it didn't change performance.

Files are typically 5-50K in size and there are about 100 of them. Takes about 2 minutes to download via SBB, about 1 minute with ftpWebRequest.

Any suggestions?
Posted: 11/18/2011 15:22:31
by Ken Ivanov (Team)

Thank you for contacting us.

There are many factors that affect transfer speed. The first and most straightforward solution of increasing the bandwidth is enabling compression (with the use of the ModeZ property).

Another fact is that FTP-over-SSL connections are always slower than plain FTP ones due to the need of performing SSL negotiation for each download. However, switching UseSSLSessionResumption on in this case may also result in speed increase.
Posted: 11/19/2011 01:13:11
by Eugene Mayevski (Team)

Also, I can be wrong, but for me it looks like *WebRequest are mappings of some unmanaged code, which is faster, than managed code (not much but still...)

Sincerely yours
Eugene Mayevski



Topic viewed 1422 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!