Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
10 months ago
Test name Executions per second
jStat 1302259.5 Ops/sec
Numeric JS (uses LUsolve under the hood) 630631.2 Ops/sec
Numeric JS (LU Decomposed first) 853766.8 Ops/sec
math.js 378653.4 Ops/sec
math.js (LU Decomposed first) 620703.6 Ops/sec
Sparse - jStat 58451.1 Ops/sec
Sparse - Numeric JS (uses LUsolve under the hood) 48010.8 Ops/sec
Sparse - Numeric JS (LU Decomposed first) 156236.6 Ops/sec
Sparse - math.js 7768.5 Ops/sec
Sparse - math.js (LU Decomposed first) 602527.8 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)