Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36
Chrome 90
Fedora
Desktop
3 years ago
Test name Executions per second
Object.hasOwnProperty 3384413.2 Ops/sec
Object in 2995691.0 Ops/sec
Array.indexOf 886656.1 Ops/sec
direct 3027268.2 Ops/sec
Array includes 874673.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes