Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
2 months ago
Test name Executions per second
foreach 17680.5 Ops/sec
for++ 8719.2 Ops/sec
map 15901.0 Ops/sec
for of 16862.6 Ops/sec
for in 6879.5 Ops/sec
filter 15346.7 Ops/sec
reduce 15703.6 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for++

  • map

  • for of

  • for in

  • filter

  • reduce