HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
/*your preparation JavaScript code goes here
To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/
async function globalMeasureThatScriptPrepareFunction() {
    // This function is optional, feel free to remove it.
    // await someThing();
}
Tests:
  • Fewer Statements Executed

    x
     
    async function loopWithDelay() {
        for (let i = 0; i < 10; i++) {
            await new Promise(resolve => setTimeout(resolve, 10));
        }
        console.log("Loop complete");
    }
    loopWithDelay();
  • More Statements Excuted

     
    async function loopWithDelay() {
        for (let i = 0; i < 20; i++) {
            await new Promise(resolve => setTimeout(resolve, 5));
        }
        console.log("Loop complete");
    }
    loopWithDelay();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Fewer Statements Executed
    More Statements Excuted

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!