Script Preparation code:
x
 
var func1 = new Function("d", "return Math.log(2, d)");
var func2 = (d) => Math.log(2, d);
Tests:
  • new Function

     
    let x = func1(200);
  • native fn

     
    let x = func2(200)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    new Function
    native fn

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Windows
View result in a separate tab
Test name Executions per second
new Function 16058712.0 Ops/sec
native fn 6628096.5 Ops/sec