Script Preparation code:
x
 
function doSomething(x) {
  return true;
}
Tests:
  • A

     
    for(var i=0; i < 10; i++) {
      (function(someValue) {
        return true;
      })(i);
    }
  • B

     
    for(var i=0; i < 10; i++) {
      doSomething(i);
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    A
    B

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36
Chrome 78 on Linux
View result in a separate tab
Test name Executions per second
A 152746864.0 Ops/sec
B 1445376.4 Ops/sec