Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
2 months ago
Test name Executions per second
Includes 1332641.1 Ops/sec
Object[key] 14625378.0 Ops/sec
Set.has 15797105.0 Ops/sec
map.has 15849242.0 Ops/sec
key in obj 14158992.0 Ops/sec
Script Preparation code:
Tests:
  • Includes

  • Object[key]

  • Set.has

  • map.has

  • key in obj