Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
one year ago
Test name Executions per second
Object.hasOwnProperty 5246364.5 Ops/sec
Object in 4942895.5 Ops/sec
Array.indexOf 1045242.4 Ops/sec
direct 4953886.5 Ops/sec
Array includes 1029488.4 Ops/sec
has 3413079.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

  • has


;