Script Preparation code:
AخA
 
const bool = true;
let i = 0;
let j = 0;
Tests:
  • if true then

     
    (() => {
      if (bool) {
        i++;
        j = i + 1;
      }
    })();
  • if not return

     
    (() => {
      if (!bool) return;
      i++;
      j = i + 1;
    })();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    if true then
    if not return

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0
Chrome 133 on Windows
View result in a separate tab
Test name Executions per second
if true then 4442367.0 Ops/sec
if not return 4465844.5 Ops/sec