This page benchmarks the performance of a collection of matrix libraries most of which are intended for use with WebGL:
glMatrix (v3.4.0, 2023-4-11), mjs (rev 16, 2010-12-15), CanvasMatrix, EWGL_math (rev 32, 2011-03-15), the math utilities in Google's Closure (svn rev: 1364, 2011-11-3), tdl (commit: 59d484f, 2011-06-03), twgl.js (v3.3.0, 2017-05-05), wgpu-matrix (v1.0.0, 2023-04-1), and Sylvester (v0.1.3, 2007-07-05).
Benchmarks for each library are run in an iframe. Results measure millions of iterations per second of the target operation.

LibraryMultiplicationTranslationScalingRotation (Arbitrary axis)Rotation (X axis)TransposeInverseVector TransformationAverage
wgpu-matrix-native
wgpu-matrix-float64
wgpu-matrix
w-alloc
twgl-native
twgl-math-native
twgl-math
twgl-float64
twgl
t-alloc
mjs
glm-js-gl-matrix
glm-js
glMatrix-native
glMatrix-float64
glMatrix
closure
Three
TDLMath
TDLFast
Sylvester
DOMMatrix
CanvasMatrix

Adapted by Stephen Bannasch from the benchmarks Brandon Jones created in his glmatrix library.
Additional improvements by Gregg Tavares.
Sylvester benchmarks by Felix E. Klee.
JavaScript Plotting library: Flotr; Sortable Table by Andrew Tetlaw.
The source code for these benchmarks can be found here on github. Pull requests quite welcome!



=============================================
Multiplication
=============================================

wgpu-matrix-native - Avg: 21287570 iterations per second, Min: 20243333 iterations per second, Max: 21573333 iterations per second

wgpu-matrix-float64 - Avg: 24585471 iterations per second, Min: 22089700 iterations per second, Max: 24926666 iterations per second

wgpu-matrix - Avg: 19980666 iterations per second, Min: 17900000 iterations per second, Max: 20253333 iterations per second

w-alloc - Avg: 941724 iterations per second, Min: 876666 iterations per second, Max: 956666 iterations per second

twgl-native - Avg: 25167333 iterations per second, Min: 23916666 iterations per second, Max: 25446666 iterations per second

twgl-math-native - Avg: 25167000 iterations per second, Min: 23846666 iterations per second, Max: 25413333 iterations per second

twgl-math - Avg: 24021333 iterations per second, Min: 21796666 iterations per second, Max: 24503333 iterations per second

twgl-float64 - Avg: 29687000 iterations per second, Min: 27340000 iterations per second, Max: 30143333 iterations per second

twgl - Avg: 23749666 iterations per second, Min: 21690000 iterations per second, Max: 24163333 iterations per second