Script Preparation code:
AخA
 
function add(a, b){
    return a + b
}
function addRef(a, b){
    return add(a, b)
}
var variable_addRef = add
Tests:
  • inline

     
    10+20
  • function call

     
    add(10, 20)
  • function call x2

     
    addRef(10, 20)
  • variable function

     
    variable_addRef(10, 20)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    inline
    function call
    function call x2
    variable function

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Windows
View result in a separate tab
Test name Executions per second
inline 807624896.0 Ops/sec
function call 14100558.0 Ops/sec
function call x2 7017114.0 Ops/sec
variable function 14066472.0 Ops/sec