Bug 88203

Summary: [perf-test] Make query-selector-last.html more realistic
Product: WebKit Reporter: Kentaro Hara <haraken>
Component: Tools / TestsAssignee: Kentaro Hara <haraken>
Status: RESOLVED FIXED    
Severity: Normal CC: rniwa, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 87625    
Attachments:
Description Flags
Patch none

Kentaro Hara
Reported 2012-06-03 18:19:57 PDT
query-selector-last.html tests querySelector() for an element that appears after 1000 div elements, all of which have the same id and class. To test the performance of querySelector() under a lot of ids and classes, we should make the ids and classes of the 1000 elements different.
Attachments
Patch (3.48 KB, patch)
2012-06-03 18:24 PDT, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2012-06-03 18:24:52 PDT
Ryosuke Niwa
Comment 2 2012-06-03 18:36:40 PDT
Comment on attachment 145500 [details] Patch Conversely, should we have a test where we have lots of duplicate ids as well?
Kentaro Hara
Comment 3 2012-06-03 19:17:01 PDT
(In reply to comment #2) > (From update of attachment 145500 [details]) > Conversely, should we have a test where we have lots of duplicate ids as well? Good point. For example, getElementById() (which is internally called by querySelector()) traces different call paths for duplicated ids. I'll add the test in another patch.
WebKit Review Bot
Comment 4 2012-06-03 19:25:07 PDT
Comment on attachment 145500 [details] Patch Clearing flags on attachment: 145500 Committed r119366: <http://trac.webkit.org/changeset/119366>
WebKit Review Bot
Comment 5 2012-06-03 19:25:10 PDT
All reviewed patches have been landed. Closing bug.
Kentaro Hara
Comment 6 2012-06-03 21:02:32 PDT
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 145500 [details] [details]) > > Conversely, should we have a test where we have lots of duplicate ids as well? > > Good point. For example, getElementById() (which is internally called by querySelector()) traces different call paths for duplicated ids. I'll add the test in another patch. Hmm, it might not be worth adding. DOM/GetElement.html already tests duplicate id cases.
Note You need to log in before you can comment on or make changes to this bug.