Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Instanceof vs property access
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Browser:
Firefox 120
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
Instanceof
14132819.0 Ops/sec
property access
1766175104.0 Ops/sec
Script Preparation code:
elem = document.createElement('div');
Tests:
Instanceof
elem instanceof HTMLElement
property access
elem.nodeType === Node.ELEMENT_NODE