node-lessons icon indicating copy to clipboard operation
node-lessons copied to clipboard

lesson10跑了benchmark'+'变最快了

Open wewea opened this issue 10 years ago • 2 comments
trafficstars

Node - 4.2.1

  • x 48,762,659 ops/sec ±1.79% (92 runs sampled) parseInt x 22,712,111 ops/sec ±2.80% (84 runs sampled) Number x 27,586,431 ops/sec ±1.15% (92 runs sampled) Fastest is:+

wewea avatar Oct 18 '15 14:10 wewea

这一点点变化,感觉是误差范围内的。6kw 的 ops 基本比不出实质性区别了,都是误差范围内的东西。

2015-10-18 22:38 GMT+08:00 vimquee [email protected]:

Node - 4.2.1

  • x 48,762,659 ops/sec ±1.79% (92 runs sampled) parseInt x 22,712,111 ops/sec ±2.80% (84 runs sampled) Number x 27,586,431 ops/sec ±1.15% (92 runs sampled) Fastest is:+

— Reply to this email directly or view it on GitHub https://github.com/alsotang/node-lessons/issues/67.

alsotang avatar Oct 20 '15 03:10 alsotang

@alsotang

// 这里的 async 不是 mocha 测试那个 async 的意思,这个选项与它的时间计算有关,默认勾上就好了。
.run({ 'async': true });

这里的默认勾上仅仅指的是{ 'async': true }吗?

我在jsPerf如果把 image勾上,测试就跑不起来了。

我的地址:

test-only

ilaipi avatar Jan 21 '16 15:01 ilaipi