文件名称:benchmarkjs-pretty:使用更好的API围绕Benchmark.js进行微小包装
文件大小:34KB
文件格式:ZIP
更新时间:2024-06-06 02:43:05
benchmark pretty benchmarkjs TypeScript
Benchmark.js漂亮 这个库是流行的一个很小的包装,但是带有一个更好的API。 在complete基准测试的每个项目中指定cycle和complete功能总是很麻烦。 安装 # npm npm install --save-dev benchmarkjs-pretty # yarn yarn add --dev benchmarkjs-pretty 用法 import Benchmark from "benchmarkjs-pretty" ; new Benchmark ( ) . add ( "foo" , myFunction ) . add ( "bar" , myOtherFunction ) . run ( ) // Returns promise 执照 麻省理工学院,请参阅。
【文件预览】:
benchmarkjs-pretty-master
----.gitignore(720B)
----package.json(1KB)
----tslint.json(42B)
----src()
--------__tests__()
--------index.ts(2KB)
----LICENSE.md(1KB)
----.travis.yml(127B)
----CHANGELOG.md(314B)
----tsconfig.json(266B)
----README.md(603B)
----.npmignore(125B)
----.editorconfig(147B)
----.prettierrc(79B)
----yarn.lock(67KB)