Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Filter arr10 21324646.0 Ops/sec
Filter set10 21087682.0 Ops/sec
Filter arr1000 1123295.1 Ops/sec
Filter set1000 20345388.0 Ops/sec
Filter arr1000000 154.7 Ops/sec
Filter set1000000 21921148.0 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000