Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
one year ago
Set.has()
28.3M/s
Obj[]
28.0M/s
Map.has()
27.8M/s
binary search
13.0M/s
Includes
1.4M/s
View exact numbers
Test name Executions per second
Set.has() 28,277,194 Ops/sec
Obj[] 27,983,792 Ops/sec
Map.has() 27,795,340 Ops/sec
binary search 13,007,522 Ops/sec
Includes 1,393,935 Ops/sec
Script Preparation code:
Tests: