Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Windows
Desktop
10 months ago
Test name Executions per second
Set spread 908120.3 Ops/sec
Array from set 918955.9 Ops/sec
Filter 1035059.9 Ops/sec
Basic forEach 13790324.0 Ops/sec
for loop 1399112.1 Ops/sec
filterWithSet 1552571.5 Ops/sec
Script Preparation code:
Tests:
  • Set spread

  • Array from set

  • Filter

  • Basic forEach

  • for loop

  • filterWithSet