Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Windows
Desktop
2 years ago
Test name Executions per second
Get from Object 22498.7 Ops/sec
Has key in Object 25676.8 Ops/sec
Get from Map 40499.6 Ops/sec
Has key in Map 39487.6 Ops/sec
Has key in Set 40209.4 Ops/sec
Script Preparation code:
Tests:
  • Get from Object

  • Has key in Object

  • Get from Map

  • Has key in Map

  • Has key in Set