Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Windows
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 806091648.0 Ops/sec
Object in 737300608.0 Ops/sec
Array.indexOf 330622.0 Ops/sec
direct 728860544.0 Ops/sec
Array includes 273415.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;