> ## 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](./methodology) for details.
</Tip>

## 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.

<Frame>
  <img className="block dark:hidden" src="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" alt="Performance by category: numpy-ts vs NumPy" width="1890" height="1359" data-path="assets/v1.7.x/overview-categories-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/none-4568e96a/FjI_vMvcC_rpWj4L/assets/v1.7.x/overview-categories-dark.png?fit=max&auto=format&n=FjI_vMvcC_rpWj4L&q=85&s=cbb239bc15058bd3a86d721165f7928b" alt="Performance by category: numpy-ts vs NumPy" width="1890" height="1359" data-path="assets/v1.7.x/overview-categories-dark.png" />
</Frame>

<Info>
  See the full breakdown of category results on the [numpy-ts vs. NumPy page](./vs-numpy).
</Info>

## 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.37x faster. Complex and boolean types are the exception, where NumPy still leads.

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/none-4568e96a/FjI_vMvcC_rpWj4L/assets/v1.7.x/overview-dtypes-light.png?fit=max&auto=format&n=FjI_vMvcC_rpWj4L&q=85&s=df6d99b1de1ce67c265045032d9ac409" alt="Performance by data type: numpy-ts vs NumPy" width="1910" height="999" data-path="assets/v1.7.x/overview-dtypes-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/none-4568e96a/FjI_vMvcC_rpWj4L/assets/v1.7.x/overview-dtypes-dark.png?fit=max&auto=format&n=FjI_vMvcC_rpWj4L&q=85&s=bd9db5382f5461d2a5f61edbaab9c2da" alt="Performance by data type: numpy-ts vs NumPy" width="1910" height="999" data-path="assets/v1.7.x/overview-dtypes-dark.png" />
</Frame>

<Info>
  See the full breakdown of dtype results on the [numpy-ts vs. NumPy page](./vs-numpy).
</Info>

## 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).

<Frame>
  <img className="block dark:hidden" src="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" alt="Performance by array size: numpy-ts vs NumPy" width="1398" height="799" data-path="assets/v1.7.x/overview-scaling-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/none-4568e96a/FjI_vMvcC_rpWj4L/assets/v1.7.x/overview-scaling-dark.png?fit=max&auto=format&n=FjI_vMvcC_rpWj4L&q=85&s=e59140ee9fa357b745bf15b17cb683fa" alt="Performance by array size: numpy-ts vs NumPy" width="1398" height="799" data-path="assets/v1.7.x/overview-scaling-dark.png" />
</Frame>

<Info>
  See the full breakdown of array size results on the [size scaling page](./size-scaling).
</Info>

## All Benchmarks

<CardGroup cols={2}>
  <Card title="vs. NumPy (Native)" icon="chart-bar" href="./vs-numpy">
    How does numpy-ts compare to NumPy running natively in Python with OpenBLAS?
  </Card>

  <Card title="vs. NumPy (Pyodide)" icon="globe" href="./vs-pyodide">
    How does numpy-ts compare to NumPy running in WebAssembly via Pyodide?
  </Card>

  <Card title="Performance Scaling by Size" icon="arrows-left-right" href="./size-scaling">
    How does numpy-ts performance scale across small, medium, and large array sizes?
  </Card>

  <Card title="Node.js, Deno & Bun" icon="server" href="./deno-bun">
    How does numpy-ts perform across different JavaScript runtimes?
  </Card>
</CardGroup>
