Script Preparation code:
AخA
 
var test = [1,2,3,4];
var c;
Tests:
  • instanceof Array

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

     
    if (Array.isArray(test)) { c++; }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    instanceof Array
    isArray

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Linux
View result in a separate tab
Test name Executions per second
instanceof Array 14836868.0 Ops/sec
isArray 15638039.0 Ops/sec