All benchmarks measure computation time from JS and Python, respectively. To learn more, check out benchmark methodology.
Size Scaling Summary
| Array Size | Avg Speedup | Best Case | Worst Case | Benchmarks |
|---|---|---|---|---|
| Small (100) | 1.32x | 41.48x | 0.05x | 3752 |
| Medium (1K) | 1.13x | 75.55x | 0.06x | 3752 |
| Large (10K) | 1.22x | 3236.34x | 0.01x | 3741 |
Small (100) — by Category
| Category | Avg Speedup | Count |
|---|---|---|
| creation | 1.37x | 285 |
| arithmetic | 0.98x | 487 |
| math | 0.97x | 320 |
| trig | 1.01x | 218 |
| gradient | 4.60x | 22 |
| linalg | 1.61x | 373 |
| reductions | 2.32x | 572 |
| manipulation | 1.25x | 496 |
| io | 3.43x | 66 |
| indexing | 1.24x | 187 |
| bitwise | 0.67x | 66 |
| sorting | 0.72x | 88 |
| logic | 0.89x | 275 |
| statistics | 2.69x | 30 |
| sets | 1.75x | 121 |
| random | 0.97x | 46 |
| polynomials | 2.34x | 28 |
| fft | 1.15x | 72 |
Medium (1K) — by Category
| Category | Avg Speedup | Count |
|---|---|---|
| creation | 1.06x | 285 |
| arithmetic | 1.16x | 487 |
| math | 1.11x | 320 |
| trig | 1.00x | 218 |
| gradient | 3.87x | 22 |
| linalg | 1.53x | 373 |
| reductions | 1.13x | 572 |
| manipulation | 1.23x | 496 |
| io | 2.25x | 66 |
| indexing | 0.84x | 187 |
| bitwise | 0.61x | 66 |
| sorting | 0.82x | 88 |
| logic | 0.99x | 275 |
| statistics | 0.99x | 30 |
| sets | 1.24x | 121 |
| random | 0.85x | 46 |
| polynomials | 2.34x | 28 |
| fft | 0.60x | 72 |
Large (10K) — by Category
| Category | Avg Speedup | Count |
|---|---|---|
| creation | 2.18x | 285 |
| arithmetic | 1.70x | 487 |
| math | 1.47x | 320 |
| trig | 1.14x | 218 |
| gradient | 7.09x | 22 |
| linalg | 1.15x | 373 |
| reductions | 0.69x | 572 |
| manipulation | 1.33x | 496 |
| io | 2.38x | 55 |
| indexing | 0.66x | 187 |
| bitwise | 1.13x | 66 |
| sorting | 0.99x | 88 |
| logic | 1.23x | 275 |
| statistics | 0.69x | 30 |
| sets | 1.78x | 121 |
| random | 0.83x | 46 |
| polynomials | 2.32x | 28 |
| fft | 0.81x | 72 |