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

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

     
    if (Array.isArray(test[0])) { c++; }
  • isEqual

     
    if (test[0] === 'a') { c++; }
  • isLessThan

     
    if(test[0] < -1) { c++; }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Instanceof
    isArray
    isEqual
    isLessThan

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
Chrome 83 on Windows
View result in a separate tab
Test name Executions per second
Instanceof 4104010.5 Ops/sec
isArray 4019264.2 Ops/sec
isEqual 11114933.0 Ops/sec
isLessThan 10960205.0 Ops/sec