Skip to main content
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.23x vs NumPy
  • Best case: 69.51x
  • 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.52x21318924
arithmetic2.86x29527619
math0.93x1255570
trig1.04x216109107
gradient7.40x22220
linalg3.43x26925910
reductions1.90x41332687
manipulation3.46x23121120
io3.19x665412
indexing1.27x1156748
bitwise1.98x10100
sorting1.11x753342
logic4.59x14213210
statistics3.68x26233
sets2.44x33249
random1.33x46397
polynomials5.78x27270
fft1.37x663036

Performance by DType

DTypeAvg SpeedupMedian SpeedupCount
float641.92x1.84x288
float322.37x2.53x238
float162.36x2.44x211
int641.75x1.64x196
uint641.62x1.53x188
int322.21x2.33x204
uint322.26x2.39x189
int162.52x3.06x185
uint162.49x2.97x184
int83.00x2.98x185
uint82.95x2.83x186
complex1281.87x1.68x68
complex641.75x1.67x68