Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Windows
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 3764840.0 Ops/sec
Object in 3594199.0 Ops/sec
Array.indexOf 3393034.0 Ops/sec
direct 3690105.0 Ops/sec
Array find 10678.7 Ops/sec
Map has 4166314.2 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array find

  • Map has


;