phantom-pool:基于通用池的PhantomJS资源池

时间:2021-02-03 18:49:01
【文件属性】:
文件名称:phantom-pool:基于通用池的PhantomJS资源池
文件大小:9KB
文件格式:ZIP
更新时间:2021-02-03 18:49:01
nodejs npm phantomjs pool resource-pool 幻影池 基于的资源池。 使用phantom.create()创建新的幻象实例可能很慢。 如果您频繁创建新实例并销毁它们,例如由于HTTP请求,则此模块可以通过保持幻像实例池处于活动状态并使其易于在请求中重复使用它们来提供帮助。 这是一个人工来说明: Starting benchmark without pool noPool-0: 786.829ms noPool-1: 790.822ms noPool-2: 795.150ms noPool-3: 788.928ms noPool-4: 793.788ms noPool-5: 798.075ms noPool-6: 813.130ms
【文件预览】:
phantom-pool-master
----.gitignore(641B)
----.babelrc(145B)
----.eslintrc(27B)
----package.json(2KB)
----src()
--------index.js(2KB)
----.travis.yml(74B)
----LICENSE(1KB)
----README.md(3KB)
----.npmignore(561B)
----test()
--------.eslintrc(99B)
--------index.test.js(2KB)
--------benchmark.js(2KB)
--------maxuses.test.js(795B)

网友评论