[MutationObservers] Microbenchmarks for appendChild, removeChild, and innerHTML
authoradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Nov 2011 18:39:39 +0000 (18:39 +0000)
committeradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Nov 2011 18:39:39 +0000 (18:39 +0000)
commitaaaac1496b2ec695cbf943c0bf3680260231b5d1
tree8bfc9855b2dba173d803fb2c38d41e8cbf0a14f8
parent976ece7be68c40a569dae3341eeaa91370fd0b05
[MutationObservers] Microbenchmarks for appendChild, removeChild, and innerHTML
https://bugs.webkit.org/show_bug.cgi?id=71939

Reviewed by Ojan Vafai.

These benchmarks time both the DOM mutations themselves and the time taken
to call the MutationCallback. This measurement is achieved by
executing the code entirely within the MutationCallback itself.

* Mutation/append-child-deep.html: Added. Covers appendChild in a 200-node-deep tree with subtree observation.
* Mutation/append-child.html: Added. Covers appendChild in a flat tree.
* Mutation/inner-html.html: Added. Covers innerHTML adding and removing many nodes at a time.
* Mutation/remove-child-deep.html: Added. Covers removeChild in a 200-node-deep tree with subtree observation.
* Mutation/remove-child.html: Added. Covers removeChild in a flat tree.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/ChangeLog
PerformanceTests/Mutation/append-child-deep.html [new file with mode: 0644]
PerformanceTests/Mutation/append-child.html [new file with mode: 0644]
PerformanceTests/Mutation/inner-html.html [new file with mode: 0644]
PerformanceTests/Mutation/remove-child-deep.html [new file with mode: 0644]
PerformanceTests/Mutation/remove-child.html [new file with mode: 0644]