Script Preparation code:
x
 
var array = ["H", "E", "L", "L", "O", "."];
var string = "Hello.";
function is_array(array){
  if(array.constructor === Array){
      return true;
  }
  return false;
}
function is_string(string){
  if(typeof string === "string"){
    return true;
  }
  return false;
}
Tests:
  • is_array

     
    is_array(string);
  • is_string

     
    is_string(string);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    is_array
    is_string

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124 on Windows
View result in a separate tab
Test name Executions per second
is_array 1965609600.0 Ops/sec
is_string 1957260032.0 Ops/sec