Tests:
  • comparison

    AخA
     
    let test = 'NA'
    let value = test ? test : 'no'; 
    if (test) {
      let total = value;
    }
  • assignment

     
    let test = 'NA'
    let value = 'no'; 
    if (test) {
      value = test;
      let total = value;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    comparison
    assignment

    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:109.0) Gecko/20100101 Firefox/112.0
Firefox 112 on Windows
View result in a separate tab
Test name Executions per second
comparison 1421778688.0 Ops/sec
assignment 1383598592.0 Ops/sec