node-stagger:以给定的“每秒请求数”和“最大”速率执行堆栈

时间:2021-05-17 18:52:45
【文件属性】:
文件名称:node-stagger:以给定的“每秒请求数”和“最大”速率执行堆栈
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-17 18:52:45
JavaScript 节点交错 以给定的“每秒请求数”和“最大请求数”速率执行堆栈。 安装 npm install stagger 用法 var stagger = new Stagger ( options ) ; stagger . push ( methods ) ; stagger . start ( ) ; stagger . on ( "progress" , handleResponse ) ; stagger . on ( "finish" , handleDone ) ; 选项 requestsPerSecond每秒的请求数。 默认值:10 maxRequests最大打开请求数。 默认值:20 大事记 “进度”事件: index初始堆栈索引 pending -未决电话数 total -总通话次数 current -当前批次大小 percent -当前百分比 eta估算的总持续时间 cal
【文件预览】:
node-stagger-master
----.travis.yml(38B)
----package.json(593B)
----test()
--------stagger.js(4KB)
----.npmignore(10B)
----examples()
--------long-running.js(506B)
--------immediate.js(401B)
--------fast-running.js(486B)
--------array-batch.js(435B)
----.gitignore(12B)
----lib()
--------stagger.js(3KB)
----Makefile(62B)
----README.md(1KB)
----.jshintrc(6KB)

网友评论