Script Preparation code:
AخA
 
var func = new Function("return 2 * 3");
Tests:
  • eval

     
    eval("(function(){ return 2 * 3})();");
  • new Function

     
    (new Function("return 2 * 3;"))();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    eval
    new Function

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
Chrome Mobile 131 on Android
View result in a separate tab
Test name Executions per second
eval 1644748.4 Ops/sec
new Function 637940.9 Ops/sec