Bug 90811 - Add a performance test for hit testing in SVG
Summary: Add a performance test for hit testing in SVG
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philip Rogers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 12:18 PDT by Philip Rogers
Modified: 2012-07-11 11:45 PDT (History)
6 users (show)

See Also:


Attachments
Add a performance test for hit testing in SVG (11.38 KB, patch)
2012-07-09 13:56 PDT, Philip Rogers
rniwa: review+
rniwa: commit-queue-
Details | Formatted Diff | Diff
Update per reviewer comments (11.16 KB, patch)
2012-07-11 10:26 PDT, Philip Rogers
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.