Speedup test.
This commit is contained in:
parent
338acbcd9c
commit
9127efffc2
@ -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
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user