解释这个JsPerf.com结果 [英] Explain this JsPerf.com result
本文介绍了解释这个JsPerf.com结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这个网站上进行了测试
以获得以下详细解释:
- 什么是ops / sec?
- 它会进行多少次迭代?
- 根据什么计算哪个更快?
- 这些计算背后的公式是什么?
I ran a test on this website http://jsperf.com/
I want some one to explain
- What does green and pink signifies
- What is ops per second
- what is 95,814,583
- what is +- 1.95% is
- whats does 'fastest' and 'slower' means
解决方案
Hey, I’m the creator of jsPerf.
- The fastest test(s) get a green background. The slowest test(s) get a pink/red background.
- See below.
- It means the test can run about 95,814,583 times a second.
- ± 1.95 is the margin of error. (For more info, see below.)
- "fastest" means this is the fastest test in the test case. 19% slower means this test is 19% slower than the fastest test in the test case.
See John-David Dalton’s answer to "How does jsPerf work?" for a detailed explanation of the following:
- What is "ops/sec"?
- How many iterations does it do?
- On what basis does it calculate which is faster?
- What is the formula behind these calculations?
这篇关于解释这个JsPerf.com结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文