Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Linux
Desktop
11 months ago
Test name Executions per second
Filter arr10 19183858.0 Ops/sec
Filter set10 23180382.0 Ops/sec
Filter arr1000 1282950.4 Ops/sec
Filter set1000 22872674.0 Ops/sec
Filter arr1000000 164.7 Ops/sec
Filter set1000000 21624894.0 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000