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

     
    if (typeof test === 'object') { 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
    typeof
    isArray

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36
Chrome Mobile 134 on Android
View result in a separate tab
Test name Executions per second
typeof 2985782.0 Ops/sec
isArray 3070768.0 Ops/sec