Tests:
  • Inline return

    AخA
     
    let b = {
        'a': 1
    };
    function a (mutable) {
        return mutable.a = 5;
    };
    a(b);
  • Newline return

     
    let b = {
        'a': 1
    };
    function a (mutable) {
        mutable.a = 5;
        return;
    }
    a(b);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Inline return
    Newline return

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135 on Linux
View result in a separate tab
Test name Executions per second
Inline return 1668976640.0 Ops/sec
Newline return 1672454400.0 Ops/sec