cachingelements

JavaScript performance comparison

Test case created

Preparation code

<div id="i">abc</div>

Preparation code output

abc

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
with caching
var e = document.getElementById("i");
e.innerHTML = "test";
e.innerHTML = "abc";
pending…
without caching
document.getElementById("i").innerHTML = "test";
document.getElementById("i").innerHTML = "abc";
pending…

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

Compare results of other browsers

0 comments

Add a comment