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 native Python NumPy (OpenBLAS-backed) across small, medium, and large array sizes. Run your own via npm run bench.
All benchmarks measure computation time from JS and Python, respectively. To learn more, check out benchmark methodology.

Benchmark Summary

  • Average speedup: 1.11x vs NumPy
  • Best case: 2422.82x
  • Worst case: 0.09x
  • Total benchmarks: 7159
  • Machine: Apple M4 Max (16 cores, 128 GB, arm64)
  • numpy-ts version: 1.4.0

Performance by Category

CategoryAvg SpeedupCountFasterSlower
creation1.76x639476163
arithmetic1.05x885400485
math0.62x37582293
trig0.61x648151497
gradient4.48x66660
linalg1.50x807523284
reductions0.96x1239613626
manipulation1.16x693329364
io2.71x18716225
indexing0.66x345127218
bitwise0.65x30723
sorting0.82x22558167
logic1.69x426242184
statistics1.54x784830
sets3.33x997722
random0.91x1384989
polynomials2.06x816318
fft0.91x19888110

Performance by DType

DTypeAvg SpeedupMedian SpeedupCount
float641.02x0.95x863
float321.05x0.98x713
float161.36x1.36x632
int641.03x0.94x587
uint641.00x0.93x563
int321.16x1.05x611
uint321.19x1.07x566
int161.11x1.01x554
uint161.12x1.02x551
int81.27x1.02x554
uint81.27x1.05x557
complex1280.85x0.80x204
complex640.80x0.62x204