Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
instanceof vs isPrototypeOf
(version: 1)
Comparing performance of:
instanceof vs isPrototypeOf
Created:
4 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
class a {}
Tests:
instanceof
new a instanceof a, {}instanceof a
isPrototypeOf
a.prototype.isPrototypeOf(new a) a.prototype.isPrototypeOf({})
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
instanceof
isPrototypeOf
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Browser/OS:
Firefox 147 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
instanceof
63928808.0 Ops/sec
isPrototypeOf
62667472.0 Ops/sec
Related benchmarks:
Function: typeof vs instanceof
typeof vs instanceof vs null
instanceof vs typeof
typeof vs instanceof Function
instanceof vs typeof for objects
instanceof vs typeof vs prop check
setPrototypeOf vs getPrototypeOf
instanceof vs typeof franco
instanceof vs typeof vs !!
Comments
Confirm delete:
Do you really want to delete benchmark?