From 96ece5c0eef0ca4953ec306e59fd7aa8d48be793 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 24 Apr 2017 12:03:08 +0200 Subject: curl: set a 100K buffer size by default Test command 'time curl http://localhost/80GB -so /dev/null' on a Debian Linux. Before (middle performing run out 9): real 0m28.078s user 0m11.240s sys 0m12.876s After (middle performing run out 9) real 0m26.356s (93.9%) user 0m5.324s (47.4%) sys 0m8.368s (65.0%) Also, doing SFTP over a 200 millsecond latency link is now about 6 times faster. Closes #1446 --- tests/data/test1403 | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/data/test1403') diff --git a/tests/data/test1403 b/tests/data/test1403 index 1a0fc7d8f..3a5b1b236 100644 --- a/tests/data/test1403 +++ b/tests/data/test1403 @@ -70,6 +70,7 @@ int main(int argc, char *argv[]) CURL *hnd; hnd = curl_easy_init(); + curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1403?foo=bar&baz=quux"); curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); -- cgit v1.2.3