What do js test results mean?

I am using the Benchmark JS version for node and I cannot find any information on how to read the results.

First, is there a place that details all the data you can extract from Benchmark JS?

Secondly, I am currently getting the following result in the console:

Test x 2,276,094 ops/sec ±0.84% (190 runs sampled)

What do all these bits of information mean?

Test : the name of my test, I know that

x 2,276,094 ops / sec : I assume this is the average number of times that the code could theoretically be run in a second?

0.84% ± : I do not know

190 sampling is performed : the number of time tests ran the code to get the result?

+4
1

, , , GolezTroi .

(), John-David Dalton :


Benchmark.js, jsPerf.

  • "ops/sec" . , .

  • , , 1%. . 5 () 5 ( ), . , 100,000 50 ms ( ), 100 (5 ). ( , 100), .

  • , , ops/sec, . , ops/sec, ops/sec .

    welch t-test, SunSpider , 2- t- ( ) t- welch ops/sec ops/sec , 1. 5.5% ops/sec, , ~ 5% . T- , .

+6

All Articles