in reply to Re^3: Net::FTP Upload much slower than Dos prompt command ftp
in thread Net::FTP Upload much slower than Dos prompt command ftp


Hi Khen,


my $ftp = Net::FTP::Throttle->new(
HOST,

...

Bytes_read => 8192,

In above Net::FTP::Throttle, is there something like

Bytes_write => 1024 or 2048 ?

Since the issue is uploading only.

-- Uploading the thruput is twice slower when using NET::FTP vs. Dos Prompt command ftp ftp.server.com 'put'

-- Downloading: the thruput when using either NET::FTP or Dos Prompt command are closely same.

The ftp server is on the WAN (in the cloud)

Everything the same, configuration, settings, PC, and HW. The different is NET::FTP and Dos Prompt, and the time is about 10 minutes apart between these 2 scenarios, as 3mb file Upload with Dos Prompt it took about 2-3 minutes, and with NET::FTP it took 4-5.30 minutes each time. I did over 10 times.


<Thanks everyone for help>
  • Comment on Re^4: Net::FTP Upload much slower than Dos prompt command ftp

Replies are listed 'Best First'.
Re^5: Net::FTP Upload much slower than Dos prompt command ftp
by Khen1950fx (Canon) on Jan 13, 2011 at 18:50 UTC
    I've been testing it, and the results are all over the map---nothing consistent. Unfortunately, Bytes_write seems to be the same as Bytes_read, so that won't help. Just make sure that you use a BlockSize suitable for your system. I tried it at 1024, 2048, 4096, and 8192. They were all about the same, time-wise.