Testing GPU.js v MathJS
- Creates a matrix M of size n^2 using random data, and its transpose M'.
- Times how long M · M' takes.
| Data Set Size | Mathjs Time (ms) | GPU.js Time (ms) |
|---|---|---|
| 50 | 16.80 | 17.90 |
| 100 | 41.90 | 6.90 |
| 150 | 67.80 | 9.80 |
| 200 | 121.70 | 12.30 |
| 250 | 222.70 | 16.00 |
| 300 | 383.60 | 20.30 |
| 350 | 606.90 | 25.30 |
| 400 | 920.40 | 28.30 |
| 450 | 1323.40 | 35.80 |
| 500 | 1847.80 | 42.20 |