Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Chrome 57
Windows
Other
7 years ago
Test name Executions per second
jStat 740462.2 Ops/sec
Numeric JS (uses LUsolve under the hood) 555380.1 Ops/sec
Numeric JS (LU Decomposed first) 647344.8 Ops/sec
math.js 100136.7 Ops/sec
math.js (LU Decomposed first) 181726.8 Ops/sec
Sparse - jStat 24882.7 Ops/sec
Sparse - Numeric JS (uses LUsolve under the hood) 50493.0 Ops/sec
Sparse - Numeric JS (LU Decomposed first) 136299.3 Ops/sec
Sparse - math.js 4782.7 Ops/sec
Sparse - math.js (LU Decomposed first) 180209.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jStat

  • Numeric JS (uses LUsolve under the hood)

  • Numeric JS (LU Decomposed first)

  • math.js

  • math.js (LU Decomposed first)

  • Sparse - jStat

  • Sparse - Numeric JS (uses LUsolve under the hood)

  • Sparse - Numeric JS (LU Decomposed first)

  • Sparse - math.js

  • Sparse - math.js (LU Decomposed first)


;