Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Linux
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 3823428.2 Ops/sec
Object in 3591142.2 Ops/sec
Array.indexOf 367177.8 Ops/sec
direct 3582231.0 Ops/sec
Array includes 410298.3 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;