Currently Bindings/dom-attributes.html is just a collection of random DOM attributes and methods. We should remove it and instead add more reasonable micro benchmarks by classifying DOM binding call paths. In this bug we add a benchmark for document.getElementById(), which covers other DOM methods that return a Node Object. The reason why we want to add a benchmark for document.getElementById() in spite of the fact that Dromaeo/dom-query.html is already testing document.getElementById(), is that Dromaeo/dom-query.html outputs one result for several benchmarks (i.e. getElementById().nodeType, getElementsByTagName()[0].nodeType etc), and thus we cannot observe regression of getElementById() itself. (Catching regression of getElementById() would be critical.)
Created attachment 142633 [details] Patch
Comment on attachment 142633 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142633&action=review > PerformanceTests/ChangeLog:22 > + getElementById() would be critical.) I wouldn't say "critical" but sure.
Comment on attachment 142633 [details] Patch Clearing flags on attachment: 142633 Committed r117548: <http://trac.webkit.org/changeset/117548>
All reviewed patches have been landed. Closing bug.