incremental text updates

Benchmark created on


Setup

document.body.textContent = "Hello";

Teardown

document.body.textContent = "Hello";

Test runner

Ready to run.

Testing in
TestOps/sec
nodeValue
const node = document.body.firstChild;
node.nodeValue = "Hello World";
ready
after
const node = document.body.firstChild;
node.after(" World");
ready
after + normalize
const node = document.body.firstChild;
node.after(" World");
node.parentNode.normalize();
ready

Revisions

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