Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36
Chrome Mobile 117
Android
Mobile
one year ago
Test name Executions per second
Filter arr10 6356470.0 Ops/sec
Filter set10 7488602.0 Ops/sec
Filter arr1000 377804.6 Ops/sec
Filter set1000 7142881.5 Ops/sec
Filter arr1000000 51.1 Ops/sec
Filter set1000000 7582001.0 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000