Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15
Safari 12
Mac OS X 10.14.1
Desktop
6 years ago
Test name Executions per second
Object.hasOwnProperty 3677822.2 Ops/sec
Object in 3562511.0 Ops/sec
Array.indexOf 3083.4 Ops/sec
direct 3514136.8 Ops/sec
Array includes 3155.7 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;