Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
sset vs remove atttr
(version: 0)
Comparing performance of:
set/set vs set/delete
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<span id='text'>Text</span>
Script Preparation code:
var el = document.getElementById('text');
Tests:
set/set
var testElement = document.getElementById("text"); testElement.setAttribute("title", "test"); testElement.setAttribute("title", "");
set/delete
var testElement = document.getElementById("text"); testElement.setAttribute("title", "test"); testElement.removeAttribute("title");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
set/set
set/delete
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!
Related benchmarks:
innerHTML vs removeChild (firstChild and lastChild)
append vs innerHTML
innerhtml vs removechild vs remove vs innerText vs textContent
Test read speed
Various ways of setting HTML text content
Comments
Confirm delete:
Do you really want to delete benchmark?