Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0
Firefox 88
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 684137088.0 Ops/sec
Object in 600874368.0 Ops/sec
Array.indexOf 235760.3 Ops/sec
direct 631459072.0 Ops/sec
Array includes 262315.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;