Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
add elements
(version: 1)
Comparing performance of:
dom version vs content version
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here--> <div id="thingy"></div>
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:
dom version
const thingy = document.getElementById( "thingy" ) const table = document.createElement( "table" ) thingy.append( table ) for( let i = 0; 100 > i; i++ ) { const tr = document.createElement( "tr" ) for( let j = 0; j < 6; j++ ) { const td = document.createElement( "td" ) td.append( "something" ) tr.append( td ) } table.append( tr ) }
content version
const thingy = document.getElementById( "thingy" ) let content = "<table>" for( let i = 0; 100 > i; i++ ) { content += "<tr>" for( let j = 0; j < 6; j++ ) { content += "<td>something</td>" } content += "</tr>" } content += "</table>" table.append( content )
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
dom version
content version
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!
Comments
Confirm delete:
Do you really want to delete benchmark?