mod dom

Benchmark created on


Preparation HTML

<ul name="" id="list1">
<li>hallo</li>
</ul>

<ul name="" id="list2">
<li>hallo</li>
</ul>

Test runner

Ready to run.

Testing in
TestOps/sec
fall1
var li1 = document.getElementById('list1');
li1.setAttribute("name","List 1");
var li2 = document.getElementById('list2');
li1.setAttribute("name","List 2");
 
ready
fall2
var li1 = document.getElementById('list1');
var li2 = document.getElementById('list2');
li1.setAttribute("name","List 1");
li1.setAttribute("name","List 2");
 
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.