Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Linux
Desktop
8 months ago
Test name Executions per second
Object.hasOwnProperty 4581329.5 Ops/sec
Object in 4482721.5 Ops/sec
Array.indexOf 800754.4 Ops/sec
direct 4539056.5 Ops/sec
Array includes 810281.4 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;