Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
Filter arr10 6224757.5 Ops/sec
Filter set10 7339858.5 Ops/sec
Filter arr1000 674337.0 Ops/sec
Filter set1000 7335848.5 Ops/sec
Filter arr1000000 78.0 Ops/sec
Filter set1000000 7411149.0 Ops/sec
Script Preparation code:
Tests:
  • Filter arr10

  • Filter set10

  • Filter arr1000

  • Filter set1000

  • Filter arr1000000

  • Filter set1000000