Discussion:
Windows users! Help us test upload performance tuning?
Daniel Stenberg
2018-08-02 12:52:51 UTC
Permalink
Hello!

Please note that we would *love* your assistance here if you're a Windows user
and can offer a few moments of your time to run a few tests on a few Windows
versions and tell us the outcome! Here's a simple way to help us make curl
better without doing any coding at all! =)

We want to have more user's experience and results from tests to determine how
we should make curl make uploads on windows as fast as possible.

See Daniel's mail below for details. Please report your results to the list,
to me or to Daniel Jeliński and we can make a summary in a few days.
--
/ daniel.haxx.se

---------- Forwarded message ----------
Date: Wed, 1 Aug 2018 16:38:02
From: Daniel Jeliński <***@gmail.com>
Reply-To: libcurl development <curl-***@cool.haxx.se>
To: libcurl development <curl-***@cool.haxx.se>
Subject: Re: Slow Windows uploads (with patch)
The tool could try upload with and without "the patch" to one/two/three
places and report the results with the exact Windows version used. We could
ask curl users to report *their* results and we collect the results in a
sheet somewhere.
How about a CURL build? I built curl binaries with and without the
patch, which users could use for testing on their machines. These are
available for download here:
https://www.dropbox.com/s/5i2a2bth2ea28ys/curl.zip

Running test is as simple as unpacking and launching testcurl.bat,
with possible extra step of installing MSVC 2010 redistributable. My
results from a few machines:
1. Windows 2008R2, Europe:
Microsoft Windows [Version 6.1.7601]
generating test file...
running vanilla...
start:0,592000 total:11,263000
running patched...
start:0,593000 total:3,432000

2. Windows 2012R2, USA:
Microsoft Windows [Version 6.3.9600]
generating test file...
running vanilla...
start:0.296000 total:2.921000
running patched...
start:0.297000 total:1.297000

3. Windows 2003, USA:
Microsoft Windows [Version 5.2.3790]
generating test file...
running vanilla...
start:0.281000 total:5.031000
running patched...
start:0.281000 total:5.000000

As expected, there's almost no difference on 2003. In both other cases
tested the difference was more than 100%.

Binaries were built with 32bit VS2010, using command line:
# nmake /f Makefile.vc mode=dll GEN_PDB=yes

They will likely require MSVC redistributable, available here:
https://www.microsoft.com/en-us/download/details.aspx?id=5555
I tried linking MSVC statically (RTLIBCFG=static), but resulting
binary kept crashing on -w.

For those who don't feel comfortable running binaries downloaded from
the net, the sources are available on git (branches: master &
Jelinski/buffer-tuning-under-Windows), and here's the testcurl script:
@echo off
ver
echo generating test file...
echo test >test
for /l %%i in (1,1,17) do ( type test>>test;)
echo running vanilla...
pushd curl_vanilla
curl -w"start:%%{time_starttransfer} total:%%{time_total}\n"
http://uploadjp.openspeedtest.com/upload -T ..\test
popd
echo running patched...
pushd curl_patched
curl -w"start:%%{time_starttransfer} total:%%{time_total}\n"
http://uploadjp.openspeedtest.com/upload -T ..\test
popd
del test
pause
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Jan Ehrhardt
2018-08-02 17:25:30 UTC
Permalink
Daniel Stenberg in gmane.comp.web.curl.library (Thu, 2 Aug 2018 14:52:51
Post by Daniel Stenberg
We want to have more user's experience and results from tests to determine how
we should make curl make uploads on windows as fast as possible.
Windows 7, from Amsterdam, NL

Microsoft Windows [Version 6.1.7601]
generating test file...
running vanilla...
start:0,531000 total:9,657000
running patched...
start:0,546000 total:2,684000
--
Jan

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: htt
Jan Ehrhardt
2018-08-02 17:44:10 UTC
Permalink
Post by Daniel Stenberg
We want to have more user's experience and results from tests to determine how
we should make curl make uploads on windows as fast as possible.
From Windows 2008 R2, Amsterdam, NL:

Microsoft Windows [Version 6.1.7601]
generating test file...
running vanilla...
start:0,484000 total:8,562000
running patched...
start:0,484000 total:2,375000
--
Jan

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/e
Jan Ehrhardt
2018-08-02 18:34:26 UTC
Permalink
On Thu, 2 Aug 2018 14:52:51 +0200 (CEST), in gmane.comp.web.curl.library
Post by Daniel Stenberg
We want to have more user's experience and results from tests to determine how
we should make curl make uploads on windows as fast as possible.
Windows XP SP3, from Amsterdam, NL:

Microsoft Windows XP [Version 5.1.2600]
generating test file...
running vanilla...
start:0,547000 total:11,297000
running patched...
start:0,546000 total:11,046000

Windows 10, from Amsterdam, NL

Microsoft Windows [Version 10.0.17134.165]
generating test file...
running vanilla...
start:0.515000 total:4.875000
running patched...
start:0.578000 total:1.891000
--
Jan

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mai
Loading...