Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 OPR/94.0.0.0
Opera 94
Windows
Desktop
one year ago
Test name Executions per second
forEach 521174.6 Ops/sec
map 492298.3 Ops/sec
find and foreach 505074.3 Ops/sec
nested foreach and filter 6860544.0 Ops/sec
nested filter and map 8766039.0 Ops/sec
nested filter and reduce 9813827.0 Ops/sec
Script Preparation code:
Tests:
  • forEach

  • map

  • find and foreach

  • nested foreach and filter

  • nested filter and map

  • nested filter and reduce