> ## Documentation Index
> Fetch the complete documentation index at: https://numpyts.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Performance Overview

numpy-ts is **1.36x faster** than NumPy on average across 10,528 benchmarks (small, medium, and large arrays) and runs natively in JavaScript + WASM with zero dependencies.

> [!TIP]
>
> All benchmarks compare computation time between JS (numpy-ts) and Python (NumPy with OpenBLAS), measured on each side respectively. See [methodology](https://numpyts.dev/v1.7.x/performance/methodology.md) for details.

## Performance by Category

numpy-ts outperforms NumPy in most categories, led by gradient (4.63x), io (2.69x), and polynomials (2.35x). NumPy leads in bitwise, indexing, sorting, and random — all active areas of improvement.

![Performance by category: numpy-ts vs NumPy](https://mintcdn.com/none-4568e96a/FjI_vMvcC_rpWj4L/assets/v1.7.x/overview-categories-light.png?fit=max\&auto=format\&n=FjI_vMvcC_rpWj4L\&q=85\&s=58f560bff7476d9111afab9e78d5ba3c)

> [!NOTE]
>
> See the full breakdown of category results on the [numpy-ts vs. NumPy page](https://numpyts.dev/v1.7.x/performance/vs-numpy.md).

## Performance by Data Type

Smaller data types see the biggest gains — numpy-ts's SIMD kernels process more elements per instruction, and `float16` leads at 1.59x. Even `float64` (NumPy's home turf) is 1.35x faster. Complex types are the exception, where NumPy still leads.

![Performance by data type: numpy-ts vs NumPy](https://mintcdn.com/none-4568e96a/EPfeO0JHMp-NcLV2/assets/v1.7.x/overview-dtypes-light.png?fit=max\&auto=format\&n=EPfeO0JHMp-NcLV2\&q=85\&s=46826cdd780ed3beab389f9daee176d9)

> [!NOTE]
>
> See the full breakdown of dtype results on the [numpy-ts vs. NumPy page](https://numpyts.dev/v1.7.x/performance/vs-numpy.md).

## Performance by Array Size

numpy-ts is faster than NumPy at every tested array scale — from small (100-element) arrays where low overhead matters (1.45x), to large (10K-element) arrays where SIMD throughput dominates (1.42x).

![Performance by array size: numpy-ts vs NumPy](https://mintcdn.com/none-4568e96a/FjI_vMvcC_rpWj4L/assets/v1.7.x/overview-scaling-light.png?fit=max\&auto=format\&n=FjI_vMvcC_rpWj4L\&q=85\&s=6ea184f700bf830ebbcca9bc10c6fcd3)

> [!NOTE]
>
> See the full breakdown of array size results on the [size scaling page](https://numpyts.dev/v1.7.x/performance/size-scaling.md).

## All Benchmarks

> [card] [vs. NumPy (Native)](https://numpyts.dev/v1.7.x/performance/vs-numpy.md)
>
> How does numpy-ts compare to NumPy running natively in Python with OpenBLAS?

> [card] [vs. NumPy (Pyodide)](https://numpyts.dev/v1.7.x/performance/vs-pyodide.md)
>
> How does numpy-ts compare to NumPy running in WebAssembly via Pyodide?

> [card] [Performance Scaling by Size](https://numpyts.dev/v1.7.x/performance/size-scaling.md)
>
> How does numpy-ts performance scale across small, medium, and large array sizes?

> [card] [Node.js, Deno & Bun](https://numpyts.dev/v1.7.x/performance/deno-bun.md)
>
> How does numpy-ts perform across different JavaScript runtimes?


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.