Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
instanceof vs isPrototypeOf
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Browser:
Firefox 147
Operating system:
Windows
Device Platform:
Desktop
Date tested:
5 months ago
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
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({})