Run details:
Mozilla/5.0 (Mobile; LYF/LF-2403N/LYF-LF2403N-001-02-08-300518-i;Android; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5
Firefox Mobile 48
Firefox OS
Mobile
5 years ago
Test name Executions per second
Instanceof 6752353.5 Ops/sec
isArray 6845688.5 Ops/sec
Script Preparation code:
AخA
 
var test = [1,2,3,4];
var c;
Tests:
  • Instanceof

     
    if (test instanceof Array) { c++; }
  • isArray

     
    if (Array.isArray(test)) { c++; }