Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36/9uiP7EnX-09
Chrome 112
Windows
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 693366464.0 Ops/sec
Object in 687115072.0 Ops/sec
Array.indexOf 1066209.2 Ops/sec
direct 739192000.0 Ops/sec
Array includes 1147495.6 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes