Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Mac OS X 10.15
Desktop
10 months ago
Test name Executions per second
Set spread 852161.9 Ops/sec
Array from set 833409.7 Ops/sec
Filter 1125418.6 Ops/sec
Basic forEach 4500787.0 Ops/sec
for loop 1130997.8 Ops/sec
filterWithSet 1147539.6 Ops/sec
Script Preparation code:
Tests:
  • Set spread

  • Array from set

  • Filter

  • Basic forEach

  • for loop

  • filterWithSet