Script Preparation code:
AخA
 
var func = new Function("return 2 * 3");
var f2 = function() { return 2*3; }
Tests:
  • Func

     
    func();
  • Plain

     
    f2();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Func
    Plain

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko)
AppleMail 605 on Mac OS X 10.15.4
View result in a separate tab
Test name Executions per second
Func 9129946.0 Ops/sec
Plain 9146855.0 Ops/sec