Fastest: for loop (x of arr) (72.4x faster)
5,447 ops/sec
3,489 ops/sec
991 ops/sec
679 ops/sec
617 ops/sec
75 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Browser | OS | Engine | User Agent | When Created |
|---|---|---|---|---|
| Firefox 137 | Mac OS X 10.15 | Benchmark.js | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0 | one year ago |
| Chrome 122 | Linux | Benchmark.js | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 | 2 years ago |
| Chrome 122 | Linux | Benchmark.js | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 | 2 years ago |
| Chrome 122 | Linux | Benchmark.js | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 | 2 years ago |
| Chrome 122 | Linux | Benchmark.js | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 | 2 years ago |
| Chrome 122 | Linux | Benchmark.js | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 | 2 years ago |