Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36
Chrome 88
Linux
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 2791644.0 Ops/sec
Object in 2526633.0 Ops/sec
Array.indexOf 554019.9 Ops/sec
direct 2501620.8 Ops/sec
Array includes 578851.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;