Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.31
Chrome 117
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Includes 27624528.0 Ops/sec
binary search 10803623.0 Ops/sec
Map.has() 18303512.0 Ops/sec
Set.has() 27430340.0 Ops/sec
Obj[] 25776088.0 Ops/sec
Script Preparation code:
Tests:
  • Includes

  • binary search

  • Map.has()

  • Set.has()

  • Obj[]