curl-library
Re: upload speed is too slow in windows
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