Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53
Windows 7
Other
7 years ago
Test name Executions per second
arr.filter 673301.6 Ops/sec
for 1651085.0 Ops/sec
arr.reduce 1253793.0 Ops/sec
regex 460196.5 Ops/sec
indexOf 1379728.0 Ops/sec
Tests:
  • arr.filter

  • for

  • arr.reduce

  • regex

  • indexOf