Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.5993.2467 YaBrowser/23.11.0.2467 Yowser/2.5 Safari/537.36
Yandex Browser 23
Mac OS X 10.15.7
Desktop
2 years ago
in (true)
16.1M/s
in (false)
16.1M/s
obj.hasOwnProperty (true)
14.2M/s
obj.hasOwnProperty (false)
13.9M/s
prototype.hasOwnProperty.call (false)
4.9M/s
prototype.hasOwnProperty.call (true)
4.7M/s
View exact numbers
Test name Executions per second
in (true) 16,126,449 Ops/sec
in (false) 16,064,166 Ops/sec
obj.hasOwnProperty (true) 14,155,667 Ops/sec
obj.hasOwnProperty (false) 13,872,129 Ops/sec
prototype.hasOwnProperty.call (false) 4,914,296 Ops/sec
prototype.hasOwnProperty.call (true) 4,741,770 Ops/sec
Script Preparation code:
Tests: