Skip to main content
numpy-ts is 1.22x faster than NumPy on average across 2,390 benchmarks and runs natively in JavaScript + WASM with zero dependencies. It’s faster in 12 of 18 categories, with standout wins in gradient computation (3.5x), polynomial operations (3.2x), and boolean logic (2.3x).
All benchmarks compare computation time between JS (numpy-ts) and Python (NumPy with OpenBLAS), measured on each side respectively. See methodology for details.

Performance by Category

numpy-ts outperforms NumPy in most categories. NumPy leads in trig, math, and indexing — all active areas of improvement.
Performance by category: numpy-ts vs NumPy
See the full breakdown of category results on the numpy-ts vs. NumPy page.

Performance by Data Type

Smaller data types see the biggest gains — numpy-ts’s SIMD kernels process more elements per instruction for int8, uint8, and float16. Even float64 (NumPy’s home turf) is on par.
Performance by data type: numpy-ts vs NumPy
See the full breakdown of dtype results on the numpy-ts vs. NumPy page.

Performance by Array Size

numpy-ts is faster than NumPy at every tested array scale — from small (100-element) arrays where low overhead matters, to large (10K-element) arrays where SIMD throughput dominates.
Performance by array size: numpy-ts vs NumPy
See the full breakdown of array size results on the size scaling page.

All Benchmarks

vs. NumPy (Native)

How does numpy-ts compare to NumPy running natively in Python with OpenBLAS?

vs. NumPy (Pyodide)

How does numpy-ts compare to NumPy running in WebAssembly via Pyodide?

Performance Scaling by Size

How does numpy-ts performance scale across small, medium, and large array sizes?

Node.js, Deno & Bun

How does numpy-ts perform across different JavaScript runtimes?