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

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;