Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Ubuntu
Desktop
one year ago
Test name Executions per second
Filter arr10 16388937.0 Ops/sec
Filter set10 38018424.0 Ops/sec
Filter arr1000 293054.2 Ops/sec
Filter set1000 50431768.0 Ops/sec
Filter arr1000000 255.7 Ops/sec
Filter set1000000 49737236.0 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000