Run details:
Mozilla/5.0 (Linux; Android 10; GM1913) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
Filter arr10 5603384.5 Ops/sec
Filter set10 6919983.0 Ops/sec
Filter arr1000 342287.4 Ops/sec
Filter set1000 6995248.5 Ops/sec
Filter arr1000000 49.8 Ops/sec
Filter set1000000 7157498.5 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000