textContent vs createTextNode() vs innerHTML (v33)

Revision 33 of this benchmark created on


Preparation HTML

<div id="test">123</div>

Setup

var div = document.getElementById('test');

Test runner

Ready to run.

Testing in
TestOps/sec
textContent
div.textContent;
ready
innerHTML
div.innerHTML;
ready

Revisions

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