Tests:
  • Await on promise

    x
     
    async function foo() {
        return 0; 
    }
    async function doit() {
        await foo(); 
    }
    doit().then(console.log);
  • Await no promise

     
    function foo() {
        return 0; 
    }
    async function doit() {
        await foo(); 
    }
    doit().then(console.log);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Await on promise
    Await no promise

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126 on Windows
View result in a separate tab
Test name Executions per second
Await on promise 193929.2 Ops/sec
Await no promise 251098.5 Ops/sec