Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Linux
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 1183260672.0 Ops/sec
Object in 1157355392.0 Ops/sec
Array.indexOf 676274.9 Ops/sec
direct 798152192.0 Ops/sec
Array includes 1102666.5 Ops/sec
Set has 837579136.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

  • Set has