Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
2 years ago
Benchmark.js
jStat
1.4M/s
Numeric JS (LU Decomposed first)
879K/s
Sparse - math.js (LU Decomposed first)
623K/s
math.js (LU Decomposed first)
617K/s
Numeric JS (uses LUsolve under the hood)
523K/s
math.js
373K/s
Sparse - Numeric JS (LU Decomposed first)
180K/s
Sparse - jStat
85K/s
Sparse - Numeric JS (uses LUsolve under the hood)
62K/s
Sparse - math.js
10K/s
View exact numbers
Test name Executions per second
jStat 1,443,914 Ops/sec
Numeric JS (LU Decomposed first) 879,450 Ops/sec
Sparse - math.js (LU Decomposed first) 622,829 Ops/sec
math.js (LU Decomposed first) 616,685 Ops/sec
Numeric JS (uses LUsolve under the hood) 522,868 Ops/sec
math.js 373,476 Ops/sec
Sparse - Numeric JS (LU Decomposed first) 179,594 Ops/sec
Sparse - jStat 85,040 Ops/sec
Sparse - Numeric JS (uses LUsolve under the hood) 62,372 Ops/sec
Sparse - math.js 9,731 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: