[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)
commitcd510a21c56d0b1695e139ba67ed30b0e64fb284
tree8bfc9855b2dba173d803fb2c38d41e8cbf0a14f8
parentb86ba4020c907769d56672d623c7b0dcef7b6eba
[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: http://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]