HTML Preparation code:
AخA
 
1
<!-- JStat -->
2
<script src="https://cdn.jsdelivr.net/jstat/latest/jstat.min.js"></script>
3
<!-- NumericJS -->
4
<script src="https://cdn.rawgit.com/sloisel/numeric/master/src/numeric.js"></script>
5
<!-- Math.js -->
6
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.9.0/math.min.js"></script>
Script Preparation code:
x
 
var A = [[11, -1, 0], [-1, 12, -1], [0, -1, 11]],
    B = [[87], [12] , [0]];
var Numeric_LUa = numeric.LU(A),
    math_LUa = math.lup(A);
Tests:
  • jStat

     
    jStat.gauss_elimination(A, B);
  • Numeric JS (uses LUsolve under the hood)

     
    numeric.solve(A, B);
  • Numeric JS (LU Decomposed first)

     
    numeric.LUsolve(Numeric_LUa, B);
  • math.js

     
    math.lusolve(A, B);
  • math.js (LU Decomposed first)

     
    math.lusolve(math_LUa, B);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    jStat
    Numeric JS (uses LUsolve under the hood)
    Numeric JS (LU Decomposed first)
    math.js
    math.js (LU Decomposed first)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
jStat 2358601.8 Ops/sec
Numeric JS (uses LUsolve under the hood) 930884.4 Ops/sec
Numeric JS (LU Decomposed first) 1385989.8 Ops/sec
math.js 464471.1 Ops/sec
math.js (LU Decomposed first) 839937.2 Ops/sec