curl-library
Re: HTTP PUT performance issues
Date: Wed, 4 Dec 2002 15:57:30 -0500
I don't have an ftp server on that machine, I will see if I can get one to
try out.
I did push the same file to a Linux ftp server on the same subnet and it
usually xferred in under 2 seconds, FWIW.
If you have a JVM installed somewhere, you can try this simple java app for
PUT comparison. This app routinely puts my test file to my server in about
1.6 seconds (with curl taking about 16).
(See attached file: httpput.class)(See attached file: httpput.java)
Daniel Stenberg
<daniel_at_haxx.se> To: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
Sent by: cc:
curl-library-admin_at_lists.sour Subject: Re: HTTP PUT performance issues
ceforge.net
12/04/2002 02:27 PM
Please respond to
curl-library
On Wed, 4 Dec 2002, Rick Jones wrote:
> Perhaps the TCP window sizes are not the same in the FTP and HTTP PUT
> cases? Even for localhost that might have an effect on the transfer
speed.
> Similarly, the size of the buffers used for send or recv will have an
> effect on localhost transfers by altering the CPU utilization.
Well, curl never messes with options like that so I can't see how they
would
be different. Also, the send buffer is the exact same here in both cases.
In fact, *very* little differs between a HTTP PUT and a FTP STOR once the
data has started getting sent. Both ways is just a binary stream of data
being sent off as soon as the socket returns as writable from the select()
call.
RBramante, can you see the same effect that FTP upload performs "full
speed"
?
Personally, I don't have any other tool that does HTTP PUT to compare
speeds
with so I can't tell if it's just my server that is slow at receiving PUT.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
- application/octet-stream attachment: httpput.class
- application/octet-stream attachment: httpput.java