innerHTML vs createTextNode (0 links) (v7)

Revision 7 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
innerHTML (0 links)
const root = document.createElement('div');
root.innerHTML = `text without links`;
ready
createTextNode (0 links)
const root = document.createElement('div');
root.appendChild(document.createTextNode(`text without links`));
ready

Revisions

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