> ## 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.25x faster** than NumPy on average across 7,159 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. NumPy leads in bitwise, trig, and math — all active areas of improvement.

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

  <img className="hidden dark:block" src="https://mintcdn.com/none-4568e96a/Z0be43MStSPYSI6D/assets/v1.5.x/overview-categories-dark.png?fit=max&auto=format&n=Z0be43MStSPYSI6D&q=85&s=79e5904df02b03aab9ff8777aeefe3f9" alt="Performance by category: numpy-ts vs NumPy" width="1898" height="1358" data-path="assets/v1.5.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 for `int8`, `uint8`, and `float16`. Even `float64` (NumPy's home turf) is on par.

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

  <img className="hidden dark:block" src="https://mintcdn.com/none-4568e96a/Z0be43MStSPYSI6D/assets/v1.5.x/overview-dtypes-dark.png?fit=max&auto=format&n=Z0be43MStSPYSI6D&q=85&s=593a6ace3a95cc99c489517800e5f4e8" alt="Performance by data type: numpy-ts vs NumPy" width="1900" height="998" data-path="assets/v1.5.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 as fast or 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.

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

  <img className="hidden dark:block" src="https://mintcdn.com/none-4568e96a/Z0be43MStSPYSI6D/assets/v1.5.x/overview-scaling-dark.png?fit=max&auto=format&n=Z0be43MStSPYSI6D&q=85&s=f2183ffcce5da9fa694b67f861337a49" alt="Performance by array size: numpy-ts vs NumPy" width="1399" height="800" data-path="assets/v1.5.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>
