curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: upload speed is too slow in windows

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 3 Jan 2018 18:04:38 -0500

On 1/3/2018 3:22 AM, tanjj1990 wrote:
>   I've googled it before I send this message,but I did'n get the way out.
>
>   Here are some tests. May these tests are not  rigorous, but they can
> show you my question: 
>     why can't I get the speed like chrome without proxy set? 
>
>   file size : 93582KB
>
>   Box : https://app.box.com/folder/0 <https://app.box.com/folder/0%29,>
>
>   operating system
>      windows server 2008 R2 standard
>
>   Test1:
>   
>   libcurl 
>     compiler: vc=8
>     version: 7.57.0
>     openssl: 1.0.2n
>     zlib: 1.2.11
>
>   case1:
>   upload the file to Box, with libcurl: the speed is about 350KB/s;
>   I tried the CURL_MAX_WRITE_SIZE: 16384, 32768, 65536, 131072,
> 262144, 524288, 1048576
>
>   case2:
>   upload the file to Box, with libcurl, set proxy
> http://127.0.0.1:3213 <http://127.0.0.1:3213,> : the acerage speed is
> about 6MB/s;
>
>   case3:
>   upload the file to Box, with chrome, no proxy : the speed is about 6MB/s
>  
> --------------------------------------------------------------------------------------------------------------------------------
>
>   Test2:
>
>   libcurl-command-line: 
>   upload the file to  http://speedtest.tele2.net
> <http://speedtest.tele2.net/>
>
>   ~~~~~~~~~~~~~~~~~~~
> \Desktop\libcurl-vc8-x86-release-dll-ssl-dll-zlib-dll-ipv6\
>   bin>curl -X POST --proxy http://127.0.0.1:3213%c2
> http://speedtest.tele2.net --dat
>   a-binary @Server.exe -o result.txt
>     % Total    % Received % Xferd  Average Speed   Time    Time   
>  Time  Current
>                                                          Dload 
> Upload   Total   Spent    Left  Speed
>    100 91.3M    0  8140  100 91.3M    508  5848k  0:00:16  0:00:16
> --:--:-- 10.8M
>
>    ~~~~~~~~~~~~~~~~~~~ \Desktop\libcurl-vc8-x86-release-dll-ssl-dll-zlib-dll-ipv6\
>   bin>curl -X POST  http://speedtest.tele2.net --data-binary
> @Server.exe -o resu
>   lt.txt
>     % Total    % Received % Xferd  Average Speed   Time    Time   
>  Time  Current
>                                               Dload  Upload   Total 
>  Spent    Left  Speed
>   100 91.3M    0  8141  100 91.3M     30   355k  0:04:23  0:04:23
> --:--:--  345k
>  
> --------------------------------------------------------------------------------------------------------------------------------------
>
>   Test3:
>
>   curl: download from https://curl.haxx.se/download.html%c2
>     version: Win64 x86_64 7zip7.57.0binarySSLSSHViktor Szakáts1.88 MB
>
>   the speed upload to Box is same as libcurl;
>
>   other cases: upload the file to  http://speedtest.tele2.net
> <http://speedtest.tele2.net/>
>
>  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\curl-7.57.0-win64-mingw\curl-7.57.0-wi
>   n64-mingw\bin>curl -X POST --proxy http://127.0.0.1:3213%c2
> http://speedtest.tele2
>   .net --data-binary @ABServer.exe -o result.txt
>      % Total    % Received % Xferd  Average Speed   Time    Time   
>  Time  Current
>                                                           Dload 
> Upload   Total   Spent    Left  Speed
>    100 91.3M    0  8140  100 91.3M    542  6238k  0:00:15  0:00:15
> --:--:-- 11.6M
>
>  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~curl-7.57.0-win64-mingw\curl-7.57.0-wi
>   n64-mingw\bin>curl -X POST  http://speedtest.tele2.net --data-binary
> @ABServer.e
>   xe -o result.txt
>     % Total    % Received % Xferd  Average Speed   Time    Time   
>  Time  Current
>                                                          Dload 
> Upload   Total   Spent    Left  Speed
>   100 91.3M    0  8141  100 91.3M     29   335k  0:04:39  0:04:39
> --:--:--  317k
> --------------------------------------------------------------------------------------------------------------------------------------------------

That's weird, I don't know what could be causing it. Does Chrome use the
proxy? Can you try this PostUpload test [1] with and without the proxy?

[1]: https://gist.github.com/jay/daac01682f17c2dc213e

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-01-04