HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
x
 
/*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();
}
const TEST_ITERATIONS=100000;
Tests:
  • String literal

     
    /*When writing async/deferred tests, use `deferred.resolve()` to mark test as done*/
    for (let i=0; i++; i<TEST_ITERATIONS) {
      const stringLiteral = "This is a string without variables or concatting";
    }
  • Template literal

     
    for (let i=0; i++; i<TEST_ITERATIONS) {
      const templateLiteral = `This is a string without variables or concatting`;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    String literal
    Template literal

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 18 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36
Chrome Mobile 134 on Android
View result in a separate tab
Test name Executions per second
String literal 45342740.0 Ops/sec
Template literal 42090692.0 Ops/sec