innerhtml-vs-nodevalue
JavaScript performance comparison
Preparation code
<div id=el>The initial content</div>
<script>
Benchmark.prototype.setup = function() {
var el = document.getElementById('el');
};
</script>
Preparation code output
The initial content
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
innerhtml |
|
pending… |
textnode |
|
pending… |
this node |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by duri
- Revision 2: published by Gemorroj
0 comments