node-microbenchmark:Node.JS的微基准测试库:rocket:

时间:2021-04-29 07:53:55
【文件属性】:
文件名称:node-microbenchmark:Node.JS的微基准测试库:rocket:
文件大小:40KB
文件格式:ZIP
更新时间:2021-04-29 07:53:55
benchmarking node microbenchmark JavaScript 节点微基准 受启发的微型基准测试库 可用功能: 基准同步功能 异步功能的基准测试支持承诺 高精度基准(精确到纳秒级) 同步功能的基准测试 const { benchmark , show } = require ( 'node-microbenchmark' ) ; const slowFn = ( ) => { for ( var i = 0 ; i < 1e4 xss=removed> { } benchmark ( slowFn ) ; benchmark ( fastFn ) ; show ( ) ; 异步功能的基准测试 const benchmark = require ( '../index' ) ; const slowTimer = ( ) => new Promise ( res => setTimeout ( re
【文件预览】:
node-microbenchmark-master
----.nvmrc(8B)
----index.js(1KB)
----images()
--------node-microbenchmark.png(36KB)
----package.json(482B)
----.eslintrc.json(339B)
----test()
--------index.js(226B)
--------regexTestLookup.js(397B)
--------promise_benchmarking.js(321B)
--------short_circuit.js(775B)
--------test_arguments.js(234B)
----runner.js(525B)
----LICENSE(1KB)
----.gitignore(32B)
----README.md(1KB)
----benchmarkers.js(740B)
----inference.js(437B)

网友评论