This document is generated by npm start
. It compares simple-statistics performance against similar libraries in JavaScript.
ss | science | jStat | mathjs | d3 | ssMaster | |
---|---|---|---|---|---|---|
variance | 274,273 | 91,357 | 288,404 | 105,230 | 266,853 | |
covariance | 171,323 | 131,503 | 173,292 | |||
skewness | 273,318 | 94,456 | 272,492 | |||
geometric mean | 162,046 | 228,736 | 161,526 | |||
medianAbsoluteDeviation | 39,743 | 1,999 | 1,196 | 37,356 | ||
median | 128,743 | 4,364 | 4,287 | 3,831 | 4,833 | 100,906 |
mode | 4,134 | 2,173 | 4,084 | 1,043 | 4,178 | |
mean | 472,919 | 2,173 | 605,700 | 47,769 | 468,220 | |
min | 798,208 | 610,040 | 79,384 | 615,831 | 826,998 | |
max | 860,251 | 599,831 | 80,053 | 661,395 | 791,874 | |
sum | 463,695 | 607,260 | 69,901 | 601,426 | 472,264 |
Fastest libraries are in bold. Numbers are in operations per second.
ssMaster is simple-statistics master branch, used for testing and proofing - it is not guaranteed to be any released version.
- simple-statistics: 4.1.1
- science: 1.9.3
- jstat: 1.7.0
- mathjs: 3.16.3
- d3-array: 1.2.1