小伙子

时间:2021-02-16 02:16:29
【文件属性】:
文件名称:小伙子
文件大小:117KB
文件格式:ZIP
更新时间:2021-02-16 02:16:29
JavaScript 小伙子 Node的性能和基准测试实用程序 表中的内容 安装 > cd your-project > npm install teeny-perf API 表现 性能是的包装。 它为极其简单的情况提供了高度简化的类: 开始性能监控 做一些需要一段时间的事情 停止性能监控 读取开始和停止之间经过的时间(以毫秒为单位) 冲洗并重复 方法 方法 描述 开始 开始衡量绩效 停止 停止测量性能并存储结果 吸气剂 类型 描述 结果 目的 结果持续时间 数字 时间(以毫秒为单位) 例子 基本表演聚会 const { Performance } = require ( "teeny-js-utilities" ) ; const perf = new Performance ( ) ; // somewhere in your code, you want to start measuring pe
【文件预览】:
teeny-perf-master
----.gitignore(895B)
----package.json(2KB)
----.npmrc(36B)
----.lintstagedrc.json(259B)
----package-lock.json(301KB)
----src()
--------index.js(84B)
--------__tests__()
--------performance.js(1KB)
----jest.config.js(3KB)
----.bump-and-release.config.js(904B)
----LICENSE(1KB)
----.github()
--------workflows()
----.prettierignore(26B)
----configuration()
--------jest()
--------latest()
--------eslint()
----.eslintrc.js(383B)
----.prettierrc.js(822B)
----README.md(3KB)
----.commitlintrc.js(539B)
----.huskyrc.json(174B)

网友评论