WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
78114
Add a perf test for the CSS parser.
https://bugs.webkit.org/show_bug.cgi?id=78114
Summary
Add a perf test for the CSS parser.
Alexis Menard (darktears)
Reported
2012-02-08 07:30:36 PST
Add a perf test for the CSS parser.
Attachments
Patch
(631.63 KB, patch)
2012-02-08 07:39 PST
,
Alexis Menard (darktears)
no flags
Details
Formatted Diff
Diff
Patch
(86.06 KB, patch)
2012-02-13 03:51 PST
,
Alexis Menard (darktears)
no flags
Details
Formatted Diff
Diff
Patch
(63.23 KB, patch)
2012-02-13 13:05 PST
,
Alexis Menard (darktears)
no flags
Details
Formatted Diff
Diff
Patch
(63.01 KB, patch)
2012-02-15 13:03 PST
,
Alexis Menard (darktears)
no flags
Details
Formatted Diff
Diff
Patch
(63.02 KB, patch)
2012-02-16 03:31 PST
,
Alexis Menard (darktears)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Alexis Menard (darktears)
Comment 1
2012-02-08 07:39:59 PST
Created
attachment 126083
[details]
Patch
WebKit Review Bot
Comment 2
2012-02-08 07:43:08 PST
Attachment 126083
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'PerformanceTests/ChangeLog', u'Performance..." exit_code: 1 Last 3072 characters of output: r/resources/style.css:4189: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4190: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4191: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4192: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4193: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4194: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4195: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4196: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4197: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4198: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4199: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4200: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4201: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4202: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4203: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4206: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4207: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4208: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4212: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4213: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4214: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4218: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4219: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4220: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4397: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4433: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4485: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4557: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:4638: Line contains tab character. [whitespace/tab] [5] PerformanceTests/Parser/resources/style.css:5401: Line contains tab character. [whitespace/tab] [5] Total errors found: 34 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tony Chang
Comment 3
2012-02-08 10:07:18 PST
Comment on
attachment 126083
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126083&action=review
> PerformanceTests/Parser/resources/style.css:2 > +/* Facebook */ > +/*1328647392,176833978*/
We probably have to get permission from Facebook et al to use their styles.
> PerformanceTests/Parser/resources/style.css:2913 > +.view-error .oops-msg .icon{margin-left:13px}.view-error .oops-msg .shadow{background:url(
http://l.yimg.com/a/i/ww/met/shadow_icon_32_101508.png
) no-repeat;margin-left:8px;height:6px;width:34px;float:left;clear:left}
We probably also need to sanitize URLs in the css. We don't want to hit a live page when running the perf tests.
> PerformanceTests/Parser/resources/style.css:6147 > +/* lib/yui/2.8.1/container/assets/container-core-min.css */
YUI might be OK. You'd have to check the license.
Ryosuke Niwa
Comment 4
2012-02-08 12:09:00 PST
YUI appears to be BSD license:
http://yuilibrary.com/license/
Alexis Menard (darktears)
Comment 5
2012-02-08 12:10:54 PST
(In reply to
comment #4
)
> YUI appears to be BSD license:
http://yuilibrary.com/license/
Yeah I will update the patch on Friday with the Wikipedia CSS and the YUI CSS code, that should be enough.
Alexis Menard (darktears)
Comment 6
2012-02-13 03:51:39 PST
Created
attachment 126747
[details]
Patch
Tony Chang
Comment 7
2012-02-13 10:21:45 PST
Comment on
attachment 126747
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126747&action=review
> PerformanceTests/Parser/resources/style.css:3 > +/* Wikipedia */ > + > +#interwiki-completelist{font-weight:bold}
Where is the license/copyright notice for the wikipedia CSS file?
Alexis Menard (darktears)
Comment 8
2012-02-13 11:34:15 PST
(In reply to
comment #7
)
> (From update of
attachment 126747
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=126747&action=review
> > > PerformanceTests/Parser/resources/style.css:3 > > +/* Wikipedia */ > > + > > +#interwiki-completelist{font-weight:bold} > > Where is the license/copyright notice for the wikipedia CSS file?
http://www.mediawiki.org/wiki/Download
says it is GPL v2. Is that acceptable?
Ryosuke Niwa
Comment 9
2012-02-13 12:16:45 PST
Comment on
attachment 126747
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126747&action=review
>>> PerformanceTests/Parser/resources/style.css:3 >>> +#interwiki-completelist{font-weight:bold} >> >> Where is the license/copyright notice for the wikipedia CSS file? > >
http://www.mediawiki.org/wiki/Download
says it is GPL v2. Is that acceptable?
GPL v2 might be incompatible with LGPL (v2.1).
Alexis Menard (darktears)
Comment 10
2012-02-13 13:05:38 PST
Created
attachment 126811
[details]
Patch
Alexis Menard (darktears)
Comment 11
2012-02-13 13:06:58 PST
(In reply to
comment #10
)
> Created an attachment (id=126811) [details] > Patch
Got rid of Wikipedia. Mozilla.org is not an option too. Seems pretty hard to find some big CSS chunk out there that is compatible with BSD licensing.
Ryosuke Niwa
Comment 12
2012-02-13 14:08:07 PST
Apparently slashdot open-sources some of its code. e.g.:
http://slashcode.git.sourceforge.net/git/gitweb.cgi?p=slashcode/slashcode;a=tree;f=themes/slashcode/htdocs;h=dedbc999441cb971b9092fbcaeb588aaa45a0289;hb=live
Alexis Menard (darktears)
Comment 13
2012-02-14 02:34:42 PST
(In reply to
comment #12
)
> Apparently slashdot open-sources some of its code. e.g.: >
http://slashcode.git.sourceforge.net/git/gitweb.cgi?p=slashcode/slashcode;a=tree;f=themes/slashcode/htdocs;h=dedbc999441cb971b9092fbcaeb588aaa45a0289;hb=live
But
http://slashcode.git.sourceforge.net/git/gitweb.cgi?p=slashcode/slashcode;a=blob;f=themes/slashcode/htdocs/index.pl;h=fdc7527f03a936175e1e0c9a0c08b8de65aa6470;hb=live
seems to say it is GPL :(.
Ryosuke Niwa
Comment 14
2012-02-15 12:03:33 PST
Comment on
attachment 126811
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126811&action=review
> PerformanceTests/Parser/css-parser.html:8 > + var styles = document.getElementById("styles"); > + styles.setAttribute("href", "resources/style.css");
Should we be removing the old element before attaching new one?
Alexis Menard (darktears)
Comment 15
2012-02-15 13:03:53 PST
Created
attachment 127221
[details]
Patch
Alexis Menard (darktears)
Comment 16
2012-02-15 13:04:46 PST
(In reply to
comment #15
)
> Created an attachment (id=127221) [details] > Patch
Ten consecutive runs output this :
http://paste.kde.org/423104/
results seems pretty close which is good for stability.
Ryosuke Niwa
Comment 17
2012-02-15 13:37:28 PST
(In reply to
comment #16
)
> (In reply to
comment #15
) > > Created an attachment (id=127221) [details] [details] > > Patch > > Ten consecutive runs output this : > >
http://paste.kde.org/423104/
> > results seems pretty close which is good for stability.
Yup, that looks like a solid performance test.
Alexis Menard (darktears)
Comment 18
2012-02-16 03:09:53 PST
(In reply to
comment #17
)
> (In reply to
comment #16
) > > (In reply to
comment #15
) > > > Created an attachment (id=127221) [details] [details] [details] > > > Patch > > > > Ten consecutive runs output this : > > > >
http://paste.kde.org/423104/
> > > > results seems pretty close which is good for stability. > > Yup, that looks like a solid performance test.
Please bless it when you want :D
Andreas Kling
Comment 19
2012-02-16 03:21:44 PST
(In reply to
comment #18
)
> (In reply to
comment #17
) > > (In reply to
comment #16
) > > > (In reply to
comment #15
) > > > > Created an attachment (id=127221) [details] [details] [details] [details] > > > > Patch > > > > > > Ten consecutive runs output this : > > > > > >
http://paste.kde.org/423104/
> > > > > > results seems pretty close which is good for stability. > > > > Yup, that looks like a solid performance test. > > Please bless it when you want :D
I think we should give this test a more specific name, e.g css-parser-yui. We may want to add more parser test in the future :)
Alexis Menard (darktears)
Comment 20
2012-02-16 03:31:59 PST
Created
attachment 127349
[details]
Patch
WebKit Review Bot
Comment 21
2012-02-16 12:14:54 PST
Comment on
attachment 127349
[details]
Patch Clearing flags on attachment: 127349 Committed
r107964
: <
http://trac.webkit.org/changeset/107964
>
WebKit Review Bot
Comment 22
2012-02-16 12:15:02 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug