HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
var url = new URL("http://localhost/?search=term");
Tests:
  • .toString()

     
    let urls = [];
    for(let i = 0; i < 100; ++i) {
      urls.push(url.toString());
    }
  • String()

     
    let urls = [];
    for(let i = 0; i < 100; ++i) {
      urls.push(String(url));
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    .toString()
    String()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
Test name Executions per second
.toString() 106844.7 Ops/sec
String() 62308.5 Ops/sec