Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Windows 8.1
Desktop
3 years ago
Test name Executions per second
Get from Object 142965520.0 Ops/sec
Get from Map 4172566.8 Ops/sec
Has key in Map 2195928.2 Ops/sec
Has key in Array OLD 1303.3 Ops/sec
Has key in Array NEW 1448.0 Ops/sec
Has key in Set 5649638.5 Ops/sec
Script Preparation code:
Tests:
  • Get from Object

  • Get from Map

  • Has key in Map

  • Has key in Array OLD

  • Has key in Array NEW

  • Has key in Set