Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Windows
Desktop
one year ago
Benchmark.js
jStat
1.5M/s
Numeric JS (LU Decomposed first)
765K/s
Numeric JS (uses LUsolve under the hood)
525K/s
math.js (LU Decomposed first)
505K/s
Sparse - math.js (LU Decomposed first)
484K/s
math.js
279K/s
Sparse - Numeric JS (LU Decomposed first)
116K/s
Sparse - jStat
62K/s
Sparse - Numeric JS (uses LUsolve under the hood)
43K/s
Sparse - math.js
6K/s
View exact numbers
Test name Executions per second
jStat 1,536,220 Ops/sec
Numeric JS (LU Decomposed first) 764,818 Ops/sec
Numeric JS (uses LUsolve under the hood) 525,146 Ops/sec
math.js (LU Decomposed first) 504,750 Ops/sec
Sparse - math.js (LU Decomposed first) 484,482 Ops/sec
math.js 278,960 Ops/sec
Sparse - Numeric JS (LU Decomposed first) 116,250 Ops/sec
Sparse - jStat 61,697 Ops/sec
Sparse - Numeric JS (uses LUsolve under the hood) 42,696 Ops/sec
Sparse - math.js 5,883 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: