Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Windows
Desktop
one year ago
Test name Executions per second
Filter arr10 15464606.0 Ops/sec
Filter set10 26515518.0 Ops/sec
Filter arr1000 130710.3 Ops/sec
Filter set1000 34241792.0 Ops/sec
Filter arr1000000 127.5 Ops/sec
Filter set1000000 36453632.0 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000