Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
Chrome 88
Windows
Desktop
3 years ago
Test name Executions per second
Get from Object 3847294.2 Ops/sec
Get from Map 4681762.0 Ops/sec
Has key in Map 4704041.5 Ops/sec
Has key in Array OLD 86001.4 Ops/sec
Has key in Array NEW 86789.8 Ops/sec
Has key in Set 4792501.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