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.38x vs NumPy
- Best case: 69.69x
- Worst case: 0.13x
- Total benchmarks: 2390
- Machine: Apple M4 Max (16 cores, 128 GB, arm64)
- numpy-ts version: 1.3.0
| Category | Avg Speedup | Count | Faster | Slower |
|---|
| creation | 2.59x | 213 | 190 | 23 |
| arithmetic | 3.05x | 295 | 277 | 18 |
| math | 0.97x | 125 | 58 | 67 |
| trig | 1.10x | 216 | 118 | 98 |
| gradient | 7.71x | 22 | 22 | 0 |
| linalg | 3.65x | 269 | 259 | 10 |
| reductions | 2.03x | 413 | 331 | 82 |
| manipulation | 3.77x | 231 | 213 | 18 |
| io | 3.54x | 66 | 60 | 6 |
| indexing | 1.38x | 115 | 70 | 45 |
| bitwise | 2.50x | 10 | 10 | 0 |
| sorting | 1.18x | 75 | 41 | 34 |
| logic | 5.10x | 142 | 132 | 10 |
| statistics | 3.68x | 26 | 23 | 3 |
| sets | 2.62x | 33 | 24 | 9 |
| random | 1.35x | 46 | 40 | 6 |
| polynomials | 6.25x | 27 | 27 | 0 |
| fft | 1.47x | 66 | 31 | 35 |
| DType | Avg Speedup | Median Speedup | Count |
|---|
| float64 | 2.08x | 2.07x | 288 |
| float32 | 2.59x | 2.83x | 238 |
| float16 | 2.48x | 2.56x | 211 |
| int64 | 1.84x | 1.74x | 196 |
| uint64 | 1.70x | 1.63x | 188 |
| int32 | 2.36x | 2.48x | 204 |
| uint32 | 2.39x | 2.37x | 189 |
| int16 | 2.73x | 3.17x | 185 |
| uint16 | 2.67x | 3.09x | 184 |
| int8 | 3.19x | 3.08x | 185 |
| uint8 | 3.17x | 3.02x | 186 |
| complex128 | 1.92x | 1.69x | 68 |
| complex64 | 1.82x | 1.69x | 68 |