Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Issue 1126673002: Test out performance when adding whitespace to the DOM (Closed)

Created:
5 years, 7 months ago by rhogan
Modified:
5 years, 5 months ago
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Test out performance when adding whitespace to the DOM BUG=484344

Patch Set 1 #

Total comments: 7

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -0 lines) Patch
A PerformanceTests/Layout/AddWhitespace.html View 1 2 1 chunk +28 lines, -0 lines 3 comments Download
A PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html View 1 2 1 chunk +28 lines, -0 lines 2 comments Download

Messages

Total messages: 10 (2 generated)
rhogan
5 years, 7 months ago (2015-05-04 20:22:06 UTC) #2
leviw_travelin_and_unemployed
https://codereview.chromium.org/1126673002/diff/1/PerformanceTests/Layout/AddWhitespace.html File PerformanceTests/Layout/AddWhitespace.html (right): https://codereview.chromium.org/1126673002/diff/1/PerformanceTests/Layout/AddWhitespace.html#newcode11 PerformanceTests/Layout/AddWhitespace.html:11: <div style="display: inline-block;"></div> Nit: your whitespace test has too ...
5 years, 7 months ago (2015-05-04 20:55:24 UTC) #3
leviw_travelin_and_unemployed
5 years, 7 months ago (2015-05-04 20:55:39 UTC) #5
esprehn
This doesn't really benchmark whitespace, you're creating and destroying the DOM in each iteration of ...
5 years, 7 months ago (2015-05-04 21:22:40 UTC) #6
rhogan
On 2015/05/04 at 21:22:40, esprehn wrote: > This doesn't really benchmark whitespace, you're creating and ...
5 years, 7 months ago (2015-05-04 21:45:14 UTC) #7
esprehn
On 2015/05/04 at 21:45:14, robhogan wrote: > On 2015/05/04 at 21:22:40, esprehn wrote: > > ...
5 years, 7 months ago (2015-05-04 22:03:40 UTC) #8
rhogan
On 2015/05/04 at 22:03:40, esprehn wrote: > On 2015/05/04 at 21:45:14, robhogan wrote: > > ...
5 years, 7 months ago (2015-05-04 22:09:53 UTC) #9
esprehn
5 years, 7 months ago (2015-05-04 22:14:39 UTC) #10
https://codereview.chromium.org/1126673002/diff/40001/PerformanceTests/Layout...
File PerformanceTests/Layout/AddWhitespace.html (right):

https://codereview.chromium.org/1126673002/diff/40001/PerformanceTests/Layout...
PerformanceTests/Layout/AddWhitespace.html:3: <head>
Leave out html, head, body and title.

https://codereview.chromium.org/1126673002/diff/40001/PerformanceTests/Layout...
PerformanceTests/Layout/AddWhitespace.html:14: target.innerHTML = '<div
style="display: inline-block;"></div>';
Why inline block?

https://codereview.chromium.org/1126673002/diff/40001/PerformanceTests/Layout...
PerformanceTests/Layout/AddWhitespace.html:16: var testElement =
document.createTextNode("   ");
This is not very realistic, pages don't have huge sequences of whitespace nodes.
I guess this does test something related to whitespace though.

https://codereview.chromium.org/1126673002/diff/40001/PerformanceTests/Layout...
File PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html (right):

https://codereview.chromium.org/1126673002/diff/40001/PerformanceTests/Layout...
PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html:3: <head>
ditto.

https://codereview.chromium.org/1126673002/diff/40001/PerformanceTests/Layout...
PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html:14: target.innerHTML
= '<div style="display: inline-block;"></div>';
Why inline blocks? This just makes us create an anonymous table section.

Powered by Google App Engine
This is Rietveld 408576698