Script Preparation code:
AخA
 
var N = 1000000
Tests:
  • !!

     
    var sum = 0
    for(let i = 0; i < N; i++) {
      if (!!(i & 0xFF)) sum++
    }
  • !== 0

     
    var sum = 0
    for(let i = 0; i < N; i++) {
      if((i & 0xFF) !== 0) sum++
    }
  • direct

     
    var sum = 0
    for(let i = 0; i < N; i++) {
      if(i & 0xFF) sum++
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    !!
    !== 0
    direct

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
!! 1526.3 Ops/sec
!== 0 1525.4 Ops/sec
direct 1539.4 Ops/sec