Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Mobile Safari/537.36
Chrome Mobile 127
Android
Mobile
3 months ago
Test name Executions per second
Filter arr10 2605389.2 Ops/sec
Filter set10 3498641.5 Ops/sec
Filter arr1000 107174.4 Ops/sec
Filter set1000 3385311.8 Ops/sec
Filter arr1000000 20.8 Ops/sec
Filter set1000000 3522427.8 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000