WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
79208
Add performance tests for DOM attribute getters and setters
https://bugs.webkit.org/show_bug.cgi?id=79208
Summary
Add performance tests for DOM attribute getters and setters
Kentaro Hara
Reported
2012-02-22 01:23:04 PST
I am planning to add performance tests for DOM attribute getters and setters in order to catch a performance regression in JavaScriptCore/V8 bindings, like
bug 76492
. I would like to add the following two tests for each DOM attribute in HTMLElement.idl, Element.idl and Node.idl, which will most impact on the DOM performance in the real Web: PerfTestRunner.run(function() { var div = document.createElement("div"); for (i = 0; i < repeatTimesOfGetter; i++) div.id; } PerfTestRunner.run(function() { var div = document.createElement("div"); for (i = 0; i < repeatTimesOfSetter; i++) div.id = "foo"; } Actually, a setter traces a different call path depending on whether the assigned string is an empty, one character, or more than one characters. However, I guess that the test case worth adding would be just a string composed of more than one characters (e.g. "foo").
Attachments
Patch
(32.50 KB, patch)
2012-02-23 01:44 PST
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Patch
(31.89 KB, patch)
2012-02-23 01:48 PST
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
patch for landing
(31.79 KB, patch)
2012-02-23 16:18 PST
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2012-02-23 01:44:14 PST
Created
attachment 128432
[details]
Patch
Kentaro Hara
Comment 2
2012-02-23 01:45:15 PST
If the patch is OK, I will roll out
r108477
.
Kentaro Hara
Comment 3
2012-02-23 01:48:38 PST
Created
attachment 128433
[details]
Patch
Ryosuke Niwa
Comment 4
2012-02-23 16:05:11 PST
Comment on
attachment 128433
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=128433&action=review
> PerformanceTests/resources/runner.js:15 > + this.log("Debug: " + text);
Please rename it to Info: instead since this is an extra information you provide.
Kentaro Hara
Comment 5
2012-02-23 16:18:45 PST
Created
attachment 128590
[details]
patch for landing
WebKit Review Bot
Comment 6
2012-02-24 00:55:28 PST
The commit-queue encountered the following flaky tests while processing
attachment 128590
[details]
: perf/object-keys.html
bug 63769
(author:
ojan@chromium.org
) The commit-queue is continuing to process your patch.
WebKit Review Bot
Comment 7
2012-02-24 00:55:41 PST
Comment on
attachment 128590
[details]
patch for landing Clearing flags on attachment: 128590 Committed
r108748
: <
http://trac.webkit.org/changeset/108748
>
Ryosuke Niwa
Comment 8
2012-02-24 14:14:49 PST
Ugh... this one too :( dom_attributes should be dom-attribute. I'm renaming that now.
Ryosuke Niwa
Comment 9
2012-02-24 14:16:09 PST
Renamed in
http://trac.webkit.org/changeset/108846
.
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