Speedup test.

This commit is contained in:
Alexey Melnichuk 2014-09-10 13:21:28 +05:00
parent 338acbcd9c
commit 9127efffc2
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ Lua-cURLv2 binding has several problems:
## Installation ## Installation
``` ```
luarocks install lcurl --server=https://rocks.moonscript.org/dev luarocks install lua-curl --server=https://rocks.moonscript.org/dev
``` ```
## Usage ## Usage

View File

@ -3,9 +3,9 @@ local curl = require "lcurl"
-- How many times curl_multi_perform should be called before hitting of CURLPAUSE_CONT. -- How many times curl_multi_perform should be called before hitting of CURLPAUSE_CONT.
-- (including curl_multi_perform that causes WriteFunction to pause writes, -- (including curl_multi_perform that causes WriteFunction to pause writes,
-- i.e. 1 means that CURLPAUSE_CONT will be performed immediately after pause.) -- i.e. 1 means that CURLPAUSE_CONT will be performed immediately after pause.)
local WAIT_COUNT = 32 local WAIT_COUNT = 15
local SIZE = 100 * 1024 local SIZE = 10 * 1024
local RESOURCE_URL = "http://httpbin.org/bytes/" .. SIZE local RESOURCE_URL = "http://httpbin.org/bytes/" .. SIZE
local State = { local State = {