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.07x vs NumPy
  • Best case: 63.03x
  • Worst case: 0.08x
  • Total benchmarks: 2390
  • Machine: Apple M4 Max (16 cores, 128 GB, arm64)
  • numpy-ts version: 1.4.0

Performance by Category

CategoryAvg SpeedupCountFasterSlower
creation2.42x21318924
arithmetic2.65x29528213
math0.91x1255075
trig1.10x21611997
gradient7.54x22220
linalg3.19x26923039
reductions1.77x41332885
manipulation2.25x23118348
io2.96x665115
indexing1.29x1155263
bitwise2.02x10100
sorting1.32x754530
logic4.18x14213012
statistics4.00x26233
sets2.46x33249
random1.67x46415
polynomials4.36x27216
fft1.24x663036

Performance by DType

DTypeAvg SpeedupMedian SpeedupCount
float641.90x1.73x288
float322.21x2.02x238
float162.25x2.28x211
int641.54x1.36x196
uint641.48x1.35x188
int322.00x2.05x204
uint322.03x1.99x189
int162.32x2.69x185
uint162.30x2.72x184
int82.74x2.88x185
uint82.68x2.79x186
complex1281.88x1.68x68
complex641.77x1.56x68