Run details:
Mozilla/5.0 (X11; CrOS x86_64 13904.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.147 Safari/537.36
Chrome 91
Chrome OS 13904.77.0
Desktop
3 years ago
Test name Executions per second
array.indexOf 547.1 Ops/sec
map.has 49208.5 Ops/sec
array.includes 25988.4 Ops/sec
in obj 52061.6 Ops/sec
Script Preparation code:
Tests:
  • array.indexOf

  • map.has

  • array.includes

  • in obj