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 13569.4 Ops/sec
map.has 51533.1 Ops/sec
array.includes 59843.8 Ops/sec
in obj 51559.7 Ops/sec
Script Preparation code:
Tests:
  • array.indexOf

  • map.has

  • array.includes

  • in obj