Skip to main content

Documentation Index

Fetch the complete documentation index at: https://numpyts.dev/llms.txt

Use this file to discover all available pages before exploring further.

Benchmark snapshot comparing numpy-ts against Pyodide NumPy (WASM-compiled CPython + NumPy).
All benchmarks measure computation time from JS and Python, respectively. To learn more, check out benchmark methodology.

Benchmark Summary

  • Average speedup: 2.38x vs NumPy
  • Best case: 69.69x
  • Worst case: 0.13x
  • Total benchmarks: 2390
  • Machine: Apple M4 Max (16 cores, 128 GB, arm64)
  • numpy-ts version: 1.3.0

Performance by Category

CategoryAvg SpeedupCountFasterSlower
creation2.59x21319023
arithmetic3.05x29527718
math0.97x1255867
trig1.10x21611898
gradient7.71x22220
linalg3.65x26925910
reductions2.03x41333182
manipulation3.77x23121318
io3.54x66606
indexing1.38x1157045
bitwise2.50x10100
sorting1.18x754134
logic5.10x14213210
statistics3.68x26233
sets2.62x33249
random1.35x46406
polynomials6.25x27270
fft1.47x663135

Performance by DType

DTypeAvg SpeedupMedian SpeedupCount
float642.08x2.07x288
float322.59x2.83x238
float162.48x2.56x211
int641.84x1.74x196
uint641.70x1.63x188
int322.36x2.48x204
uint322.39x2.37x189
int162.73x3.17x185
uint162.67x3.09x184
int83.19x3.08x185
uint83.17x3.02x186
complex1281.92x1.69x68
complex641.82x1.69x68