Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array isArray vs instanceof
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 13; Mobile; rv:133.0) Gecko/133.0 Firefox/133.0
Browser:
Firefox Mobile 133
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Instanceof
41604988.0 Ops/sec
isArray
40790376.0 Ops/sec
Script Preparation code:
var test = [1,2,3,4]; var c;
Tests:
Instanceof
if (test instanceof Array) { c++; }
isArray
if (Array.isArray(test)) { c++; }