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

Performance by Category

CategoryAvg SpeedupCountFasterSlower
creation2.35x21318429
arithmetic2.75x2952878
math2.19x12510520
trig2.02x21618927
gradient7.02x22220
linalg2.96x26922841
reductions1.90x41333974
manipulation1.93x23116467
io2.88x665016
indexing1.14x1155164
bitwise1.80x10100
sorting1.10x753639
logic3.61x14212913
statistics3.88x26233
sets2.92x33258
random1.55x46415
polynomials4.01x27216
fft1.06x662838

Performance by DType

DTypeAvg SpeedupMedian SpeedupCount
float642.05x1.73x288
float322.28x2.26x238
float162.22x2.21x211
int641.65x1.40x196
uint641.62x1.36x188
int322.13x2.14x204
uint322.21x2.16x189
int162.59x2.84x185
uint162.56x2.84x184
int82.90x3.01x185
uint82.86x2.99x186
complex1281.96x1.68x68
complex641.86x1.57x68