Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Windows
Desktop
2 years ago
Test name Executions per second
Get from Object 29100.3 Ops/sec
Has key in Object 28213.4 Ops/sec
Get from Map 35662.6 Ops/sec
Has key in Map 35227.7 Ops/sec
Has key in Set 36243.1 Ops/sec
Script Preparation code:
Tests:
  • Get from Object

  • Has key in Object

  • Get from Map

  • Has key in Map

  • Has key in Set