Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
2 years ago
Benchmark.js
.prototype.isPrototypeOf.bind
1.3M/s
.prototype.isPrototypeOf
897K/s
shorthand for Object.prototype.toString
287K/s
Object.prototype.toString.call
258K/s
View exact numbers
Test name Executions per second
.prototype.isPrototypeOf.bind 1,287,118 Ops/sec
.prototype.isPrototypeOf 897,471 Ops/sec
shorthand for Object.prototype.toString 287,006 Ops/sec
Object.prototype.toString.call 257,948 Ops/sec
Script Preparation code:
Tests: