[CSS Regions] Add performance tests
authorabucur@adobe.com <abucur@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Mar 2013 14:14:23 +0000 (14:14 +0000)
committerabucur@adobe.com <abucur@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Mar 2013 14:14:23 +0000 (14:14 +0000)
commit98d8a22819c044aacf0111feded7ac43d2eec51c
treeb0508aa12f64c24d21995968d14156ec1be00656
parent307588231bf22d1bdbbd2b065aa30b9c1d277231
[CSS Regions] Add performance tests
https://bugs.webkit.org/show_bug.cgi?id=113303

Reviewed by Antti Koivisto.

Add simple performance tests for regions, without nested named flows: a region chain and a flow article.
The regions.js script is used to generate the tests and can set the following parameters: the number of regions,
the number of paragraphs, the regions width, height, max-height and the propability of a forced break after a paragraph.

The tests are skipped for now. They should be enabled once the regions performance is stable enough to create a baseline.

* Layout/RegionsAuto.html: Added. A few regions with a short article. The regions have auto-height and some
paragraphs (80%) have forced breaks after. Stress test for the auto-height algorithm.
* Layout/RegionsAutoMaxHeight.html: Added. A lot of regions with auto-height and max-height. Tests the impact of
max-height on the auto-height algorithm.
* Layout/RegionsFixed.html: Added. A lot of regions with a long article. Some paragraphs (50%) have forced breaks after.
Stress test for the regions layout algorithm.
* Layout/RegionsFixedShort.html: Added. A lot of short regions with a long content. Tests the impact of unforced breaks
on the layout speed.
* Layout/resources/regions.css: Added.
(.articleInFlow):
(.articleNone):
(.region):
(.contentParagraph):
(.breakAfter):
(.regionContainer):
* Layout/resources/regions.js: Added.
(.):
* Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/ChangeLog
PerformanceTests/Layout/RegionsAuto.html [new file with mode: 0644]
PerformanceTests/Layout/RegionsAutoMaxHeight.html [new file with mode: 0644]
PerformanceTests/Layout/RegionsFixed.html [new file with mode: 0644]
PerformanceTests/Layout/RegionsFixedShort.html [new file with mode: 0644]
PerformanceTests/Layout/resources/regions.css [new file with mode: 0644]
PerformanceTests/Layout/resources/regions.js [new file with mode: 0644]
PerformanceTests/Skipped