Bug 90811

Summary: Add a performance test for hit testing in SVG
Product: WebKit Reporter: Philip Rogers <pdr>
Component: SVGAssignee: Philip Rogers <pdr>
Status: RESOLVED FIXED    
Severity: Normal CC: fmalita, krit, rniwa, schenney, webkit.review.bot, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Add a performance test for hit testing in SVG
rniwa: review+, rniwa: commit-queue-
Update per reviewer comments none

Description Philip Rogers 2012-07-09 12:18:07 PDT
There are many changes in the RenderSVGShape area that may affect performance so we should add a performance test of hit testing to ensure we don't regress.

Patch forthcoming.
Comment 1 Philip Rogers 2012-07-09 13:56:02 PDT
Created attachment 151310 [details]
Add a performance test for hit testing in SVG
Comment 2 Philip Rogers 2012-07-09 14:14:56 PDT
Note: I have 5 groups of 12 shapes instead of 1 group and 5 <use>s because I hit the following regression in writing this test: https://bugs.webkit.org/show_bug.cgi?id=90820
Comment 3 Ryosuke Niwa 2012-07-10 16:11:14 PDT
Comment on attachment 151310 [details]
Add a performance test for hit testing in SVG

View in context: https://bugs.webkit.org/attachment.cgi?id=151310&action=review

> PerformanceTests/SVG/SvgHitTesting.html:2
> +<!-- Benchmark of SVG Hit Testing -->

Do we really need this comment?

> PerformanceTests/SVG/SvgHitTesting.html:105
> +      // var checkResults = {'ellipse': 0, 'circle': 0, 'rect': 0, 'path': 0, 'svg': 0, 'use': 0};

NIt: we should remove this.

> PerformanceTests/SVG/SvgHitTesting.html:111
> +          // checkResults[el.nodeName]++;

Ditto.

> PerformanceTests/SVG/SvgHitTesting.html:113
> +        // console.log(checkResults);

Ditto.
Comment 4 Philip Rogers 2012-07-11 10:26:19 PDT
Created attachment 151729 [details]
Update per reviewer comments
Comment 5 WebKit Review Bot 2012-07-11 11:45:52 PDT
Comment on attachment 151729 [details]
Update per reviewer comments

Clearing flags on attachment: 151729

Committed r122351: <http://trac.webkit.org/changeset/122351>
Comment 6 WebKit Review Bot 2012-07-11 11:45:58 PDT
All reviewed patches have been landed.  Closing bug.