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:
7 months ago
by:
Guest
Go 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:
5 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
instanceof
63.9M/s
isPrototypeOf
62.7M/s
View exact numbers
Test name
Executions per second
✓
instanceof
63,928,808 Ops/sec
isPrototypeOf
62,667,472 Ops/sec
Related benchmarks
Function: typeof vs instanceof
instanceof vs typeof
typeof vs instanceof Function
instanceof vs typeof vs prop check
instanceof vs typeof franco
instanceof vs typeof vs !!
Comments
Confirm delete:
Do you really want to delete benchmark?