User-agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
These tests compare various methods of performing vector operations on arrays of vectors.
Test Description | Runs | Results (ms) | ||||
---|---|---|---|---|---|---|
Average | Median | Std Dev | Minimum | Maximum | ||
Add vectors using offsets | 3 | 1 | 1 | 1 | 1 | 2 |
Add vectors with optional offsets (requires branch) | 3 | 2 | 2 | 1 | 1 | 2 |
Add vectors using an array of Vec4s (Float32Arrays of length 4) | 3 | 3 | 3 | 1 | 3 | 4 |
Add vectors using tmps | 3 | 2 | 2 | 0 | 2 | 2 |
Add vectors using an array of Objects (with implicit hash lookups for the x,y,z,w components) | 3 | 2 | 2 | 0 | 2 | 2 |
Add vectors using Float32Array.subarray() | 3 | 20 | 20 | 1 | 20 | 21 |