array vs setFastest: array (1.4x faster)
29,921,774 ops/sec
21,028,242 ops/sec
Fastest: array (2.6x faster)
15,116,546 ops/sec
5,755,930 ops/sec
Fastest: array (1.9x faster)
64,924,656 ops/sec
33,782,480 ops/sec
Fastest: array (2.2x faster)
62,930,528 ops/sec
28,291,592 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| array | |
| set |
| Test name | Executions per second |
|---|---|
| ✓ array | 162,496,544 Ops/sec |
| set | 87,447,760 Ops/sec |