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.

How does numpy-ts performance scale with array size compared to NumPy? This page shows the full picture.
All benchmarks measure computation time from JS and Python, respectively. To learn more, check out benchmark methodology.

Size Scaling Summary

Array SizeAvg SpeedupBest CaseWorst CaseBenchmarks
Small (100)1.17x37.83x0.10x2390
Medium (1K)1.00x39.58x0.11x2390
Large (10K)1.23x2336.20x0.11x2379

Small (100) — by Category

CategoryAvg SpeedupCount
creation1.48x213
arithmetic0.78x295
math0.61x125
trig0.59x216
gradient3.85x22
linalg1.46x269
reductions1.91x413
manipulation1.13x231
io3.39x66
indexing0.89x115
bitwise0.54x10
sorting0.65x75
logic0.99x142
statistics2.93x26
sets2.43x33
random1.00x46
polynomials2.04x27
fft1.11x66

Medium (1K) — by Category

CategoryAvg SpeedupCount
creation1.19x213
arithmetic1.00x295
math0.56x125
trig0.55x216
gradient3.34x22
linalg1.53x269
reductions0.91x413
manipulation1.07x231
io2.17x66
indexing0.59x115
bitwise0.47x10
sorting0.80x75
logic1.49x142
statistics1.34x26
sets2.05x33
random0.85x46
polynomials2.00x27
fft0.67x66

Large (10K) — by Category

CategoryAvg SpeedupCount
creation3.25x213
arithmetic1.67x295
math0.64x125
trig0.65x216
gradient5.78x22
linalg1.37x269
reductions0.58x413
manipulation1.42x231
io2.77x55
indexing0.53x115
bitwise0.98x10
sorting0.99x75
logic4.45x142
statistics0.99x26
sets5.49x33
random0.83x46
polynomials1.98x27
fft1.03x66