Run details:
Mozilla/5.0 (Android 13; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox Mobile 122
Android
Mobile
10 months ago
Test name Executions per second
Set spread 204907.8 Ops/sec
Array from set 218621.0 Ops/sec
Filter 325721.8 Ops/sec
Basic forEach 3712156.2 Ops/sec
for loop 249372.9 Ops/sec
filterWithSet 251854.1 Ops/sec
Script Preparation code:
Tests:
  • Set spread

  • Array from set

  • Filter

  • Basic forEach

  • for loop

  • filterWithSet