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 28084.9 Ops/sec
Has key in Object 28175.0 Ops/sec
Get from Map 36225.9 Ops/sec
Has key in Map 36063.0 Ops/sec
Has key in Set 36536.6 Ops/sec
Script Preparation code:
Tests:
  • Get from Object

  • Has key in Object

  • Get from Map

  • Has key in Map

  • Has key in Set