HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
var count = 1000;
var bool = true;
Tests:
  • literal comparison

     
    for (var i = 0; i <= count; i++) {
      if (bool === true || bool === false) {
        
      }
    }
  • typeof

     
    for (var i = 0; i <= count; i++) {
      if (typeof(bool) === "boolean") {
        
      }
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    literal comparison
    typeof

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115 on Windows 8.1
View result in a separate tab
Test name Executions per second
literal comparison 151485.3 Ops/sec
typeof 197763.7 Ops/sec