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 29193.1 Ops/sec
Has key in Object 28236.9 Ops/sec
Get from Map 36934.6 Ops/sec
Has key in Map 37241.9 Ops/sec
Has key in Set 36461.9 Ops/sec
Script Preparation code:
Tests:
  • Get from Object

  • Has key in Object

  • Get from Map

  • Has key in Map

  • Has key in Set