> ## 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.13x faster** than NumPy on average across 7,159 benchmarks (small, medium, and large arrays) and runs natively in JavaScript + WASM with zero dependencies. It's faster in **12 of 18 categories**, with standout wins in gradient computation (4.3x), polynomial operations (3.2x), and boolean logic (2.3x).

<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/tYR4b4DCQtDm1nGT/assets/v1.4.x/overview-categories-light.png?fit=max&auto=format&n=tYR4b4DCQtDm1nGT&q=85&s=a7be3c5f8c3ad2039e8f1ba1d5d048ae" alt="Performance by category: numpy-ts vs NumPy" width="1895" height="1358" data-path="assets/v1.4.x/overview-categories-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/none-4568e96a/tYR4b4DCQtDm1nGT/assets/v1.4.x/overview-categories-dark.png?fit=max&auto=format&n=tYR4b4DCQtDm1nGT&q=85&s=70477cd354ddfe10358293d3a533f442" alt="Performance by category: numpy-ts vs NumPy" width="1895" height="1358" data-path="assets/v1.4.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/tYR4b4DCQtDm1nGT/assets/v1.4.x/overview-dtypes-light.png?fit=max&auto=format&n=tYR4b4DCQtDm1nGT&q=85&s=f88b13657caa83e9dbef6688ab1a6d98" alt="Performance by data type: numpy-ts vs NumPy" width="1900" height="998" data-path="assets/v1.4.x/overview-dtypes-light.png" />

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

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