ineedh3lp Posted September 16, 2011 Share Posted September 16, 2011 (edited) Does anyone know why AutoIt upload is limited to ~50KBps? Is there any way to remove the limit? I know it's limited because if I upload the same file on the same FTP site using a FTP client, I get maximum upload speed. Probably it's because of the number of threads. Can those be increased? Edited September 16, 2011 by ineedh3lp Link to comment Share on other sites More sharing options...
sleepydvdr Posted October 1, 2011 Share Posted October 1, 2011 I wanted to test your claim. My initial thought is you may not realize that most ISPs limit your upload speed a lot more than your download speed. My ISP gives me 20 times slower upload than download. However, that doesn't prove anything. I wrote a script that will give you your actual speed: #include <FTPEx.au3> #Include <Timers.au3> $filesize = FileGetSize("Firefox.exe")/1000 $server = 'mysite.com' $username = 'username' $pass = 'password' $Open = _FTP_Open('MyFTP Control') $Conn = _FTP_Connect($Open, $server, $username, $pass) $starttime = _Timer_Init() _FTP_FilePut($Conn, "Firefox.exe", "/Folder1/Firefox.exe") $Ftpc = _FTP_Close($Open) $endtime = _Timer_Diff($starttime)/1000 $rate = Round ($filesize / $endtime, 2) MsgBox(0, "", "Time (sec): " & Round($endtime, 2) & @CRLF & $rate & " KBps") I ran the AutoIt test. Here's the results: Then I uploaded the same file by Filezilla (I took the screenshot right near the end of the upload): Results:AutoIt: 64.35 KBps & 194.5 secondsFilezilla: 64.7 KBps & 193 seconds These are negligible differences. If anything at all, AutoIt took about 1 second longer to upload a 12 MB file. So, my initial thoughts are correct. Your ISP is limiting your upload speed. If you know anyone who has Fiber Optic or T1 (their upload speed are usually about the same as their download speeds), check your AutoIt performance on that connection. I bet you will see a dramatic difference. #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now