34f23435cf5db526eabef61ffeff6385e942e4a3
[WebKit-https.git] / PerformanceTests / ChangeLog
1 2015-11-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
2
3         Remove "defer" from the scripts' references in the graphics benchmark home page 
4         https://bugs.webkit.org/show_bug.cgi?id=150915
5
6         Reviewed by Simon Fraser.
7
8         It causes the benchmark to be very flakey.
9
10         * Animometer/runner/animometer.html:
11
12 2015-11-01  Said Abou-Hallawa  <sabouhallawa@apple,com>
13
14         Add an option to make the graphics benchmark runs a specific test with fixed complexity
15         https://bugs.webkit.org/show_bug.cgi?id=150529
16
17         Reviewed by Darin Adler.
18
19         Beside each test in the suites tree, we are going to show the complexity
20         arithmetic mean of the of the last run in an edit control. Based on a
21         new option these edit controls will all be visible or hidden. If they are
22         visible their values can be changed. The benchmark runner if it run in
23         the non-adaptive mode will set the complexity of the test to the passed
24         value and will not change it ever. The animator will animate the test and
25         frame rate will also be measured.
26
27         * Animometer/runner/animometer.html: Add a new option for the non-adaptive mode.
28         
29         * Animometer/runner/resources/animometer.css:
30         (section#home input[type="number"]): Define the width of all the edit control in the <home> section.
31         (section#home > suites input[type="number"]): The edit controls in the <suites> box will be right aligned and hidden by default.
32         (section#home > suites input[type="number"].selected): When the class "selected" is added, the edit controls will be visible.
33         (section#home > options > label > input[type="number"]): Deleted.
34         
35         * Animometer/runner/resources/animometer.js:
36         (window.benchmarkRunnerClient.didFinishLastIteration): Update the local storage with the results of each test.
37         (window.optionsManager._adaptiveTestElement): Returns the checkbox for setting the adaptive test option.
38         (window.suitesManager._editElement):  Returns the edit element associated with each test element in the suites tree.
39         (window.suitesManager._editsElements): Returns a list of all the elements in the <suites> box.
40         (window.suitesManager._localStorageNameForTest): Change this function to take strings.
41         (window.suitesManager._createTestElement): Adds an edit control beside each test.
42         (window.suitesManager.updateEditsElementsState): Adds/Removes the 'selected' class to/from all the tests edit elements.
43         (window.suitesManager.updateUIFromLocalStorage): Reads the edit control value from the local storage.
44         (window.suitesManager.updateLocalStorageFromUI): Saves the edit control value to the local storage.
45         (window.suitesManager.updateLocalStorageFromJSON): Saves the last run results to the local storage.
46         (window.benchmarkController.initialize): Shows/Hides the test edit controls based on the adaptive test option.
47         (window.benchmarkController.onChangeAdaptiveTestCheckbox): An onchange event handler for the adaptive test checkbox.
48         
49         * Animometer/tests/resources/main.js: 
50         (Benchmark.prototype.update): Fix the complexity of the test if the running mode is non-adaptive test and desired complexity is not zero.
51         (window.runBenchmark): Add the test complexity as a new benchmark option.
52
53 2015-11-01  Said Abou-Hallawa  <sabouhallawa@apple,com>
54
55         Make the size of the benchmark canvas adaptive to the screen size and screen resolution
56         https://bugs.webkit.org/show_bug.cgi?id=150530
57
58         Reviewed by Darin Adler.
59         
60         We want to set the size of the benchmark stage dynamically such that it
61         depends on the screen resolution and the device scale factor. This patch 
62         does more than that because the home page css was not done properly. To
63         use the flex box layout, the animometer.css has to be rewritten almost from
64         scratch. The suites tree has to be rewritten also because it was not collapsing
65         and with the flex box layout it was going outside of the window area. The 
66         options handling and the local storage handling had to be rewritten to
67         allow more flexibility with this patch and the future patches. The code
68         in animometer.js was reorganized into objects to allow distributing the code
69         nicely among separate entities.
70
71         * Animometer/resources/extensions.js:
72         (Point.elementClientSize): Returns the client size of an HTMLElement as a Point object.
73         (Insets.prototype.get width): Follow the function opening brace style guidelines.
74         (Insets.prototype.get height):
75         (Insets.prototype.get size): Returns the size of an Insets as a Point object.
76         
77         (window.DocumentExtension): Provides document helper functions. It should be assailable from the runner and the tests.
78         (window.DocumentExtension.createElement): Creates an HTMLElement given its name, attributes and parentElement. 
79         (window.DocumentExtension.createSvgElement): Creates an SVGElement given its name, attributes and parentElement (moved from utilities.js). 
80         (window.DocumentExtension.insertCssRuleAfter): Inserts a CSS rule after an exiting rule given its text.
81         
82         (ResultsTable.prototype._showHeader): Use DocumentExtension functions.
83         (ResultsTable.prototype._showGraph): Use DocumentExtension functions and create a real button for "Graph..." option.
84         (ResultsTable.prototype._showJSON): Use DocumentExtension functions and create a real button for "JSON..." option.
85         (Options): Deleted.
86         
87         * Animometer/runner/animometer.html: Restructure the page to use the flex box layout.
88         
89         * Animometer/runner/resources/animometer.css:
90         (html,body):
91         (button):
92         
93         (button.large-button):The large button appears in the animometer.html.
94         (button.large-button:active):
95         (button.large-button:disabled):
96         
97         (button.small-button): The small button appears in the results table.
98         (button.small-button:active):
99         
100         (.tree): The tree class is used to list the suites and their tests.
101         (.tree .expand-button): This button expands a tree element.
102         (.tree .expand-button ~ ul): Hide the children (<ul>...</ul>) of a parent node by default.
103         (.tree .expand-button:checked ~ ul): Show the children of a parent node only when checked.
104         (.tree ul): Hide the list bullets.
105         (.tree li): Indent every node in the tree relative to its parent.
106         (.tree ul li): Indent all the non top level nodes only (the tests nodes in our case).
107         (.tree > li:last-child): Do not indent the bottom of the last child node.
108         (.tree-label): Style for all the labels in the tree.
109         (label.tree-label): Style for the labels in the top level only (the suites nodes in our case).
110         (label.tree-label:before): Style the unchecked case of the expand-button.
111         (:checked ~ label.tree-label:before): Style the checked case of the expand-button.
112         
113         (table.results-table): The results table appears while running the test and at the end.
114         (.results-table td):
115         (.results-table th):
116         
117         (div.results-json): The JSON div appears per test or for the whole run.
118         
119         (main): This is the flex box container.
120         
121         (section): A section is displayed exclusively inside the <main>. It is hidden by default.
122         (section.selected): When it is selected, its layout is flex layout.
123         (section > footer): The header or the footer of a section should not take more than 15% of the container.
124         
125         (section#home): The home section has <suites> and <options> parts to be laid out in the middle.
126         (section#home > options): 
127         (section#home > suites): The <suites> should not take more than 40% of the width.
128         (section#home > options > label): The benchmark title.
129         (section#home > header > h2): The benchmark title.
130         (section#home > options > label > input[type="number"]): Sets the width of the option edit control.
131         
132         (section#running): The running section contain the runner <iframe> which takes the whole area of the <main>.
133         (section#running > #running-test): This is the <iframe> container.
134         (section#running > #running-test > iframe): The <iframe> is created by the runner for each test.
135         (section#running > #progress): This is the progress bar.
136         (section#running > #progress > #progress-completed): This is another element which grows while the runner is progressing.
137         (section#running > #record): This the container of the record results table which is shown while running a test.
138         
139         (section#results):
140         (section#json):
141         (section#test-json):
142         (section#test-graph): All these sections have the same layout. A <data> element is laid out between <header> and <footer>.
143
144         (section#results > data):
145         (section#json > data):
146         (section#test-json > data):
147         (section#test-graph > data): The <data> element should take 70% of the <section>.
148         
149         (section#test-graph > data > svg):
150         (.axis line):
151         (.left-samples): These styles are for the d3 graph.
152         
153         (section#test-json > data): This is the style of the JSON <data> element.
154         
155         (iframe): Deleted.
156         (label, p): Deleted.
157         (section > p): Deleted.
158         (section#home > p): Deleted.
159         (section#home > p:first-child): Deleted.
160         (#testContainer): Deleted.
161         (section#running #progress-completed): Deleted.
162         (section#results > table): Deleted.
163         (section#results > table td, th): Deleted.
164         (section#results > table tr.alt, td): Deleted.
165         (section#results > table th): Deleted.
166         (section#json > textarea): Deleted.
167         (.options): Deleted.
168         (.options p): Deleted.
169         (#suites ul): Deleted.
170         (#suites ul ul): Deleted.
171         (#suites ul ul input, #suites ul ul label): Deleted.
172         (#suites.showTests ul ul): Deleted.
173         (.column): Deleted.
174         (input[type="number"]): Deleted.
175         (.buttons): Deleted.
176         (.small-button): Deleted.
177         (#graphContainer): Deleted.
178         (.right-samples): Deleted.
179         (.sample-time): Deleted.
180         (.left-mean): Deleted.
181         (.right-mean): Deleted.
182         
183         * Animometer/runner/resources/animometer.js:
184         (window.benchmarkRunnerClient.initialize): Initialize the client object with the options and the suites.
185         (window.benchmarkRunnerClient.willStartFirstIteration): Use new css selectors for results and the record table.
186         (window.benchmarkRunnerClient.didFinishLastIteration): Move the code which sets the JSON text to sectionsManager.showJSON().
187         
188         (window.sectionsManager): Responsible of managing the <section>s elements inside animometer.html.
189         (window.sectionsManager._sectionHeaderH1Element): Return the <h1> inside the <header> of a given section.
190         (window.sectionsManager._sectionDataDivElement): Return the <div> inside the <data> of a given section.
191         (window.sectionsManager.showScore): Show the score of the last benchmark run.
192         (window.sectionsManager.showTestName): Show the test name for detailed results <section>.
193         (window.sectionsManager.showJSON): Shows the JSON text of the last benchmark or for a specific test.
194         (window.sectionsManager.showSection): Shows a specific <section> in the <main> container.
195         (window.sectionsManager.setupSectionStyle): Sets css attributes for all the <section>s.
196         (window.sectionsManager.setupRunningSectionStyle): Sets the css attributes for the running <section> only.
197         
198         (window.optionsManager): Responsible of managing the user options and streaming them to/form the localStorage.
199         (window.optionsManager._optionsElements): Returns the children <input> elements of the <options>.
200         (window.optionsManager.updateUIFromLocalStorage): Restore the values of the <options> UI elements from the local storage.
201         (window.optionsManager.updateLocalStorageFromUI): Saves the values of the <options> UI elements to the local storage.
202         
203         (window.suitesManager): Responsible of managing the user suites and streaming them to/form the localStorage.
204         (window.suitesManager._treeElement): Returns the suites tree container element.
205         (window.suitesManager._suitesElements): Returns a list of the suites elements.
206         (window.suitesManager._checkboxElement): Returns the checkbox element of a given suite.
207         (window.suitesManager._localStorageNameForTest): Generates a string for the tuple <suite, test> to be saved in the localStorage.
208         (window.suitesManager._updateSuiteCheckboxState): Updates the state of a suite checkbox from the state of its tests' checkboxes.
209         (window.suitesManager._updateStartButtonState): Updates the state of the start button from the state of the suites' checkboxes.
210         (window.suitesManager._onChangeSuiteCheckbox): Called when a suite checkbox is clicked.
211         (window.suitesManager._onChangeTestCheckbox): Called when a test checkbox is clicked.
212         (window.suitesManager._createSuiteElement): Creates suite node in the suites tree.
213         (window.suitesManager._createTestElement): Creates test node in the suites tree.
214         (window.suitesManager.createElements): Creates the suites tree dynamically from the array Suites.
215         (window.suitesManager.updateUIFromLocalStorage): Restore the values of the <suites> UI elements from the local storage.
216         (window.suitesManager.updateLocalStorageFromUI): aves the values of the <suites> UI elements to the local storage.
217         
218         (window.benchmarkController): This is the UI controller of the animometer.html page.
219         (window.benchmarkController.initialize): Called when the animometer.html page is loaded.
220         (window.benchmarkController._runBenchmark): Starts a benchmark run.
221         (window.benchmarkController.startTest): Called when the "Start Test" button is clicked.
222         (window.benchmarkController.showResults): Called at the end of the test to show the final results.
223         (window.benchmarkController.showJson): Called from the results page to show the JSON of the last benchmark run.
224         (window.benchmarkController.showTestGraph): Called from the results the table to show a graph for the samples of a specific test.
225         (window.benchmarkController.showTestJSON): Called from the results the table to show a JSON for the samples of a specific test.
226         
227         (showSection): Deleted.
228         (startTest): Deleted.
229         (showResults): Deleted.
230         (showJson): Deleted.
231         (showTestGraph): Deleted.
232         (showTestJSON): Deleted.
233         (initialize.toggleTestsCheckbox.onchange): Deleted.
234         (initialize): Deleted.
235         (updateSuiteSelection): Deleted.
236         (updateTestSelection): Deleted.
237         (updateSuiteCheckbox): Deleted.
238         (localStorageNameForTest): Deleted.
239         (populateSettings.): Deleted.
240         (populateSettings): Deleted.
241         
242         * Animometer/runner/resources/benchmark-runner.js:
243         (BenchmarkRunner): Pass the frameContainer element to the BenchmarkRunner.
244         (BenchmarkRunner.prototype._appendFrame): Remove unused parameter unwanted styling code.
245         (BenchmarkRunner.prototype.runMultipleIterations):  Use the this._client.iterationCount instead of passing it as a parameter also.
246
247         * Animometer/runner/resources/graph.js:
248         (graph): Calculate the size of the chart from the container element.
249         
250         * Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js:
251         (BouncingSvgImage):
252         * Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js:
253         (BouncingSvgParticlesStage.prototype._createDefs):
254         (BouncingSvgParticlesStage.prototype._createClipStar):        
255         * Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js:
256         (BouncingSvgShape.prototype._createShape):
257         (BouncingSvgShapesStage.prototype.createGradient):
258         Call DocumentExtension.createSvgElement() instead of calling Utilities.createSvgElement().
259         
260         * Animometer/tests/resources/main.js:
261         (Animator.prototype.animate):
262         (Benchmark):
263         (Benchmark.prototype.update):
264         * Animometer/tests/resources/stage.js:
265         (StageBenchmark.prototype.showResults):
266         Rename the options to match the <input> ids in animometer.html.
267         
268         * Animometer/tests/resources/utilities.js:
269         (window.Utilities.createSvgElement): Deleted.
270         
271         * Animometer/tests/text/layering-text.html:
272         * Animometer/tests/text/resources/layering-text.js:
273         (LayeringTextStage):
274         (LayeringTextStage.prototype._setFontSize): Sets the size of the text dynamically such that they all fit in one stage.
275
276 2015-10-29  Simon Fraser  <simon.fraser@apple.com>
277
278         Animometer computes frame rate incorrectly
279         https://bugs.webkit.org/show_bug.cgi?id=150698
280
281         Reviewed by Tim Horton.
282         
283         The existing code incremented this._frameCount after checking against this._dropFrameCount.
284         This has the effect of setting this._measureTimeOffset one frame too late, so
285         we were measuring only two frames, not three, and thus computing an incorrect fps.
286
287         * Animometer/tests/resources/main.js:
288         (Animator.prototype.animate):
289
290 2015-10-27  Jon Lee  <jonlee@apple.com>
291
292         Add an option to make the graphics benchmark runs a specific test
293         https://bugs.webkit.org/show_bug.cgi?id=150528
294         rdar://problem/23246614
295
296         Reviewed by Zalan Bujtas.
297
298         Add a checkbox that lets the user list all of the available tests, and select
299         the ones to run repeatedly. The test checkboxes will update the state of the suite
300         checkbox. The selected tests are stored in localStorage to make it easy to do
301         repeated runs.
302
303         * Animometer/runner/animometer.html: Add a checkbox to show individual tests.
304         Update other markup.
305         * Animometer/runner/resources/animometer.css: Make the settings area a little wider
306         to accommodate the longer names of the tests
307         * Animometer/runner/resources/animometer.js:
308         (startBenchmark): Change the way that the suites are fed into the benchmark
309         runner. Go through each of the suites and their tests, and create a new Suite
310         with just the enabled tests. While enumerating store the enabled tests into
311         localStorage.
312         (initialize): Initialization routine (taking over populateSettings). When the
313         checkbox for showing tests is toggled, add or remove a class on #suites to show
314         the individual tests.
315         (updateSuiteSelection): Called whenever the user toggles the checkbox for a suite.
316         Either select all or none of the tests.
317         (updateTestSelection): Called whenever the user toggles the checkbox for a test.
318         (updateSuiteCheckbox): Update the state of the test's suite's checkbox to
319         indeterminate if there is at least one enabled test, unchecked if none are selected,
320         and checked if all are selected.
321         (localStorageNameForTest): Helper function to get the name of the test to use as
322         a key to localStorage.
323         (populateSettings): Add the tests for each suite into an inner list.
324
325 2015-10-26  Said Abou-Hallawa  <sabouhallawa@apple.com>
326
327         Add an option to output the results of the graphics benchmark in JSON format
328         https://bugs.webkit.org/show_bug.cgi?id=150484
329         <rdar://problem/23243721>
330
331         Reviewed by Darin Adler.
332
333         * Animometer/resources/extensions.js:
334         (ResultsDashboard): A new class to hold the iterations results.
335         (ResultsDashboard.prototype.push): Appends an iteration results;
336         (ResultsDashboard.prototype.toJSON): Converts the iterations results to JSON format.
337
338         (RecordTable.prototype.clear): Clears the results table.
339         (RecordTable.prototype._showTitles): Shows the header titles and appends the sub-titles to a queue.
340         (RecordTable.prototype._showHeader): Shows the table header titles.
341         (RecordTable.prototype._showEmpty): Shows an empty table cell.
342         (RecordTable.prototype._showValue): Shows a number value in the results table.
343         (RecordTable.prototype._showSamples): Shows a button for the sampled data graph.
344         (RecordTable.prototype._showTest): Shows the results of a single test.
345         (RecordTable.prototype._showSuite): Shows the results of a single suite.
346         (RecordTable.prototype.showRecord): Shows a single iteration for a single test.
347         (RecordTable.prototype.showIterations): Shows the results of all the suites of the iterations. 
348         
349         (ResultsTable): RecordTable was renamed to ResultsTable.
350         (ResultsTable.prototype.clear): Clears the table element.
351         (ResultsTable.prototype._showHeaderRow): Shows a row in the results table header.
352         (ResultsTable.prototype._showHeader): Shows the results table header.
353         (ResultsTable.prototype._showEmpty): Shows an empty table cell.
354         (ResultsTable.prototype._showText): Shows a string in a new table cell.
355         (ResultsTable.prototype._showFixedNumber): Shows a number in a new table cell.
356         (ResultsTable.prototype._showGraph): Shows a button for the sampled data graph.
357         (ResultsTable.prototype._showJSON): Shows a button for the sampled data JSON.
358         (ResultsTable.prototype._showTest): Shows the results of a single test.
359         (ResultsTable.prototype._showSuite): Shows the results of a single suite.
360         (ResultsTable.prototype._showIteration): Shows the results of a single iteration.
361         (ResultsTable.prototype.showRecord): Shows a single iteration for a single test.
362         (ResultsTable.prototype.showIterations): Shows all the results.
363         (RecordTable): Deleted.
364         (RecordTable.prototype.clear): Deleted.
365         (RecordTable.prototype._showTitles): Deleted.
366         (RecordTable.prototype._showHeader): Deleted.
367         (RecordTable.prototype._showEmpty): Deleted.
368         (RecordTable.prototype._showValue): Deleted.
369         (RecordTable.prototype._showSamples): Deleted.
370         (RecordTable.prototype._showTest): Deleted.
371         (RecordTable.prototype._showSuite): Deleted.
372         (RecordTable.prototype.showRecord): Deleted.
373         (RecordTable.prototype.showIterations): Deleted.
374         
375         * Animometer/resources/sampler.js:
376         (Sampler.prototype.startSampling): Use forEach.
377         (Sampler.prototype.sample): Use forEach.
378         (Sampler.prototype.toJSON): Converts the sampler data to JSON format.
379         
380         * Animometer/resources/strings.js: Added.
381         This new file will be used to associate the strings used by the benchmark
382         with IDs. A string can be changed in one place without having to change
383         all the instances of this string in multiple files. There two groups of
384         strings in this file. The first one is used by the UI elements and the second
385         group is used when constructing the results JSON.
386         
387         * Animometer/runner/animometer.html:
388         * Animometer/runner/resources/animometer.css:
389         
390         * Animometer/runner/resources/animometer.js:
391         (window.benchmarkRunnerClient.willAddTestFrame):
392         (window.benchmarkRunnerClient.willStartFirstIteration):
393         (window.benchmarkRunnerClient.didRunSuites):
394         (window.benchmarkRunnerClient.didFinishLastIteration):
395         Make benchmarkRunnerClient uses ResultsDashboard instead of _iterationsSamplers
396         Get the JSON from ResultsDashboard.toJSON() and pass it to ResultsTable.showIterations().
397         Also set the textContent of the "#json" textarea with the results JSON.
398         
399         (showResults): Delete unneeded code.
400         (showJson): Shows the "json" section.
401         (showTestGraph): Rename showGraph() to be showTestGraph().
402         (showTestJSON): Shows the JSON of a single testResults.
403         (showGraph): Deleted.
404         
405         * Animometer/runner/resources/tests.js:
406         Use the string table instead of putting literal strings.
407
408         * Animometer/tests/resources/stage.js:
409         (StageBenchmark.prototype.showResults):
410         Fix the parameters which are passed to RecordTable.showRecord().
411         
412         * Animometer/tests/bouncing-particles/bouncing-canvas-images.html:
413         * Animometer/tests/bouncing-particles/bouncing-canvas-shapes.html:
414         * Animometer/tests/bouncing-particles/bouncing-css-images.html:
415         * Animometer/tests/bouncing-particles/bouncing-css-shapes.html:
416         * Animometer/tests/bouncing-particles/bouncing-svg-images.html:
417         * Animometer/tests/bouncing-particles/bouncing-svg-shapes.html:
418         * Animometer/tests/examples/canvas-electrons.html:
419         * Animometer/tests/examples/canvas-stars.html:
420         * Animometer/tests/simple/simple-canvas-paths.html:
421         * Animometer/tests/template/template-canvas.html:
422         * Animometer/tests/template/template-css.html:
423         * Animometer/tests/template/template-svg.html:
424         * Animometer/tests/text/layering-text.html:
425         Include the new strings.js file in all the test files.
426
427 2015-10-12  Jon Lee  <jonlee@apple.com>
428
429         Add canvas line dash test
430         https://bugs.webkit.org/show_bug.cgi?id=150078
431         <rdar://problem/23082347>
432
433         Reviewed by Dean Jackson.
434
435         * Animometer/runner/resources/tests.js: Add line dash test.
436         * Animometer/tests/simple/resources/simple-canvas-paths.js:
437         (CanvasLineDashStage): Create a new stage with a default dash pattern and stroke style.
438         Maintain a step which will animate the dash.
439         (CanvasLineDashStage.prototype.animate): Render the line path with the dash. Increment
440         the dash offset to animate.
441         (CanvasPathBenchmark.prototype.createStage): Add the test.
442
443 2015-10-12  Jon Lee  <jonlee@apple.com>
444
445         Add canvas line path tests
446         https://bugs.webkit.org/show_bug.cgi?id=150076
447         <rdar://problem/23082285>
448
449         Reviewed by Dean Jackson.
450
451         * Animometer/runner/resources/tests.js: Add new line path tests, with different
452         line joins.
453         * Animometer/tests/simple/resources/simple-canvas-paths.js:
454         (CanvasLinePathStage): The stage is the same as the SimpleCanvasPathStrokeStage
455         but sets the lineJoin on the context.
456         (CanvasPathBenchmark.prototype.createStage): Add the tests.
457
458 2015-10-12  Jon Lee  <jonlee@apple.com>
459
460         Add missing paint objects for arc and arcTo fills
461         https://bugs.webkit.org/show_bug.cgi?id=150075
462         <rdar://problem/23082233>
463
464         Reviewed by Dean Jackson.
465
466         * Animometer/tests/simple/resources/simple-canvas-paths.js: Add missing paint objects
467         for arcTo and arc segment fills.
468         (CanvasArcToSegmentFill):
469         (CanvasArcToSegmentFill.prototype.draw):
470         (CanvasArcSegmentFill):
471         (CanvasArcSegmentFill.prototype.draw):
472
473 2015-10-12  Jon Lee  <jonlee@apple.com>
474
475         Add canvas line segment tests
476         https://bugs.webkit.org/show_bug.cgi?id=150073
477         <rdar://problem/23082138>
478
479         Reviewed by Dean Jackson.
480
481         * Animometer/runner/resources/tests.js: Add new line segment tests, with different
482         line caps.
483         * Animometer/tests/simple/resources/simple-canvas-paths.js:
484         (CanvasLineSegment): Add new line segment paint object.
485         (CanvasLineSegmentStage): Create a new stage that sets the lineCap.
486
487 2015-10-12  Jon Lee  <jonlee@apple.com>
488
489         Add canvas path fill tests
490         https://bugs.webkit.org/show_bug.cgi?id=150071
491         <rdar://problem/23082001>
492
493         Reviewed by Dean Jackson.
494
495         * Animometer/runner/resources/tests.js: Add new pathTypes for path fills.
496         * Animometer/tests/simple/resources/simple-canvas-paths.js:
497         (CanvasLinePoint): Add basic point for a line, and call lineTo.
498         (SimpleCanvasPathFillStage): Add a new stage similar to SimpleCanvasPathStrokeStage.
499         (CanvasPathBenchmark.prototype.createStage): Add the tests.
500
501 2015-10-12  Jon Lee  <jonlee@apple.com>
502
503         Add canvas path tests
504         https://bugs.webkit.org/show_bug.cgi?id=150067
505         rdar://problem/23081463
506
507         Reviewed by Dean Jackson.
508
509         * Animometer/runner/resources/tests.js: Add a quadratic and bezier path test.
510
511         * Animometer/tests/simple/resources/simple-canvas.js:
512         (SimpleCanvasStage.prototype.tune): This kind of test joins all of the segments
513         into one long path, and tries to render that one path. Random points make it
514         difficult to tell what is going on, so add a parameter to the constructor to
515         confine the area where the random coordinates can land. The more complicated the
516         case is, the larger an area the path will cover. Add an artificial minimum so
517         that the first 200 points aren't confined to a space that is too small.
518
519         * Animometer/tests/simple/resources/simple-canvas-paths.js:
520         (SimpleCanvasPathStrokeStage): Add a new kind of stage that inherits from
521         SimpleCanvasStage. Each time the frame animates a random line width and stroke
522         color are chosen. The path setup is done outside of each paint object.
523         (CanvasQuadraticPoint): This point just calls quadraticCurveTo.
524         (CanvasPathBenchmark.prototype.createStage): Add the tests.
525
526 2015-10-12  Jon Lee  <jonlee@apple.com>
527
528         Add basic canvas tests
529         https://bugs.webkit.org/show_bug.cgi?id=150066
530         rdar://problem/23081143
531
532         Reviewed by Dean Jackson.
533
534         This adds a new test suite that will cover all of the path-based canvas calls.
535         The patch will be divided up to cover tests with similar techniques.
536
537         The simplest version uses a SimpleCanvasStage.
538
539         * Animometer/runner/resources/tests.js: Add tests for quadratic, bezier, arcTo,
540         arc, and rect segments. Also include arcTo, arc, and rect fills.
541         * Animometer/tests/resources/stage.js:
542         (Stage.prototype.randomBool): Added for counterclockwise property for arc segments.
543         (Stage.prototype.randomInt): Fix how values are rounded, used by randomBool. It should
544         round instead of flooring everything.
545         * Animometer/tests/simple/resources/simple-canvas.js: Added. Defines common classes
546         used by all simple canvas tests. The page reads best bottom to top.
547         (SimpleCanvasStage): Basic stage. Pass a canvasObject which will be used to create new
548         objects as needed in tune().
549         (SimpleCanvasStage.prototype.tune): Modeled on other tests. Adds and removed objects
550         as specified by the provided |count|.
551         (SimpleCanvasStage.prototype.animate): Iterate over all the objects and ask them to draw.
552         There is no "animating" of the objects; they will just paint statically on the canvas.
553         (SimpleCanvasAnimator): Basic animator clears the canvas prior to painting.
554         (SimpleCanvasBenchmark): Hard-code the feedback loop parameters instead of including
555         them in the query parameters to the test URLs.
556         (SimpleCanvasBenchmark.prototype.createAnimator):
557         * Animometer/tests/simple/simple-canvas-paths.html: Added.
558
559         * Animometer/tests/simple/resources/simple-canvas-paths.js: Added. There is no "animating"
560         of these objects--they just paint statically on the canvas.
561         (CanvasQuadraticSegment): Paint a quadratic segment stroke.
562         (CanvasBezierSegment): Paint a bezier segment stroke.
563         (CanvasArcToSegment): Paint an arcTo stroke.
564         (CanvasArcSegment): Paint an arc stroke.
565         (CanvasRect): Paint a rect.
566         (CanvasRectFill): Paint a filled rect.
567
568         (CanvasPathBenchmark):
569         (CanvasPathBenchmark.prototype.createStage): Look for the pathType and create the
570         stage using the right paint object.
571         (window.benchmarkClient.create):
572
573 2015-10-12  Jon Lee  <jonlee@apple.com>
574
575         Refactor tune() to pass in an integer-based count
576         https://bugs.webkit.org/show_bug.cgi?id=150060
577         <rdar://problem/23079425>
578
579         Reviewed by Dean Jackson.
580
581         All of the tune functions do an initial step of flooring the
582         # of painting objects to add or remove. Factor that out since
583         the complexity of all of these tests is always expressed in terms
584         of countable items.
585
586         * Animometer/tests/resources/main.js:
587         (Benchmark.prototype.update): Update the tuneValue.
588
589         * Animometer/tests/bouncing-particles/resources/bouncing-particles.js:
590         (BouncingParticlesStage.prototype.tune): Remove the count adjustment.
591         * Animometer/tests/examples/resources/canvas-electrons.js:
592         (CanvasElectronsStage.prototype.tune): Ditto.
593         * Animometer/tests/examples/resources/canvas-stars.js:
594         (CanvasStarsStage.prototype.tune): Ditto.
595         * Animometer/tests/text/resources/layering-text.js:
596         (LayeringTextStage.prototype.tune): Ditto.
597
598 2015-10-12  Jon Lee  <jonlee@apple.com>
599
600         Store test-interval in localStorage
601         https://bugs.webkit.org/show_bug.cgi?id=150055
602         <rdar://problem/23078879>
603
604         Reviewed by Dean Jackson.
605
606         * Animometer/runner/resources/animometer.js:
607         (populateSettings): Keep track of the specified test interval in localStorage
608         to make it easy to repeat a test suite.
609
610 2015-10-12  Jon Lee  <jonlee@apple.com>
611
612         Remove "../tests/" from the URLs of all tests
613         https://bugs.webkit.org/show_bug.cgi?id=150054
614         <rdar://problem/23078784>
615
616         Reviewed by Dean Jackson.
617
618         Presumably all tests will be running from the tests/ directory,
619         so we don't have to specify it in all of the test URLs.
620
621         * Animometer/runner/resources/benchmark-runner.js:
622         (BenchmarkRunnerState.prototype.prepareCurrentTest): Prepend
623         "../tests/" to all tests.
624         * Animometer/runner/resources/tests.js: Remove "../tests/" from
625         all URLs.
626
627 2015-10-12  Jon Lee  <jonlee@apple.com>
628
629         Refactor test suites to a separate class.
630         https://bugs.webkit.org/show_bug.cgi?id=150053
631         <rdar://problem/23078645>
632
633         Reviewed by Dean Jackson.
634
635         Create a Suite class to refactor out prepare() and run().
636         Generate the checkboxes representing the suites using Suites
637         instead of maintaining a separate list. Also, save the
638         selections out to localStorage.
639
640         * Animometer/runner/animometer.html: Remove the explicitly listed
641         suites. These will be generated from Suites instead.
642         * Animometer/runner/resources/animometer.js:
643         (populateSettings): Iterate through Suites, and create the
644         label and checkbox. Attach the Suite object to the checkbox so
645         when the benchmark is started, we get direct access. Initialize
646         the checkmark based on its value in localStorage. Set this to
647         run when DOMContentLoaded is dispatched.
648         (startBenchmark): Grab all of the checkboxes, inspect their
649         values, add it to enabledSuites if selected. Remember whether
650         the suite was enabled in localStorage, so that it's easy to do
651         repeated runs.
652         * Animometer/runner/resources/tests.js:
653         (Suite): Create a new Suite class. Refactor out prepare() and
654         run(), since all of them have the same implementation. Populate
655         Suites with Suite instances instead of generic objects.
656
657 2015-10-12  Jon Lee  <jonlee@apple.com>
658
659         Update graph styles for legibility.
660         https://bugs.webkit.org/show_bug.cgi?id=150052
661         <rdar://problem/23078503>
662
663         Reviewed by Dean Jackson.
664
665         * Animometer/runner/resources/animometer.css: Update colors and
666         stroke thicknesses to make the graphs easier to read.
667         (.smaple-time): Correct to .sample-time
668         * Animometer/runner/resources/graph.js:
669         (graph): Ditto.
670
671 2015-10-12  Jon Lee  <jonlee@apple.com>
672
673         Update graph styles for legibility.
674         https://bugs.webkit.org/show_bug.cgi?id=150052
675         <rdar://problem/23078503>
676
677         Reviewed by Dean Jackson.
678
679         * Animometer/runner/resources/animometer.css: Update colors and
680         stroke thicknesses to make the graphs easier to read.
681         (.smaple-time): Correct to .sample-time
682         * Animometer/runner/resources/graph.js:
683         (graph): Ditto.
684
685 2015-10-12  Filip Pizlo  <fpizlo@apple.com>
686
687         Unreviewed, revert an unintended commit.
688
689         * JetStream/Octane2/crypto.js:
690         (montRevert):
691         (montReduce):
692
693 2015-10-05  Said Abou-Hallawa  <sabouhallawa@apple.com>
694
695         Add a graphics benchmark
696         https://bugs.webkit.org/show_bug.cgi?id=149053
697         <rdar://problem/18984169>
698
699         Reviewed by Dean Jackson.
700
701         Instead of measuring the FPS of the animation, this benchmark measures the
702         test complexity when rendering at a set-point FPS which should be lower
703         than 60 FPS. This benchmark tries to stay at the set-point FPS by using
704         a closed loop control system PID function. The gain of the system is passed
705         as a parameter when running the test. Measuring the FPS faithfully results
706         very fluctuating values. A Kalman filter is used to give a better estimate
707         for the current FPS.
708
709         The animation of the tests is done manually. requestAnimationFrame() is
710         called with a callback. Inside this callback, the test is animating by
711         changing the positions of the elements inside the page. The test complexity
712         may change also if the current FPS is not equal to the desired FPS.
713
714         In this patch, the benchmark and the tests are included. The shared code
715         and the tests runner are included in separate patches.
716
717         * Animometer/runner/animometer.html:
718         * Animometer/runner/resources/animometer.js:
719         Add two new examples for more complex animation techniques.
720         Add an option to show/hide the test running results which is off by default.
721
722         * Animometer/runner/resources/tests.js: Added.
723         (suiteFromName): Returns a suite given its name.
724         (testFromName): Returns a test given its suite and name.
725
726         * Animometer/tests: Added.
727         This directory includes all the test suites to be run by the benchmark.
728         runner. All the tests should try to run on three stages: CSS, canvas and
729         SVG.
730         
731         * Animometer/tests/bouncing-particles: Added.
732         * Animometer/tests/bouncing-particles/resources: Added.
733         The bouncing particles test is an example of a simple animation technique.
734         
735         * Animometer/tests/bouncing-particles/bouncing-canvas-images.html: Added.
736         * Animometer/tests/bouncing-particles/bouncing-canvas-shapes.html: Added.
737         * Animometer/tests/bouncing-particles/bouncing-css-images.html: Added.
738         * Animometer/tests/bouncing-particles/bouncing-css-shapes.html: Added.
739         * Animometer/tests/bouncing-particles/bouncing-svg-images.html: Added.
740         * Animometer/tests/bouncing-particles/bouncing-svg-shapes.html: Added.
741         Bouncing particles test pages.
742
743         * Animometer/tests/bouncing-particles/resources/bouncing-particles.js: Added.
744         (BouncingParticle): Base class for a bouncing particle.
745         (BouncingParticle.prototype.center): Returns the center point or the particle.
746         (BouncingParticle.prototype.animate): Moves the particle based on its current position, angle and velocity.
747         
748         (BouncingParticlesAnimator): A sub class of Animator.
749         
750         (BouncingParticlesStage): Represents the container of all the bouncing particles.
751         (BouncingParticlesStage.prototype.parseShapeParamters): Gets the shape parameters for shape animating tests.
752         (BouncingParticlesStage.prototype.randomRotater): Creates a rotater for the particles.
753         (BouncingParticlesStage.prototype.animate): Animates all the particles.
754         (BouncingParticlesStage.prototype.tune): Changes the test by adding or removing particles.
755         
756         (BouncingParticlesBenchmark): Runs the benchmark for bouncing particles test.
757         (BouncingParticlesBenchmark.prototype.createAnimator): Creates an animator of type BouncingParticlesAnimator.
758
759         * Animometer/tests/bouncing-particles/resources/bouncing-css-shapes.js: Added.
760         (BouncingCssShape): A sub class of BouncingParticle for animating CSS shapes.
761         (BouncingCssShape.prototype._createSpan): Creates a <span> element and takes the shape and clipping classes into consideration.
762         (BouncingCssShape.prototype._move): Moves the particle to a new location. Apply transform since it does not require layout.
763         (BouncingCssShape.prototype.animate): Rotates and moves the shape to a new location.
764         
765         (BouncingCssShapesStage): A sub class of BouncingParticlesStage for animating CSS shapes.
766         (BouncingCssShapesStage.prototype.createParticle): Creates a particle of type BouncingCssShape.
767         (BouncingCssShapesStage.prototype.particleWillBeRemoved): Removes the corresponding element form the parent children list.
768         
769         (BouncingCssShapesBenchmark): A sub class of BouncingParticlesBenchmark for animating CSS shapes.
770         (BouncingCssShapesBenchmark.prototype.createStage): Creates a stage of type BouncingCssShapesStage.
771         (window.benchmarkClient.create): Creates a benchmark of type BouncingCssShapesBenchmark.
772         
773         * Animometer/tests/bouncing-particles/resources/bouncing-css-images.js: Added.
774         (BouncingCssImage): A sub class of BouncingParticle for animating CSS images.
775         (BouncingCssImage.prototype._move): Move the particle to a new location. Apply transform since it does not require layout.
776         (BouncingCssImage.prototype.animate): Rotates and moves the shape to a new location.
777         
778         (BouncingCssImagesStage): A sub class of BouncingParticlesStage for animating CSS images.
779         (BouncingCssImagesStage.prototype.createParticle): Creates a particle of type BouncingCssImage.
780         (BouncingCssImagesStage.prototype.particleWillBeRemoved): Removes the corresponding element form the parent children list.
781         
782         (BouncingCssImagesBenchmark): A sub class of BouncingParticlesBenchmark for animating CSS images.
783         (BouncingCssImagesBenchmark.prototype.createStage): Creates a stage of type BouncingCssImagesStage.
784         (window.benchmarkClient.create): Creates a benchmark of type BouncingCssImagesBenchmark.
785         
786         * Animometer/tests/bouncing-particles/resources/bouncing-canvas-particles.js: Added.
787         (BouncingCanvasParticle): A base sub-class of BouncingParticle for animating canvas particles.
788         (BouncingCanvasParticle.prototype._applyRotation): Apply the particle rotation-around-center transform to the canvas context.
789         (BouncingCanvasParticle.prototype._applyClipping): Apply the particle clipping to the canvas context.
790         (BouncingCanvasParticle.prototype._draw): A non-implemented version of the drawing function.
791         (BouncingCanvasParticle.prototype.animate): Carries out all the steps to redraw the canvas particle.
792         
793         (BouncingCanvasParticlesStage): A base sub-class of BouncingParticlesStage for animating canvas particles.
794         
795         (BouncingCanvasParticlesAnimator): A concrete sub-class of BouncingParticlesAnimator for animating canvas particles.
796         (BouncingCanvasParticlesAnimator.prototype.animate): Overrides the base class method to clear the canvas before redrawing the stage.
797         
798         (BouncingCanvasParticlesBenchmark): A base sub-class of StageBenchmark for animating canvas particles.
799         (BouncingCanvasParticlesBenchmark.prototype.createAnimator): Creates the canvas particles animator.
800         
801         * Animometer/tests/bouncing-particles/resources/bouncing-canvas-shapes.js: Added.
802         (BouncingCanvasShape): A concrete sub-class of BouncingCanvasParticle for animating canvas shapes.
803         (BouncingCanvasShape.prototype._applyFill): Sets the fillStyle in the canvas context.
804         (BouncingCanvasShape.prototype._drawShape): Carries out the actual drawing.
805         (BouncingCanvasShape.prototype._draw): Carries out all the steps to draw the shape.
806         
807         (BouncingCanvasShapesStage): A concrete sub-class of BouncingCanvasParticle for animating canvas shapes.
808         (BouncingCanvasShapesStage.prototype.createParticle): Creates a particle of type BouncingCanvasShape.
809         
810         (BouncingCanvasShapesBenchmark): A concrete sub-class of BouncingCanvasParticlesBenchmark for animating canvas shapes.
811         (BouncingCanvasShapesBenchmark.prototype.createStage): Creates a stage of type BouncingCanvasShapesStage.
812         (window.benchmarkClient.create): Creates a benchmark of type BouncingCanvasShapesBenchmark.
813
814         * Animometer/tests/bouncing-particles/resources/bouncing-canvas-images.js: Added.
815         (BouncingCanvasImage): A concrete sub-class of BouncingCanvasParticle for animating canvas images.
816         (BouncingCanvasImage.prototype._draw): Draws an image on the context of a canvas.
817         
818         (BouncingCanvasImagesStage): A concrete sub-class of BouncingCanvasParticlesBenchmark for animating canvas images.
819         (BouncingCanvasImagesStage.prototype.createParticle): Creates a particle of type BouncingCanvasImage.
820         
821         (BouncingCanvasImagesBenchmark): A concrete sub-class of BouncingCanvasParticlesBenchmark for animating canvas images.
822         (BouncingCanvasImagesBenchmark.prototype.createStage): Creates a stage of type BouncingCanvasImagesStage.
823         (window.benchmarkClient.create): Creates a benchmark of type BouncingCanvasImagesBenchmark.
824
825         * Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js: Added.
826         (BouncingSvgParticle): A base sub-class of BouncingParticle for animating SVG particles.
827         (BouncingSvgParticle.prototype._applyClipping): Apply the particle clipping by setting the 'clip-path' attribute of the SVGElement.
828         (BouncingSvgParticle.prototype._move): Moves the particle to a new location. Apply transform since it does not require layout.
829         (BouncingSvgParticle.prototype.animate): Rotates and moves the shape to a new location.
830         (BouncingSvgParticlesStage): A sub class of BouncingParticlesStage for animating SVGElements.
831         (BouncingSvgParticlesStage.prototype._createDefs): Creates an SVGDefsElement.
832         (BouncingSvgParticlesStage.prototype._ensureDefsIsCreated): Ensures there is only one SVGDefsElement is created.
833         (BouncingSvgParticlesStage.prototype._createClipStar): Creates an SVGClipPathElement and sets its 'd' attribute to a star like shape.
834         (BouncingSvgParticlesStage.prototype.ensureClipStarIsCreated): Ensure there is only one star SVGClipPathElement is created.
835         (BouncingSvgParticlesStage.prototype.particleWillBeRemoved): Remove the corresponding element form the parent children list.
836
837         * Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js: Added.
838         (BouncingSvgShape): A concrete sub-class of BouncingSVGParticle for animating SVG shapes.
839         (BouncingSvgShape.prototype._createShape): Creates an SVG shape.
840         (BouncingSvgShape.prototype._applyFill): Applies the selected fill style to the SVG shape.
841         
842         (BouncingSvgShapesStage): A concrete sub-class of BouncingSvgParticlesStage for animating SVG shapes.
843         (BouncingSvgShapesStage.prototype.createGradient): Creates an SVGLinearGradientElement.
844         (BouncingSvgShapesStage.prototype.createParticle): Creates a particle of type BouncingSvgShape.
845         (BouncingSvgShapesStage.prototype.particleWillBeRemoved): Ensures the attached SVGLinearGradientElement is removed from the SVGDefsElement.
846         
847         (BouncingSvgShapesBenchmark): A concrete sub-class of BouncingParticlesBenchmark for animating SVG images.
848         (BouncingSvgShapesBenchmark.prototype.createStage): Creates a stage of type BouncingSvgShapesStage.
849         (window.benchmarkClient.create): Creates a benchmark of type BouncingSvgShapesBenchmark.
850         
851         * Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js: Added.
852         (BouncingSvgImage): A concrete sub-class of BouncingSVGParticle for animating SVG images.
853         
854         (BouncingSvgImagesStage): A concrete sub-class of BouncingSVGParticlesBenchmark for animating SVG images.
855         (BouncingSvgImagesStage.prototype.createParticle): Creates a particle of type BouncingSvgImage.
856         
857         (BouncingSvgImagesBenchmark): A concrete sub-class of BouncingParticlesBenchmark for animating SVG images.
858         (BouncingSvgImagesBenchmark.prototype.createStage): Creates a stage of type BouncingSvgImagesStage.
859         (window.benchmarkClient.create): Creates a benchmark of type BouncingSvgImagesBenchmark.
860
861         * Animometer/tests/examples: Added.
862         * Animometer/tests/examples/canvas-electrons.html: Added.
863         * Animometer/tests/examples/canvas-stars.html: Added.
864         Examples test pages. 
865         
866         * Animometer/tests/examples/resources: Added.
867         * Animometer/tests/examples/resources/canvas-electrons.js: Added.
868         (CanvasElectron): An object which draws and animate a electron object on a canvas stage.
869         (CanvasElectron.prototype._draw): Draws the electron object.
870         (CanvasElectron.prototype.animate): Animates the electron object.
871         
872         (CanvasElectronsStage): A concrete sub-class of Stage for animating electrons.
873         (CanvasElectronsStage.prototype.tune): Changes the test by adding or removing elements.
874         (CanvasElectronsStage.prototype.animate): Animates the test elements.
875         
876         (CanvasElectronsAnimator): A concrete sub-class of StageAnimator for animating canvas electrons.
877         (CanvasElectronsAnimator.prototype.animate): Overrides the base class method to clear the canvas before redrawing the stage.
878         
879         (CanvasElectronsBenchmark): A concrete sub-class of StageBenchmark for animating electrons.
880         (CanvasElectronsBenchmark.prototype.createStage): Creates a stage of CanvasElectronsStage.
881         (CanvasElectronsBenchmark.prototype.createAnimator): Creates an animator of type CanvasElectronsAnimator.
882         (window.benchmarkClient.create): Creates a benchmark of type CanvasElectronsBenchmark.
883         
884         * Animometer/tests/examples/resources/canvas-stars.js: Added.
885         (CanvasStar): An object which draws and animate a star object on a canvas stage.
886         (CanvasStar.prototype._draw): Draws the star object.
887         (CanvasStar.prototype.animate): Animates the star object.
888         
889         (CanvasStarsStage): A concrete sub-class of Stage for animating stars.
890         (CanvasStarsStage.prototype.tune): Changes the test by adding or removing elements.
891         (CanvasStarsStage.prototype.animate): Animates the test elements.
892         
893         (CanvasStarsAnimator): A concrete sub-class of StageAnimator for animating canvas stars.
894         (CanvasStarsAnimator.prototype.animate): Overrides the base class method to clear the canvas before redrawing the stage.
895         
896         (CanvasStarsBenchmark): A concrete sub-class of Benchmark for animating stars.
897         (CanvasStarsBenchmark.prototype.createStage): Creates a stage of CanvasStarsStage.
898         (CanvasStarsBenchmark.prototype.createAnimator): Creates an animator of type CanvasStarsAnimator.
899         (window.benchmarkClient.create): Creates a benchmark of type CanvasStarsBenchmark.
900
901         * Animometer/tests/resources: Added.
902         This directory includes the script which is required to run an adaptive 
903         graphics benchmark. From an empty test page, the set of classes in this
904         directory are responsible for measuring the current frame rate and
905         changing the test to reach a desired FPS. It keeps asking the test page
906         to tune itself by a certain value to increase or decrease the frame rate.
907         It's also responsible for sampling the test state and the corresponding
908         frame rate.
909         
910         * Animometer/tests/resources/main.js: Added.
911         (BenchmarkState): Tracks the state of the benchmark test.
912         (BenchmarkState.prototype._timeOffset): Returns the timeOffset of a stage.
913         (BenchmarkState.prototype._message): Returns the message of a stage.
914         (BenchmarkState.prototype.update): Sets the currentTimeOffset to a new value.
915         (BenchmarkState.prototype.samplingTimeOffset): Returns the timeOffset of the sampling stage.
916         (BenchmarkState.prototype.currentStage): Returns the current stage of the benchmark.
917         (BenchmarkState.prototype.currentMessage): Returns the message of the current stage and timeOffset.
918         (BenchmarkState.prototype.currentProgress): Returns a percentage of how much the benchmark is running.
919         
920         (Animator): Manages animating the test.
921         (Animator.prototype.start): Called if animating using setInterval is requested.
922         (Animator.prototype.timeDelta): Returns the current timeDelta 
923         (Animator.prototype.animate): Manages the test animation.
924         (Animator.prototype.animateLoop): Called if animating using requestAnimationFrame is requested. 
925
926         (Benchmark): Manages running the test benchmark and recording the sampled data.
927         (Benchmark.prototype.start): Starts the benchmark.
928         (Benchmark.prototype.update): Called from the animator.animate() to change the complexity of the test.
929         (Benchmark.prototype.record): Shows the current (not final) results of the benchmark.
930         (Benchmark.prototype.resolveWhenFinished): Spins until the benchmark is finished and returns its results.
931         (Benchmark.prototype.run): Starts the test, runs it, waits until it is finished and return its results.
932         (window.runBenchmark): Called from the benchmark runner through the suite controller run-callback.
933
934         * Animometer/tests/resources/math.js: Added.
935         (Matrix): A matrix object.
936         (Vector3): A vector of size 3 object.
937         (Matrix3): A matrix of size 3x3 object.
938         
939         (PIDController): Closed-loop controller for a set-point y.
940         (PIDController.prototype._sat): Limits the output to a certain range.
941         (PIDController.prototype.tune): Given the current output of a system, it produces a new pid value for tuning it.
942         
943         (KalmanEstimator): Implement Kalman filter to get an estimate for a sampled data point.
944         (KalmanEstimator.prototype.estimate): Returns an estimate for for a sampled data point.
945
946         * Animometer/tests/resources/utilities.js: Added.
947         (window.Utilities._parse): Given a separator character, it pareses a string to a set of <key, value> pairs.
948         (window.Utilities.parseParameters): Parses a test parameters.
949         (window.Utilities.parseArguments): Parses a tag arguments.
950         (window.Utilities.extendObject): Adds the attributes and their values of an object to another object.
951         (window.Utilities.copyObject): Copies the attributes and their values of an object to a new object.
952         (window.Utilities.mergeObjects): Copies the attributes and their values of two objects to a new object.
953         (window.Utilities.createSvgElement): Creates an SVGElement given its name and its attributes.
954         
955         * Animometer/tests/resources/stage.css: Added.
956         * Animometer/tests/resources/stage.js: Added.
957         (Rotater): Manages rotating an angle within a fixed time interval.
958         (Rotater.prototype.get interval): Returns the time interval which is required to rotate 360 degrees.
959         (Rotater.prototype.next): Moves the current time by a delta.
960         (Rotater.prototype.degree): Returns the current rotating degree.
961         (Rotater.prototype.rotateZ): Returns CSS formatted transform rotateZ() string for the current degree.
962         (Rotater.prototype.rotate): Returns SVG formatted transform rotate() string for the current degree.
963         
964         (Stage): A base class for managing the test complexity and test animation.
965         (Stage.prototype.get size): Returns the size of the stage excluding the CSS padding.
966         (Stage.prototype.random): Returns a random float.
967         (Stage.prototype.randomInt): Returns a random integer.
968         (Stage.prototype.randomPosition): Returns a random position.
969         (Stage.prototype.randomSquareSize): Returns a square size.
970         (Stage.prototype.randomVelocity): Returns a random velocity.
971         (Stage.prototype.randomAngle): Returns a random angle.
972         (Stage.prototype.randomColor): Returns a random color not too dark and not too light.
973         (Stage.prototype.randomRotater): Creates a random rotater. Its velocity depends on choosing a random rotation time interval.
974         (Stage.prototype.tune): A not-implemented version of this function.
975         (Stage.prototype.animate): A not-implemented version of this function.
976         (Stage.prototype.clear): Clears the stage from all its animation elements.
977         
978         (StageAnimator): A base class for the stage-based animators.
979         (StageAnimator.prototype.animate): Calls Animator.animate() which updates the test page and then calls Stage.animate() to force redraw.
980         
981         (StageBenchmark): A base class for the stage-based benchmarks.
982         (StageBenchmark.prototype.createStage): Creates the default stage.
983         (StageBenchmark.prototype.createAnimator): Creates the default animator.
984         (StageBenchmark.prototype.tune): Delegates the call to stage.
985         (StageBenchmark.prototype.clear): Delegates the call to stage.
986         (StageBenchmark.prototype.showResults): Shows the results/progress through its recordTable and progressBar.
987         
988         * Animometer/tests/resources/yin-yang.png: Added.
989         * Animometer/tests/resources/yin-yang.svg: Added.
990         These images are shared among all the tests.
991         
992         * Animometer/tests/template: Added.
993         * Animometer/tests/template/resources: Added.
994         This directory includes template tests which do nothing. They can be used
995         to author new tests. Animated items can be created, moved and redrawn by
996         removing the TODO comments in the script files and writing actual code.
997
998         * Animometer/tests/template/template-css.html: Added.
999         * Animometer/tests/template/template-canvas.html: Added.
1000         * Animometer/tests/template/template-svg.html: Added.
1001         Template test pages. They can be used as they are. CSS attributes or hidden
1002         elements can be added to these derived test pages if needed.
1003         
1004         * Animometer/tests/template/resources/template-css.js: Added.
1005         
1006         (TemplateCssStage): A stage to create and animate HTMLElements.
1007         (TemplateCssStage.prototype.tune): Changes the test by adding or removing elements.
1008         (TemplateCssStage.prototype.animate): Animates the test elements.
1009         (TemplateCssBenchmark): 
1010         (TemplateCssBenchmark.prototype.createStage): Creates the test stage.
1011         (window.benchmarkClient.create): Creates a benchmark of type TemplateCssBenchmark.
1012         
1013         * Animometer/tests/template/resources/template-canvas.js: Added.
1014         (TemplateCanvasObject):
1015         (TemplateCanvasObject.prototype._draw): Draws the objects on the canvas context.
1016         (TemplateCanvasObject.prototype.animate): Moves and redraws the object.
1017         (TemplateCanvasStage): A stage to create and animate drawing elements.
1018         (TemplateCanvasStage.prototype.tune): hanges the test by adding or removing elements.
1019         (TemplateCanvasStage.prototype.animate):  Animates the test elements.
1020         (TemplateCanvasAnimator.prototype.animate): Starts the animation every frame.
1021         (TemplateCanvasBenchmark): 
1022         (TemplateCanvasBenchmark.prototype.createStage): Creates a stage of type TemplateCanvasStage.
1023         (TemplateCanvasBenchmark.prototype.createAnimator): Creates a animator of type TemplateCanvasAnimator.
1024         (window.benchmarkClient.create): Creates a benchmark of type TemplateCanvasBenchmark.
1025         
1026         * Animometer/tests/template/resources/template-svg.js: Added.
1027         (TemplateSvgStage): A stage to create and animate SVGElements.
1028         (TemplateSvgStage.prototype.tune): Changes the test by adding or removing elements.
1029         (TemplateSvgStage.prototype.animate): Animates the test elements.
1030         (TemplateSvgBenchmark.prototype.createStage): Creates a stage of type TemplateSvgStage.
1031         (window.benchmarkClient.create): Creates a benchmark of type TemplateSvgBenchmark.
1032         
1033         * Animometer/tests/text: Added.
1034         * Animometer/tests/text/resources: Added.
1035         This directory includes the text animating tests which currently runs
1036         on CSS stage only.
1037         
1038         * Animometer/tests/text/layering-text.html: Added.
1039         Text test page.
1040         
1041         * Animometer/tests/text/resources/layering-text.js: Added.
1042         (LayeringTextStage): Represents the container of all the stacked text layers.
1043         (LayeringTextStage.parseTextItem): Parses a textItem which may be an opening tag, a closing tag or a self-closing tag.
1044         (LayeringTextStage.isOpeningTextItem): Returns true if the textItem is an opening tag e.g. '<ol>'.
1045         (LayeringTextStage.isClosingTextItem): Returns true if  the textItem is an closing tag e.g. '</ol>.
1046         (LayeringTextStage.textItemsFlags.LayeringTextStage.textItems.map): Calculates and stores isOpening and isClosing flags for each textItem.
1047         (LayeringTextStage.isColorableTextItem): Returns true if the textItem is self-closing tag e.g. '<p>...</p>'.
1048         (LayeringTextStage.isInsertableTextItem): Returns true if the textItems causes a new element to be added to the text layers.
1049         (LayeringTextStage.colorableTextItems.LayeringTextStage.textItemsFlags.filter): Number of colorable textItems.
1050         (LayeringTextStage.insertableTextItems.LayeringTextStage.textItemsFlags.filter): Number of insertable textItems.
1051         (LayeringTextStage.colorIndexToTextElementIndex): Maps from colorIndex [0..colorableTextItems-1] to textElementIndex [0..insertableTextItems-1].
1052         (LayeringTextStage.prototype._nextTextItem): Moves the _textItemIndex one step forward in a loop [0..LayeringTextStage.textItems.length-1].
1053         (LayeringTextStage.prototype._previousTextItem): Moves the _textItemIndex one step backward in a loop.
1054         (LayeringTextStage.prototype._pushTextElement): Creates a new textItemElement and adds it to the topmost container <div>.
1055         (LayeringTextStage.prototype._popTextElement): Removes the last textItemElement from the topmost container <div>.
1056         (LayeringTextStage.prototype._colorTextItem): Changes the background color of a single colorable textElement. The index advances in a circle [0..colorableTextItems-1].
1057         (LayeringTextStage.prototype.animate): Changes the background color and the text color of the textElements such that a redraw is enforced.
1058         (LayeringTextStage.prototype.tune): Adds or removes textElements to the stage.
1059
1060         (LayeringTextBenchmark): Runs the benchmark for the layering text test.
1061         (LayeringTextBenchmark.prototype.createStage): Creates a stage of type LayeringTextStage.
1062         (window.benchmarkClient.create): Creates a benchmark of type LayeringTextBenchmark.
1063
1064 2015-10-02  Said Abou-Hallawa  <sabouhallawa@apple.com>
1065
1066         Add shared code for a new a graphics benchmark
1067         https://bugs.webkit.org/show_bug.cgi?id=149691
1068
1069         Reviewed by Ryosuke Niwa.
1070
1071         This set of classes will be shared and used by the tests and the runner
1072         of a new graphics benchmark.
1073
1074         * Animometer/resources: Added.
1075         * Animometer/resources/algorithm.js: Added.
1076         (Array.prototype.swap): Swaps two elements in an array.
1077         (Heap): Binary Min/Max Heap object
1078         (Heap.prototype._parentIndex): Given the child node index, it returns the parent index.
1079         (Heap.prototype._leftIndex): Given the parent node index, it returns the left node index.
1080         (Heap.prototype._rightIndex): Given the parent node index, it returns the right node index.
1081         (Heap.prototype._childIndex): Given the parent node index, it returns the child index that may violate the heap property.
1082         (Heap.prototype.init): Initializes the heap state.
1083         (Heap.prototype.top): Returns the value stored at the top of the heap.
1084         (Heap.prototype.push): Pushes a new node at the top of the heap.
1085         (Heap.prototype.pop): Extracts the top node of the heap.
1086         (Heap.prototype._bubble): Fixes the heap property by moving upward.
1087         (Heap.prototype._sink): Fixes the heap property by moving downward.
1088         (Heap.prototype.str): Prints the nodes of the heap to a string.
1089         (Heap.prototype.values): Returns the last "size" heap elements values.
1090
1091         (Algorithm.createMinHeap): Creates a size-bounded min-heap object.
1092         (Algorithm.createMaxHeap): Creates a size-bounded max-heap object.
1093         
1094         * Animometer/resources/extensions.js: Added.
1095         (Point): Point object but can be used as size also.
1096         (Point.pointOnCircle): Given, the radius of the circle and the angle of the point, it returns a point object.
1097         (Point.pointOnEllipse): Given, the radiuses of the ellipse and the angle of the point, it returns a point object.
1098         (Point.prototype.get width): Should be called when the point is used as size.
1099         (Point.prototype.get height): Should be called when the point is used as size.
1100         (Point.prototype.get center): Should be called when the point is used as size.
1101         (Point.prototype.add): Returns a new point = this + other.
1102         (Point.prototype.subtract): Returns a new point = this - other.
1103         (Point.prototype.multiply): Returns a new point = this * other.
1104         (Point.prototype.move): Moves the point in a given direction, velocity, time period.
1105
1106         (Insets): Represents borders of a container.
1107         (Insets.prototype.get width): Returns left + right.
1108         (Insets.prototype.get height): Returns top + bottom.
1109
1110         (SimplePromise):
1111         (SimplePromise.prototype.then):
1112         (SimplePromise.prototype.resolve):
1113         Moved from Animometer/runner/resources/benchmark-runner.js since tests also need it.
1114
1115         (Options): Benchmark running options as they are set by the user.
1116
1117         (ProgressBar): Manages a progress bar element. The progress bar is divided into equal length ranges.
1118         (ProgressBar.prototype._progressToPercent): Converts the progress into a percentage.
1119         (ProgressBar.prototype.incRange): Moves to the next range (a range is the running time of a single test).
1120         (ProgressBar.prototype.setPos): Draws the current progress in the current range.
1121
1122         (RecordTable): Shows the results of running a benchmark in a tabular form.
1123         (RecordTable.prototype.clear): Clears the results table.
1124         (RecordTable.prototype._showTitles): Shows the header titles and appends the sub-titles to a queue.
1125         (RecordTable.prototype._showHeader): Shows the table header titles.
1126         (RecordTable.prototype._showEmpty): Shows an empty table cell.
1127         (RecordTable.prototype._showValue): Shows a number value in the results table.
1128         (RecordTable.prototype._showSamples): Shows a button for the sampled data graph.
1129         (RecordTable.prototype._showTest): Shows the results of a single test.
1130         (RecordTable.prototype._showSuite): Shows the results of a single suite.
1131         (RecordTable.prototype.showRecord): Shows a single iteration for a single test.
1132         (RecordTable.prototype.showIterations): Shows the results of all the suites of the iterations. 
1133
1134         * Animometer/resources/sampler.js: Added.
1135         (Statistics.sampleMean): Returns the sample mean.
1136         (Statistics.unbiasedSampleStandardDeviation): Returns the unbiased sample variance (i.e. with Bessel's correction)
1137         (Statistics.geometricMean): Returns the geometric mean.
1138
1139         (Experiment): Represents a sampling experiment. 
1140         (Experiment.prototype._init): Called when the object is created and when startSampling() is called.
1141         (Experiment.prototype.startSampling): Called after warmup period. Restarts collecting sampled data points.
1142         (Experiment.prototype.sample): Add a new data point.
1143         (Experiment.prototype.mean): Returns the sample mean for the current sampled data points.
1144         (Experiment.prototype.standardDeviation): Returns the sample standard deviation for the current sampled data points.
1145         (Experiment.prototype.percentage): Returns the percentage of the standard deviation divided to the mean.
1146         (Experiment.prototype.confidenceIntervalDelta): Calculates the confidence delta for the current sampled data given a confidence level.
1147         (Experiment.prototype.concern): Returns the average of the worst given percentage from the sampled data.
1148         (Experiment.prototype.score): Returns a score for the sampled data. It is the geometric mean of sampleMean and concern.
1149
1150         (Sampler): Represents a compound experiment. It manages sampling multiple data points at the same time offset.
1151         (Sampler.prototype.startSampling): Called after warming up period. Restarts collecting sampled data points.
1152         (Sampler.prototype.sample): Add a new data vector at a given time offset.
1153         
1154 2015-10-02  Said Abou-Hallawa  <sabouhallawa@apple.com>
1155
1156         Add the test runner for a new a graphics benchmark
1157         https://bugs.webkit.org/show_bug.cgi?id=149683
1158
1159         Reviewed by Ryosuke Niwa.
1160
1161         The test runner collects the selected test suites and the running options
1162         from its home page. It loops through all the tests, runs them and collects
1163         their running results. At the end, it shows summary results and a final
1164         score. It can also show a chart for a test sampled data.
1165
1166         * Animometer: Added.
1167         * Animometer/runner: Added.
1168         * Animometer/runner/resources: Added.
1169         
1170         * Animometer/runner/animometer.html: Added.
1171         * Animometer/runner/resources/animometer.css: Added.
1172         The benchmark runner page and css.
1173
1174         * Animometer/runner/resources/animometer.js: Added.
1175         (window.benchmarkRunnerClient.willAddTestFrame): Called after the test <iframe> is created.
1176         (window.benchmarkRunnerClient.didRunTest): Called after running a test is finished.
1177         (window.benchmarkRunnerClient.willStartFirstIteration): Called at the beginning before running any test.
1178         (window.benchmarkRunnerClient.didRunSuites): Called after running all tests of a suite.
1179         (window.benchmarkRunnerClient.didFinishLastIteration): Called after running the last test.
1180         
1181         (showSection): Shows a section in the animometer.html page.
1182         (startTest): Called when the "Start Test" button is clicked.
1183         (showResults): Called after finishing all the tests.
1184         (showGraph): Called when "Click..." button in the "Samples" column of the results table is clicked
1185         
1186         * Animometer/runner/resources/benchmark-runner.js: Copied from PerformanceTests/Speedometer/resources/benchmark-runner.js.
1187         (BenchmarkRunnerState): Tracks the current running <suite, test>
1188         (BenchmarkRunnerState.prototype.currentSuite): Returns the current running suite.
1189         (BenchmarkRunnerState.prototype.currentTest): Returns the current running test.
1190         (BenchmarkRunnerState.prototype.isFirstTest): Returns true if we are running the first test in the current suite.
1191         (BenchmarkRunnerState.prototype.next): Advances to the next test.
1192         (BenchmarkRunnerState.prototype.prepareCurrentTest): Creates a new <iframe> and waits for it to load a test.
1193         
1194         (BenchmarkRunner): Manages running the tests and communicating with the benchmarkRunnerClient.
1195         (BenchmarkRunner.prototype.waitForElement): Waits for an element to be created.
1196         (BenchmarkRunner.prototype._appendFrame): Creates a new <iframe> element.
1197         (BenchmarkRunner.prototype._removeFrame): Removed the current <iframe> element.
1198         (BenchmarkRunner.prototype._runTestAndRecordResults): Runs the current test and saves its results.
1199         (BenchmarkRunner.prototype.step): Either runs the current test if there is or start a new iteration.
1200         (BenchmarkRunner.prototype.runAllSteps): Loops to run all the tests and move to the next iteration.
1201         (this._runNextIteration): Starts a new iteration or show the results.
1202         (BenchmarkRunner.prototype.runMultipleIterations): Loops to run all the iterations and show the results
1203         (BenchmarkRunner.prototype._finalize): Finalizes the current iteration and starts a new one.
1204
1205         (SimplePromise): Deleted.
1206         (SimplePromise.prototype.then): Deleted.
1207         (SimplePromise.prototype.resolve): Deleted.
1208         (BenchmarkTestStep): Deleted.
1209         (Fibonacci): Deleted.
1210         SimplePromise was moved t Animometer/resources/extensions.js because it is used by the runner and the tests.
1211         
1212         (BenchmarkRunner.prototype._waitAndWarmUp): Deleted.
1213         (BenchmarkRunner.prototype._runTest): Deleted.
1214         (BenchmarkState.prototype.currentSuite): Deleted.
1215         (BenchmarkState.prototype.currentTest): Deleted.
1216         (BenchmarkState.prototype.next): Deleted.
1217         (BenchmarkState.prototype.isFirstTest): Deleted.
1218         (BenchmarkState.prototype.prepareCurrentSuite): Deleted.
1219         BenchmarkState was renamed to BenchmarkRunnerState to not be confused with the tests BenchmarkState.
1220         
1221         * Animometer/runner/resources/d3.min.js: Copied from Websites/perf.webkit.org/public/v2/js/d3/d3.min.js.
1222         Needed for drawing charts for the sampled scores and frame rates.
1223         
1224         * Animometer/runner/resources/graph.js: Added.
1225         (graph): Draws a chart for a test sampled data. It shows two y-axes: one for the animated items and the second for FPS.
1226                 
1227         * Skipped: Skip the Animometer benchmark for now.
1228
1229 2015-08-27  Csaba Osztrogonác  <ossy@webkit.org>
1230
1231         [EFL] REGRESSION(r188793): It made 200 layout tests and Bindings/event-target-wrapper.html performance test fail
1232         https://bugs.webkit.org/show_bug.cgi?id=148470
1233
1234         Unreviewed gardening, skip the hanging test to make the performance bot work.
1235
1236         * Skipped:
1237
1238 2015-08-17  Chris Dumez  <cdumez@apple.com>
1239
1240         Add performance tests for traversal of collections returned by getElementsByClassName() / getElementsByTagName()
1241         https://bugs.webkit.org/show_bug.cgi?id=148080
1242
1243         Reviewed by Antti Koivisto.
1244
1245         Add performance tests for traversal of *uncached* collections returned
1246         by getElementsByClassName() / getElementsByTagName(). These methods
1247         will soon be updated to return an HTMLCollection instead of a
1248         NodeList and we need to make sure we don't regress performance in the
1249         process.
1250
1251         * DOM/get-elements-by-class-name-traversal-uncached.html: Added.
1252         * DOM/get-elements-by-tag-name-traversal-uncached.html: Added.
1253
1254 2015-08-14  Chris Dumez  <cdumez@apple.com>
1255
1256         Add performance tests for NodeList and HTMLCollection traversal
1257         https://bugs.webkit.org/show_bug.cgi?id=148043
1258
1259         Reviewed by Gavin Barraclough.
1260
1261         Add performance tests for NodeList and HTMLCollection traversal.
1262         Ideally, those 2 tests should be as fast. However, due to inefficiencies
1263         in our HTMLCollection bindings code, the HTMLCollection tests is ~30%
1264         slower. This will be addressed in the near future.
1265
1266         * Bindings/childNodes-traversal.html: Added.
1267         * Bindings/children-traversal.html: Added.
1268
1269 2015-08-05  Myles C. Maxfield  <mmaxfield@apple.com>
1270
1271         Add a second font-fallback performance test
1272         https://bugs.webkit.org/show_bug.cgi?id=147692
1273
1274         Reviewed by Ryosuke Niwa.
1275
1276         This test is smaller, but has more realistic content. Also, it uses the "lang" attribute.
1277
1278         * Layout/font-fallback-2.html: Added.
1279         * Layout/resources/font-fallback-2.html: Added.
1280
1281 2015-07-13  Filip Pizlo  <fpizlo@apple.com>
1282
1283         Update JetStream version number to 1.1.
1284
1285         Rubber stamped by Ryosuke Niwa.
1286
1287         * JetStream/create.rb:
1288
1289 2015-06-30  Filip Pizlo  <fpizlo@apple.com>
1290
1291         Update the JetStream documentation to reflect the recent changes
1292         https://bugs.webkit.org/show_bug.cgi?id=146474
1293
1294         Reviewed by Geoffrey Garen.
1295
1296         * JetStream/create.rb: Bump the version.
1297         * JetStream/in-depth-TEMPLATE.html: Add cdjs documentation. Remove cordic documentation. Change documentation for splay and mandreel.
1298
1299 2015-06-26  Filip Pizlo  <fpizlo@apple.com>
1300
1301         [JetStream] Raise the percentile of mandreel-latency and splay-latency
1302         https://bugs.webkit.org/show_bug.cgi?id=146378
1303
1304         Reviewed by Mark Lam.
1305         
1306         The current percentile is 95%.  When I looked at the sample lists in our GC, it was
1307         clear that the worst 5% samples completely amortize our GC pauses.  Our GC pauses can
1308         be quite bad.  Clearly, splay-latency is meant to test whether we have an incremental
1309         GC that ensures that you don't have bad worst-case pauses.  But 95% is too small,
1310         because it doesn't really capture those pauses.  Raising the percentile to above 99%
1311         appears to do the trick.  99.5% or more seems like a good bet.  The trade-off there is
1312         just that if we set it too high, then we won't have enough statistics.  Doing this very
1313         clearly rewards GCs that are incremental, and punishes GCs that aren't (like ours).
1314         That's what we want, since in the future we want to use this test to guide any
1315         improvements to the worst-case performance of our GC.
1316
1317         The way that the percentile is selected will also affect mandreel-latency.  That's a
1318         good thing, because 95% is probably too low for that test as well.  That test ends up
1319         with >10k samples.  The goal of using 95% in the first place was to get enough samples
1320         to have a stable average.  But if we have >10k samples, we can push that percentile up
1321         much higher and still get good statistics while achieving the effect we want - i.e.
1322         getting the worst case.
1323
1324         I don't think that we need to do the same thing for cdjs.  That test only takes 200
1325         samples, so 95% means we report the average of the worst 10 samples.  That's probably
1326         good enough.
1327
1328         * JetStream/Octane2/base.js: Raise the percentile as described above.
1329         (BenchmarkSuite.prototype.RunSingleBenchmark):
1330         * JetStream/Reference.js: Tweak the reference times to bring the latency tests closer to 100ish on my machine.
1331         * JetStream/create.rb: Bump the version.
1332
1333 2015-06-19  Filip Pizlo  <fpizlo@apple.com>
1334
1335         Run CDjs as part of JSC stress testing
1336         https://bugs.webkit.org/show_bug.cgi?id=146174
1337
1338         Reviewed by Geoffrey Garen.
1339
1340         * JetStream/cdjs/cdjs-tests.yaml: Added. This tells JSC stress tests what tests to run. It uses new syntax ("tests" being a list) that I add in this change.
1341         * JetStream/cdjs/main.js: Mark this as a slow test.
1342         * JetStream/create.rb: Don't copy the JSC stress tests artifacts into the JetStream bundle.
1343
1344 2015-06-19  Filip Pizlo  <fpizlo@apple.com>
1345
1346         Unreviewed, fix a small indentation goof.
1347
1348         * JetStream/cdjs/motion.js:
1349         (Motion.prototype.findIntersection):
1350
1351 2015-06-19  Filip Pizlo  <fpizlo@apple.com>
1352
1353         JetStream should include a JavaScript version of the CDx real-time benchmark
1354         https://bugs.webkit.org/show_bug.cgi?id=146156
1355
1356         Reviewed by Geoffrey Garen.
1357         
1358         This adds a JavaScript port of the CDx real-time benchmark to JetStream, and retires
1359         the cordic test because it was previously the smallest and probably least interesting.
1360         
1361         The new test, "cdjs", is mostly a faithful rewrite of the Java code into JavaScript.
1362         I got the Java code from https://www.cs.purdue.edu/sss/projects/cdx/.
1363         
1364         There are some differences:
1365         
1366         - It uses RedBlackTree's for all sets and maps rather than hashtables. This is clearly
1367           more in the spirit of real-time than the CDx benchmark. FWIW, CDx used to use trees
1368           and I don't know why that changed in the latest version.
1369         
1370         - CDjs doesn't attempt to avoid memory allocations, unlike the real-time Java version.
1371           I wrote the code that I wanted to write for aesthetics, rather than the code that I
1372           would have written if I tried to write the fastest code possible. Again, I believe
1373           that this is in the spirit of CDj - it's meant to test what would happen if you wrote
1374           real-timey stuff in a high level language and actually took advantage of that
1375           language to be more productive.
1376         
1377         The test score reflects the average latency of the worst 10 samples out of 200 samples.
1378         The simulation uses 1000 aircraft, flying along paths that result in some detected
1379         collisions every once in a while. The benchmark validates its results by checking the
1380         total number of collisions detected.
1381         
1382         Apart from the integration into the JetStream harness, the CDjs directory contains a
1383         fully self-contained benchmark that could be run either in the jsc shell or in browser.
1384         
1385         This new code uses the same 3-clause BSD license as the Purdue code, and gives
1386         attribution to Purdue in almost all files. I believe that is appropriate since I wrote
1387         most of the JS files by looking at the Purdue Java code and trascribing to JavaScript.
1388         In some cases, I even copy-pasted the Java code, like the complicated math for
1389         four-dimensional intersections and voxel hashing.
1390
1391         * JetStream/CDjsSetup.js: Added.
1392         * JetStream/Octane2Setup.js:
1393         * JetStream/Reference.js:
1394         * JetStream/cdjs: Added.
1395         * JetStream/cdjs/benchmark.js: Added.
1396         (benchmark):
1397         * JetStream/cdjs/call_sign.js: Added.
1398         (CallSign):
1399         (CallSign.prototype.compareTo):
1400         (CallSign.prototype.toString):
1401         * JetStream/cdjs/collision.js: Added.
1402         (Collision):
1403         (Collision.prototype.toString):
1404         * JetStream/cdjs/collision_detector.js: Added.
1405         (CollisionDetector):
1406         (CollisionDetector.prototype.handleNewFrame.get for):
1407         (CollisionDetector.prototype.handleNewFrame):
1408         * JetStream/cdjs/constants.js: Added.
1409         * JetStream/cdjs/main.html: Added.
1410         * JetStream/cdjs/main.js: Added.
1411         * JetStream/cdjs/motion.js: Added.
1412         (Motion):
1413         (Motion.prototype.toString):
1414         (Motion.prototype.delta):
1415         (Motion.prototype.findIntersection):
1416         * JetStream/cdjs/motion_test.js: Added.
1417         (checkDoesIntersect):
1418         (checkDoesNotIntersect):
1419         (makeMotion):
1420         * JetStream/cdjs/red_black_tree.js: Added.
1421         (RedBlackTree):
1422         (RedBlackTree.):
1423         * JetStream/cdjs/red_black_tree_test.js: Added.
1424         (test):
1425         (test.):
1426         * JetStream/cdjs/reduce_collision_set.js: Added.
1427         (drawMotionOnVoxelMap):
1428         (drawMotionOnVoxelMap.):
1429         (.get reduceCollisionSet):
1430         * JetStream/cdjs/reduce_collision_set_test.js: Added.
1431         (makeMotion):
1432         (keys):
1433         (test):
1434         * JetStream/cdjs/simulator.js: Added.
1435         (Simulator):
1436         (Simulator.prototype.simulate):
1437         * JetStream/cdjs/util.js: Added.
1438         (compareNumbers):
1439         (averageAbovePercentile):
1440         (currentTime):
1441         (else.currentTime):
1442         * JetStream/cdjs/vector_2d.js: Added.
1443         (Vector2D):
1444         (Vector2D.prototype.plus):
1445         (Vector2D.prototype.minus):
1446         (Vector2D.prototype.toString):
1447         (Vector2D.prototype.compareTo):
1448         * JetStream/cdjs/vector_3d.js: Added.
1449         (Vector3D):
1450         (Vector3D.prototype.plus):
1451         (Vector3D.prototype.minus):
1452         (Vector3D.prototype.dot):
1453         (Vector3D.prototype.squaredMagnitude):
1454         (Vector3D.prototype.magnitude):
1455         (Vector3D.prototype.times):
1456         (Vector3D.prototype.as2D):
1457         (Vector3D.prototype.toString):
1458         * JetStream/create.rb:
1459         * JetStream/index-TEMPLATE.html:
1460         * JetStream/sunspider/cordic.js: Removed.
1461
1462 2015-06-17  Javier Fernandez  <jfernandez@igalia.com>
1463
1464         [CSS Grid Layout] We should add performance tests for stretching logic
1465         https://bugs.webkit.org/show_bug.cgi?id=146063
1466
1467         Reviewed by Sergio Villar Senin.
1468
1469         Added a new performance test for Grid Layout to ensure there are no
1470         regressions in the stretching alignment logic.
1471
1472         * Layout/fixed-grid-lots-of-stretched-data.html: Added.
1473
1474 2015-06-17  Javier Fernandez  <jfernandez@igalia.com>
1475
1476         [CSS Grid Layout] Performance tests are using the old syntax
1477         https://bugs.webkit.org/show_bug.cgi?id=146061
1478
1479         Reviewed by Sergio Villar Senin.
1480
1481         Adapted tests to the new grid tracks definition syntax.
1482
1483         * Layout/auto-grid-lots-of-data.html:
1484         * Layout/fixed-grid-lots-of-data.html:
1485
1486 2015-06-08  Filip Pizlo  <fpizlo@apple.com>
1487
1488         JetStream should have a more rational story for jitter-oriented latency tests
1489         https://bugs.webkit.org/show_bug.cgi?id=145762
1490
1491         Reviewed by Geoffrey Garen.
1492         
1493         JetStream has some latency tests that are meant to measure jitter.  Prior to this change, they
1494         did this by computing the RMS.  But the RMS is a pretty bad metric.  The thing that it rewards
1495         isn't really the thing that you'd want your browser to do.  These RMS-based tests involve taking
1496         the geomean of the RMS of some samples and the sample average.  The lower the geomean, the better
1497         (in the JetStream harness we then invert the scores so that higher is better, but let's ignore
1498         that for this discussion and assume that lower is better).  Here's an example of how this can go
1499         bad.  A browser that always computes a task in some horribly long time (say, 1000ms) but never
1500         varies that time will perform better than a browser that usually computes the task super quickly
1501         (say, 10ms) and sometimes just a little bit less quickly (say, 15ms).  The former browser will
1502         have an RMS of 0 and an average of 1000.  The latter will have a RMS somewhere around 3.5 and an
1503         average of 12.5 (assuming equal probability of 10ms and 15ms).  The geomean of (0, 1000) is 0.
1504         The geomean of (3.5, 12.5) is 6.6.  Lower is better, so the former browser scores higher - even
1505         though it's obviously never better to have a browser always complete a task in 1000ms when a
1506         different browser can do it in 15ms in the worst case.
1507
1508         JetStream should not have this pathology.  The right way of avoiding it is to replace RMS with
1509         some other metric of how bad things get.  A good metric is the average of the worst percentile.
1510         The worst 1% or the worst 5% would be good things to average.  This will catch cases where the VM
1511         jittered due to JIT or GC, but it never have the pathology that we end up giving the better score
1512         to a VM whose best case is worst than another VM's worst case.
1513         
1514         For now, this change uses the highest samples above the 95% percentile. I'm not yet sure if that
1515         is the best thing - it might include too many scores that are around the best-case performance -
1516         but it's certainly better than RMS and it might be good enough to keep. But because of that
1517         uncertainty, I'm setting the version to be "1.1-alpha1" to indicate that we aren't ready to
1518         release this yet.
1519
1520         * JetStream/Octane2/base.js:
1521         (.this.Setup.setup.setup):
1522         (.this.TearDown.tearDown.tearDown):
1523         (BenchmarkSuite.GeometricMeanTime):
1524         (BenchmarkSuite.AverageAbovePercentile):
1525         (BenchmarkSuite.GeometricMeanLatency):
1526         (BenchmarkSuite.prototype.NotifyStep):
1527         (BenchmarkSuite.prototype.RunSingleBenchmark):
1528         * JetStream/Octane2/mandreel.js:
1529         (setupMandreel):
1530         (updateMandreelStats):
1531         (startMandreelTimer):
1532         (latencyMandreel):
1533         (tearDownMandreel):
1534         (RMSMandreel): Deleted.
1535         * JetStream/Octane2/splay.js:
1536         (GenerateKey):
1537         (SplayUpdateStats):
1538         (InsertNewNode):
1539         (SplayTearDown):
1540         (SplayRMS): Deleted.
1541         * JetStream/create.rb:
1542
1543 2015-06-03  Zalan Bujtas  <zalan@apple.com>
1544
1545         Skip Dromaeo/jslib-modify-prototype.html for now.
1546
1547         Unreviewed gardening.
1548
1549         * Skipped:
1550
1551 2015-05-04  Filip Pizlo  <fpizlo@apple.com>
1552
1553         Large array shouldn't be slow
1554         https://bugs.webkit.org/show_bug.cgi?id=144617
1555
1556         Reviewed by Geoffrey Garen.
1557         
1558         Add the hash-map benchmark to LongSpider. LongSpider was already not a perfect match of
1559         SunSpider. It's not an official benchmark. It contains benchmarks that are relatively
1560         long-running. So, hash-map sort of belongs here.
1561
1562         * LongSpider/hash-map.js: Added.
1563         (HashMap):
1564         (HashMap.):
1565         (.get var):
1566
1567 2015-05-01  Dewei Zhu  <dewei_zhu@apple.com>
1568
1569         Fix typo bug in Speedometer/resources/main.js
1570         https://bugs.webkit.org/show_bug.cgi?id=144504
1571
1572         Reviewed by Ryosuke Niwa. 
1573
1574         * Speedometer/resources/main.js: Fix typo.
1575         (window.benchmarkClient.totalTimeInDisplayUnit):
1576
1577 2015-04-21  Ryosuke Niwa  <rniwa@webkit.org>
1578
1579         Add JetStream to PerformanceTests
1580         https://bugs.webkit.org/show_bug.cgi?id=144024
1581
1582         Rubber-stamped by Filip Pizlo.
1583
1584         * JetStream: Added.
1585         * JetStream/JetStream-Logo.png: Added.
1586         * JetStream/JetStream-Logo@2x.png: Added.
1587         * JetStream/JetStream.css: Added.
1588         * JetStream/JetStreamDriver.js: Added.
1589         * JetStream/LICENSE.txt: Added.
1590         * JetStream/LLVM-test-suite-LICENSE.txt: Added.
1591         * JetStream/Octane: Added.
1592         * JetStream/Octane/base.js: Added.
1593         * JetStream/Octane/code-load.js: Added.
1594         * JetStream/Octane2: Added.
1595         * JetStream/Octane2/base.js: Added.
1596         * JetStream/Octane2/box2d.js: Added.
1597         * JetStream/Octane2/code-load.js: Added.
1598         * JetStream/Octane2/crypto.js: Added.
1599         * JetStream/Octane2/deltablue.js: Added.
1600         * JetStream/Octane2/earley-boyer.js: Added.
1601         * JetStream/Octane2/gbemu-part1.js: Added.
1602         * JetStream/Octane2/gbemu-part2.js: Added.
1603         * JetStream/Octane2/mandreel.js: Added.
1604         * JetStream/Octane2/navier-stokes.js: Added.
1605         * JetStream/Octane2/pdfjs.js: Added.
1606         * JetStream/Octane2/raytrace.js: Added.
1607         * JetStream/Octane2/regexp.js: Added.
1608         * JetStream/Octane2/richards.js: Added.
1609         * JetStream/Octane2/run.js: Added.
1610         * JetStream/Octane2/splay.js: Added.
1611         * JetStream/Octane2/typescript-compiler.js: Added.
1612         * JetStream/Octane2/typescript-input.js: Added.
1613         * JetStream/Octane2/typescript.js: Added.
1614         * JetStream/Octane2/zlib-data.js: Added.
1615         * JetStream/Octane2/zlib.js: Added.
1616         * JetStream/Octane2Setup.js: Added.
1617         * JetStream/OctaneSetup.js: Added.
1618         * JetStream/README: Added.
1619         * JetStream/Reference.js: Added.
1620         * JetStream/SimpleSetup.js: Added.
1621         * JetStream/SunSpiderSetup.js: Added.
1622         * JetStream/Swoosh.png: Added.
1623         * JetStream/Swoosh@2x.png: Added.
1624         * JetStream/TestingSetup.js: Added.
1625         * JetStream/create.rb: Added.
1626         * JetStream/docs: Added.
1627         * JetStream/docs/JetStreamBlogPost.html: Added.
1628         * JetStream/in-depth-TEMPLATE.html: Added.
1629         * JetStream/index-TEMPLATE.html: Added.
1630         * JetStream/simple: Added.
1631         * JetStream/simple/bigfib.cpp: Added.
1632         * JetStream/simple/bigfib.cpp.js: Added.
1633         * JetStream/simple/container.cpp: Added.
1634         * JetStream/simple/container.cpp.js: Added.
1635         * JetStream/simple/dry.c: Added.
1636         * JetStream/simple/dry.c.js: Added.
1637         * JetStream/simple/float-mm.c: Added.
1638         * JetStream/simple/float-mm.c.js: Added.
1639         * JetStream/simple/gcc-loops.cpp: Added.
1640         * JetStream/simple/gcc-loops.cpp.js: Added.
1641         * JetStream/simple/hash-map.js: Added.
1642         * JetStream/simple/n-body.c: Added.
1643         * JetStream/simple/n-body.c.js: Added.
1644         * JetStream/simple/quicksort.c: Added.
1645         * JetStream/simple/quicksort.c.js: Added.
1646         * JetStream/simple/towers.c: Added.
1647         * JetStream/simple/towers.c.js: Added.
1648         * JetStream/sunspider: Added.
1649         * JetStream/sunspider/3d-cube.js: Added.
1650         * JetStream/sunspider/3d-raytrace.js: Added.
1651         * JetStream/sunspider/base64.js: Added.
1652         * JetStream/sunspider/cordic.js: Added.
1653         * JetStream/sunspider/crypto-aes.js: Added.
1654         * JetStream/sunspider/crypto-md5.js: Added.
1655         * JetStream/sunspider/crypto-sha1.js: Added.
1656         * JetStream/sunspider/date-format-tofte.js: Added.
1657         * JetStream/sunspider/date-format-xparb.js: Added.
1658         * JetStream/sunspider/n-body.js: Added.
1659         * JetStream/sunspider/regex-dna.js: Added.
1660         * JetStream/sunspider/tagcloud.js: Added.
1661
1662 2015-04-14  Said Abou-Hallawa  <sabouhallawa@apple.com>
1663
1664         textPath layout performance improvement.
1665         https://bugs.webkit.org/show_bug.cgi?id=141570.
1666
1667         Reviewed by Darin Adler.
1668
1669         Cut down the time spent in traversing the path for text by 50%. Instead
1670         of traversing the path twice at a certain length: one time for the position
1671         and the second time for the angle, we can merge these two passes into one.
1672
1673         * SVG/TextOnPathSimple.html: Added.
1674         * SVG/resources/TextOnPathSimple.svg: Added.
1675
1676 2015-04-13  Zalan Bujtas  <zalan@apple.com>
1677
1678         Clear up the test content when test is done.
1679
1680         Unreviewed fix.
1681
1682         * Layout/simple-line-layout-innertext.html:
1683
1684 2015-04-09  Zalan Bujtas  <zalan@apple.com>
1685
1686         Simple line layout(regression): Calling innerText on RenderFlow with multiple children is slow.
1687         https://bugs.webkit.org/show_bug.cgi?id=143554
1688
1689         Reviewed by Antti Koivisto.
1690
1691         Initialize render flow's segments only when the render flow changes in TextIterator.
1692         The included performance test shows 6x speedup. (from ~10 runs/sec to ~60 runs/sec)
1693
1694         * Layout/simple-line-layout-innertext.html: Added.
1695
1696 2015-03-09  Chris Dumez  <cdumez@apple.com>
1697
1698         [CG] Have Canvas use the IOSurfacePool
1699         https://bugs.webkit.org/show_bug.cgi?id=142417
1700         <rdar://problem/20044440>
1701
1702         Reviewed by Darin Adler.
1703
1704         Lower the number of different canvas sizes from 1000 to 100 so that
1705         the test does not require such a huge cache size. With 100, we now
1706         get over 90% cache hit rate with the default IOSurfacePool size.
1707
1708         * Canvas/reuse.html:
1709
1710 2015-01-28  Said Abou-Hallawa  <sabouhallawa@apple.com>
1711
1712         Poor performance on IE's Chalkboard benchmark.
1713         https://bugs.webkit.org/show_bug.cgi?id=140753.
1714
1715         Reviewed by Zalan Bujtas.
1716
1717         * SVG/UnderTheSeeBenchmark.html: Added
1718         * SVG/WorldcupBenchmark.html: Added.
1719         * SVG/resources/RenderAnimator.css: Added.
1720         * SVG/resources/RenderAnimator.js: Added.
1721         These are benchmarks for the SVG rendering. Mainly we want to measure how fast
1722         the SVG rendering will be when only a small part of it is drawn.
1723         
1724 2015-01-21  Geoffrey Garen  <ggaren@apple.com>
1725
1726         bmalloc: support aligned allocation
1727         https://bugs.webkit.org/show_bug.cgi?id=140732
1728
1729         Reviewed by Andreas Kling.
1730
1731         * MallocBench/MallocBench.xcodeproj/project.pbxproj:
1732         * MallocBench/MallocBench/Benchmark.cpp:
1733         * MallocBench/MallocBench/memalign.cpp:
1734         (test):
1735         (benchmark_memalign): Added a test for specific interesting memalign values.
1736
1737         * MallocBench/MallocBench/stress_aligned.cpp: Added.
1738         (benchmark_stress_aligned):
1739         * MallocBench/MallocBench/stress_aligned.h: Added. Added a stress test
1740         for arbitrary memalign values.
1741
1742 2015-01-16  Geoffrey Garen  <ggaren@apple.com>
1743
1744         bmalloc: added the tiniest bit of testing for aligned allocation
1745         https://bugs.webkit.org/show_bug.cgi?id=140573
1746
1747         Reviewed by Andreas Kling.
1748
1749         Just good enoug to catch two bugs in a preliminary implementation.
1750
1751         * MallocBench/MallocBench.xcodeproj/project.pbxproj:
1752         * MallocBench/MallocBench/Benchmark.cpp:
1753         * MallocBench/MallocBench/mbmalloc.cpp:
1754         * MallocBench/MallocBench/mbmalloc.h:
1755         * MallocBench/MallocBench/memalign.cpp: Added.
1756         (benchmark_memalign):
1757         * MallocBench/MallocBench/memalign.h: Added.
1758
1759 2014-12-09  Myles C. Maxfield  <mmaxfield@apple.com>
1760
1761         Add performance test related to font fallback
1762         https://bugs.webkit.org/show_bug.cgi?id=139332
1763
1764         Reviewed by Simon Fraser.
1765
1766         * Layout/font-fallback.html: Added.
1767         * Layout/resources/font-fallback.html: Added.
1768
1769 2014-12-08  Dean Jackson  <dino@apple.com>
1770
1771         [Apple] Use Accelerate framework to speed-up FEGaussianBlur
1772         https://bugs.webkit.org/show_bug.cgi?id=139310
1773
1774         Reviewed by Simon Fraser.
1775
1776         Add an interactive performance test that measures the speed of a set
1777         of blur operations on a generated images.
1778
1779         * Interactive/blur-filter-timing.html: Added.
1780
1781 2014-11-13  Zalan Bujtas  <zalan@apple.com>
1782
1783         Simple line layout: Add performance test case to measure line layout speed of monolithic text content.
1784         https://bugs.webkit.org/show_bug.cgi?id=138699
1785
1786         Reviewed by Antti Koivisto.
1787
1788         * Layout/line-layout-long-long-text.html: Added.
1789
1790 2014-10-22  Zalan Bujtas  <zalan@apple.com>
1791
1792         Speed up line parsing for simple line layout (part I)
1793         https://bugs.webkit.org/show_bug.cgi?id=137275
1794
1795         Reviewed by Antti Koivisto.
1796
1797         Extend simple line layout performance test with a few more cases.
1798         Now we've got:
1799         <div center
1800         <div right
1801         <div justify
1802         <div white-space: pre (new)
1803         <div overflow-wrap: break-word (new)
1804         <pre
1805         <pre white-space: pre-wrap
1806         <pre white-space: pre-line (new)
1807         <pre white-space: nowrap (new)
1808         <pre white-space: pre-wrap overflow-wrap: break-word
1809         <div + embedded <span etc.
1810         <div + br
1811
1812         * Layout/line-layout-simple.html:
1813
1814 2014-10-15  Andrei Bucur  <abucur@adobe.com>
1815
1816         [Multicol] Start adding performance tests for the multi-column implementation
1817         https://bugs.webkit.org/show_bug.cgi?id=137687
1818
1819         Reviewed by Mihnea Ovidenie.
1820
1821         This patch creates a Multicol folder inside the Layout performance tests suite. It adds only two tests
1822         as described below.
1823
1824         The tests are skipped until the implementation stabilizes.
1825
1826         * Layout/Multicol/MulticolManyColumns.html: Added.
1827         This test verifies the performance of the multi-column implementation with two nested multi-column
1828         containers, the first having 20 columns and the second 10 columns.
1829
1830         * Layout/Multicol/MulticolNested.html: Added.
1831         This test verifies the performance of nesting multi-column containers in the presence
1832         of floats.
1833
1834         * Layout/Multicol/resources/multicol-content-many-columns.html: Added.
1835         * Layout/Multicol/resources/multicol-content-nested.html: Added.
1836         * Skipped: Skip the Multicol folder for now.
1837
1838 2014-09-29  Filip Pizlo  <fpizlo@apple.com>
1839
1840         It should be fun and easy to run every possible JavaScript benchmark from the command line
1841         https://bugs.webkit.org/show_bug.cgi?id=137245
1842
1843         Reviewed by Oliver Hunt.
1844         
1845         This adds the scaffolding for running Octane version 2 inside run-jsc-benchmarks.
1846         In the future we should just land Octane2 in this directory, and run-jsc-benchmarks
1847         should be changed to point directly at this directory instead of requiring the
1848         Octane path to be configured as part of the configuration file.
1849
1850         * Octane: Added.
1851         * Octane/wrappers: Added.
1852         * Octane/wrappers/jsc-box2d.js: Added.
1853         (jscSetUp):
1854         (jscTearDown):
1855         (jscRun):
1856         * Octane/wrappers/jsc-boyer.js: Added.
1857         (jscSetUp):
1858         (jscTearDown):
1859         (jscRun):
1860         * Octane/wrappers/jsc-closure.js: Added.
1861         (jscSetUp):
1862         (jscTearDown):
1863         (jscRun):
1864         * Octane/wrappers/jsc-decrypt.js: Added.
1865         (jscSetUp):
1866         (jscTearDown):
1867         (jscRun):
1868         * Octane/wrappers/jsc-deltablue.js: Added.
1869         (jscSetUp):
1870         (jscTearDown):
1871         (jscRun):
1872         * Octane/wrappers/jsc-earley.js: Added.
1873         (jscSetUp):
1874         (jscTearDown):
1875         (jscRun):
1876         * Octane/wrappers/jsc-encrypt.js: Added.
1877         (jscSetUp):
1878         (jscTearDown):
1879         (jscRun):
1880         * Octane/wrappers/jsc-gbemu.js: Added.
1881         (jscSetUp):
1882         (jscTearDown):
1883         (jscRun):
1884         * Octane/wrappers/jsc-jquery.js: Added.
1885         (jscSetUp):
1886         (jscTearDown):
1887         (jscRun):
1888         * Octane/wrappers/jsc-mandreel.js: Added.
1889         (jscSetUp):
1890         (jscTearDown):
1891         (jscRun):
1892         * Octane/wrappers/jsc-navier-stokes.js: Added.
1893         (jscSetUp):
1894         (jscTearDown):
1895         (jscRun):
1896         * Octane/wrappers/jsc-pdfjs.js: Added.
1897         (jscSetUp.PdfJS_window.console.log):
1898         (jscSetUp):
1899         (jscTearDown):
1900         (jscRun):
1901         * Octane/wrappers/jsc-raytrace.js: Added.
1902         (jscSetUp):
1903         (jscTearDown):
1904         (jscRun):
1905         * Octane/wrappers/jsc-regexp.js: Added.
1906         (jscSetUp):
1907         (jscTearDown):
1908         (jscRun):
1909         * Octane/wrappers/jsc-richards.js: Added.
1910         (jscSetUp):
1911         (jscTearDown):
1912         (jscRun):
1913         * Octane/wrappers/jsc-splay.js: Added.
1914         (jscSetUp):
1915         (jscTearDown):
1916         (jscRun):
1917         * Octane/wrappers/jsc-typescript.js: Added.
1918         (jscSetUp):
1919         (jscTearDown):
1920         (jscRun):
1921         * Octane/wrappers/jsc-zlib.js: Added.
1922         (jscSetUp):
1923         (jscTearDown):
1924         (jscRun):
1925
1926 2014-09-28  Sungmann Cho  <sungmann.cho@navercorp.com>
1927
1928         Fix some minor typos: psuedo -> pseudo
1929         https://bugs.webkit.org/show_bug.cgi?id=137192
1930
1931         Reviewed by Alexey Proskuryakov.
1932
1933         * Speedometer/resources/todomvc/architecture-examples/emberjs/bower_components/handlebars/handlebars.js:
1934
1935 2014-09-11  Geoffrey Garen  <ggaren@apple.com>
1936
1937         Some MallocBench refinements
1938         https://bugs.webkit.org/show_bug.cgi?id=136750
1939
1940         Reviewed by Sam Weinig.
1941
1942         * MallocBench/MallocBench/Interpreter.cpp:
1943         (Interpreter::run): Allow for null entries in the object list so that
1944         we can test in modes that exclude large or small allocations.
1945
1946         * MallocBench/MallocBench/churn.cpp:
1947         (benchmark_churn):
1948         * MallocBench/MallocBench/flickr.cpp:
1949         (benchmark_flickr):
1950         * MallocBench/MallocBench/fragment.cpp:
1951         (benchmark_fragment_iterate):
1952         * MallocBench/MallocBench/list.cpp:
1953         (benchmark_list_allocate):
1954         * MallocBench/MallocBench/reddit.cpp:
1955         (benchmark_reddit): Updated test runtimes to weight them more equally,
1956         for the sake of arithmetic mean.
1957
1958         * MallocBench/MallocBench/stress.cpp:
1959         (Object::Object):
1960         (allocate):
1961         (deallocate):
1962         (benchmark_stress): Verify the contents of memory as we go. Also,
1963         force scavenging each time through the loop to test the scavenging path.
1964
1965         * MallocBench/MallocBench/theverge.cpp:
1966         (benchmark_theverge):
1967         * MallocBench/MallocBench/tree.cpp:
1968         (benchmark_tree_churn): Re-weighted, as above.
1969
1970 2014-09-08  Myles C. Maxfield  <mmaxfield@apple.com>
1971
1972         PerformanceTests/SVG/SVG-Text.html has unparsable output
1973         https://bugs.webkit.org/show_bug.cgi?id=136648
1974
1975         Reviewed by Gavin Barraclough.
1976
1977         I need to clean up the arbitrary text on the page before telling
1978         the test runner infrastructure that the test is complete.
1979
1980         * SVG/SVG-Text.html:
1981
1982 2014-09-05  Myles C. Maxfield  <mmaxfield@apple.com>
1983
1984         Laying out a TextRun using an SVG font is O(n^2)
1985         https://bugs.webkit.org/show_bug.cgi?id=136584
1986
1987         Reviewed by Andreas Kling.
1988
1989         Time how long it takes to lay out and render some text using an SVG font.
1990
1991         * SVG/SVG-Text.html: Added.
1992         * SVG/resources/graffiti.svg: Added.
1993
1994 2014-09-02  Geoffrey Garen  <ggaren@apple.com>
1995
1996         MallocBench should have a stress test for correctness
1997         https://bugs.webkit.org/show_bug.cgi?id=136468
1998
1999         Reviewed by Andreas Kling.
2000
2001         Added a stress test that allocates randomized sizes of randomized
2002         lifetimes in randomized order.
2003
2004         This version of the test reproduces the EWS crash seen in bmalloc
2005         (<https://bugs.webkit.org/show_bug.cgi?id=132629>).
2006
2007         * MallocBench/MallocBench.xcodeproj/project.pbxproj:
2008         * MallocBench/MallocBench/Benchmark.cpp: Sort!
2009         * MallocBench/MallocBench/stress.cpp: Added.
2010         (Object::Object):
2011         (SizeStream::SizeStream):
2012         (SizeStream::next):
2013         (benchmark_stress): Usually, we random(0). Surprisingly, though, only
2014         random(1) reproduces the bug I was looking for.
2015         * MallocBench/MallocBench/stress.h: Added.
2016
2017 2014-06-02  Ryosuke Niwa  <rniwa@webkit.org>
2018
2019         Rename DoYouEvenBench 0.17 to Speedometer 1.0 and add a new look.
2020         https://bugs.webkit.org/show_bug.cgi?id=133455
2021
2022         Reviewed by Timothy Hatcher.
2023
2024         * Speedometer/: Renamed from DoYouEvenBench.
2025         * Skipped: Updated the path for InteractiveRunner.html
2026
2027 2014-06-02  Ryosuke Niwa  <rniwa@webkit.org>
2028
2029         Rename DoYouEvenBench 0.17 to Speedometer 1.0 and add a new look.
2030         https://bugs.webkit.org/show_bug.cgi?id=133455
2031
2032         Reviewed by Timothy Hatcher.
2033
2034         Renamed the benchmark to Speedometer and added the new look designed by Timothy Hatcher.
2035
2036         Also changed the unit of measurements from milliseconds to runs-per-minute averaged over the number
2037         of the benchmark suites (7 for 1.0). You can divide 420000 by the old benchmark score (in milliseconds)
2038         to get the new value for the set of tests that are enabled by default in 1.0. You can continue to see
2039         results in milliseconds on Full.html#ms.
2040
2041         * DoYouEvenBench/Full.html: Added a bunch of sections and the description of the benchmark.
2042
2043         * DoYouEvenBench/resources/benchmark-report.js: Remove the newly added content when ran inside a DRT or
2044         WTR so that run-perf-tests wouldn't error.
2045         * DoYouEvenBench/resources/benchmark-runner.js:
2046         (BenchmarkRunner.prototype._appendFrame): Call a newly added willAddTestFrame callback when it exists.
2047
2048         * DoYouEvenBench/resources/gauge.png: Added.
2049         * DoYouEvenBench/resources/gauge@2x.png: Added.
2050         * DoYouEvenBench/resources/logo.png: Added.
2051         * DoYouEvenBench/resources/logo@2x.png: Added.
2052         * DoYouEvenBench/resources/main.css: Replaced the style.
2053
2054         * DoYouEvenBench/resources/main.js:
2055         (window.benchmarkClient.willAddTestFrame): Place the iframe right where #testContainer is shown.
2056         (window.benchmarkClient.willRunTest): Show the name of the suite (e.g. EmberJS-TodoMVC) to run next.
2057         (window.benchmarkClient.didRunSuites):
2058         (window.benchmarkClient.willStartFirstIteration): Initialize _timeValues and _finishedTestCount now that
2059         we have an UI to run the benchmark multiple times without reloading the page.
2060         (window.benchmarkClient.didFinishLastIteration): Split into smaller pieces.
2061         (window.benchmarkClient._computeResults): Computes the mean and the statistics for the given time values,
2062         and also format them in a human readable form.
2063         (window.benchmarkClient._computeResults.totalTimeInDisplayUnit): Converts ms to runs/min.
2064         (window.benchmarkClient._computeResults.sigFigFromPercentDelta): Given a percentage error (e.g. 1%),
2065         returns the number of significant digits required for the mean.
2066         (window.benchmarkClient._computeResults.toSigFigPrecision): Calls toPrecision with the specified precision
2067         constrained to be at least the number of non-decimal digits and at most 6.
2068         (window.benchmarkClient._addDetailedResultsRow): Renamed from _addResult. It now takes the table to which
2069         to add a row and the iteration number.
2070         (window.benchmarkClient._updateGaugeNeedle): Added. Controls the angle of the speed indicator.
2071         (window.benchmarkClient._populateDetailedResults): Added.
2072         (window.benchmarkClient.prepareUI): Added. It adds an event listener to show a specified section when
2073         the push state of the document changes, and shows a warning sign when the view port size is too small.
2074         We do this inside a callback to avoid running it inside DRT / WTR.
2075         (startBenchmark):
2076         (showSection): Added.
2077         (startTest): Added.
2078         (showResultsSummary): Added.
2079         (showResultDetails): Added.
2080         (showAbout): Added.
2081
2082 2014-06-01  Ryosuke Niwa  <rniwa@webkit.org>
2083
2084         DYEBench: Move test states into benchmarkClient and remove the closure
2085         https://bugs.webkit.org/show_bug.cgi?id=133438
2086
2087         Reviewed by Benjamin Poulain.
2088
2089         Moved all local variables in the closure wrapping benchmarkClient onto the object itself
2090         and removed the closure to improve the readability of the code.
2091
2092         * DoYouEvenBench/Full.html:
2093         * DoYouEvenBench/resources/main.js:
2094         (window.benchmarkClient.willRunTest):
2095         (window.benchmarkClient.didRunTest):
2096         (window.benchmarkClient.didRunSuites):
2097         (window.benchmarkClient.willStartFirstIteration):
2098         (window.benchmarkClient.didFinishLastIteration):
2099         (window.benchmarkClient._addResult): Moved.
2100         (.): Deleted.
2101
2102 2014-06-01  Ryosuke Niwa  <rniwa@webkit.org>
2103
2104         DYEBench: Split stylesheets and scripts in Full.html into separate files
2105         https://bugs.webkit.org/show_bug.cgi?id=133437
2106
2107         Reviewed by Benjamin Poulain.
2108
2109         Extracted main.js and main.css.
2110
2111         Also fixed a bug in startBenchmark that disabled suites were counted towards the total number of tests.
2112
2113         * DoYouEvenBench/Full.html:
2114         * DoYouEvenBench/resources/main.css: Added.
2115         * DoYouEvenBench/resources/main.js: Added.
2116         (.addResult):
2117         (window.benchmarkClient):
2118         (startBenchmark): Renamed from startTest.
2119
2120 2014-06-01  Ryosuke Niwa  <rniwa@webkit.org>
2121
2122         DYEBench: CSS parser warning at line 106 of base.css
2123         https://bugs.webkit.org/show_bug.cgi?id=133433
2124
2125         Reviewed by Maciej Stachowiak.
2126
2127         Removed the old filter CSS property for Internet Explorer. The latest Internet Explorer supports -ms-linear-gradient
2128         on background CSS property anyways.
2129
2130         It's interesting that some of the tests only have -webkit- prefixes. Perhaps we should update those subtests.
2131
2132         * DoYouEvenBench/Full.html:
2133         * DoYouEvenBench/resources/todomvc/architecture-examples/angularjs/bower_components/todomvc-common/base.css:
2134         (#header:before):
2135         * DoYouEvenBench/resources/todomvc/architecture-examples/backbone/bower_components/todomvc-common/base.css:
2136         (#header:before):
2137         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/todomvc-common/base.css:
2138         (#header:before):
2139         * DoYouEvenBench/resources/todomvc/architecture-examples/jquery/bower_components/todomvc-common/base.css:
2140         (#header:before):
2141         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/todomvc-common/base.css:
2142         (#header:before):
2143         * DoYouEvenBench/resources/todomvc/labs/architecture-examples/react/bower_components/todomvc-common/base.css:
2144         (#header:before):
2145         * DoYouEvenBench/resources/todomvc/vanilla-examples/vanillajs/bower_components/todomvc-common/base.css:
2146         (#header:before):
2147
2148 2014-05-31  Ryosuke Niwa  <rniwa@webkit.org>
2149
2150         DYEBench: Ember.js assertion hit at line 20593
2151         https://bugs.webkit.org/show_bug.cgi?id=133431
2152
2153         Reviewed by Darin Adler.
2154
2155         The assertion was hit because ToDoMVC includes jQuery 2.1 and Ember.js 1.3.1 only recognizes jQuery 2.0.
2156         Port the assertion from Ember.js 1.5.1 to suppress the assertion.
2157
2158         We should update the entire Ember.js at some point but this would do the job for now.
2159
2160         * DoYouEvenBench/Full.html:
2161         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/ember/ember.js:
2162
2163 2014-05-31  Ryosuke Niwa  <rniwa@webkit.org>
2164
2165         DYEBench: Prevent frame flattening on iOS
2166         https://bugs.webkit.org/show_bug.cgi?id=133428
2167
2168         Reviewed by Andreas Kling.
2169
2170         Prevent frame flattening on iOS by setting scrolling=no.
2171
2172         * DoYouEvenBench/Full.html:
2173         * DoYouEvenBench/resources/benchmark-runner.js:
2174         (BenchmarkRunner.prototype._appendFrame):
2175
2176 2014-05-30  Ryosuke Niwa  <rniwa@webkit.org>
2177
2178         DYEBench spits out 404 errors for learn.json
2179         https://bugs.webkit.org/show_bug.cgi?id=133416
2180
2181         Reviewed by Oliver Hunt.
2182
2183         Add an empty learn.json file so that it won't cause a 404 error when hosted on a http server.
2184
2185         Bumped the version number to 0.12.
2186
2187         * DoYouEvenBench/Full.html:
2188         * DoYouEvenBench/resources/todomvc/learn.json:
2189
2190 2014-05-23  Geoffrey Garen  <ggaren@apple.com>
2191
2192         Performance testing, diamond-square terrain generation + canvas
2193         https://bugs.webkit.org/show_bug.cgi?id=133054
2194
2195         Reviewed by Ryosuke Niwa.
2196
2197         This test was written by Hunter Loftis. It originally appeared on his
2198         blog @ <http://www.playfuljs.com/realistic-terrain-in-130-lines/>.
2199
2200         I did a bit of editing for format and benchmark suitability.
2201
2202         * Canvas/terrain.html: Added.
2203
2204 2014-05-13  Ryosuke Niwa  <rniwa@webkit.org>
2205
2206         DYEBench should run 20 iterations in browser
2207         https://bugs.webkit.org/show_bug.cgi?id=132795
2208
2209         Reviewed by Gavin Barraclough.
2210
2211         Right now, run-perf-tests runs BYEBench 4 times with different instances of DRT/WTR to get
2212         a more stable time and account for differences in the runtime environment, particularly,
2213         ASLR (Address Space Layout Randomization).
2214
2215         While we can't account for the latter effect when the benchmark is ran inside a browser,
2216         we can at least run 20 iterations to get a more stable (but perhaps biased by ALSR) number.
2217
2218         While the sample size of 20 is statistically unsound to compute the arithmetic mean from,
2219         it's MUCH better than the current sample size of 5.
2220
2221         * DoYouEvenBench/Full.html:
2222         (benchmarkClient.iterationCount): Set the default iteration count to 20.
2223         (startTest): Use benchmarkClient.iterationCount as the iteration count.
2224         * DoYouEvenBench/resources/benchmark-report.js:
2225         (benchmarkClient.iterationCount): Continue to use the old iteration count of 5 when ran
2226         inside run-perf-tests.
2227
2228 2014-05-09  Ryosuke Niwa  <rniwa@webkit.org>
2229
2230         DYEBench should show 95th percentile right next to the mean with ±
2231         https://bugs.webkit.org/show_bug.cgi?id=132729
2232
2233         Reviewed by Darin Adler.
2234
2235         Before this patch, Full.html showed the 95th percentile delta for the arthemtic mean in a separate row
2236         but this was confusing for some people. Show it right next to mean in the same row separated by ±.
2237
2238         * DoYouEvenBench/Full.html:
2239
2240 2014-05-08  Ryosuke Niwa  <rniwa@webkit.org>
2241
2242         DYEBench should use TodoMVC to test FlightJS for consistency
2243         https://bugs.webkit.org/show_bug.cgi?id=132727
2244
2245         Reviewed by Andreas Kling.
2246
2247         Add a test suite for the FlightJS version of TodoMVC, and disable FlightJS-MailClient by default.
2248
2249         I initially intended to include a wider variety of demo apps in DYEBench
2250         but that's not happening any time soon so let us use TodoMVC for all frameworks for now.
2251
2252         We can add more demo apps in v2.
2253
2254         * DoYouEvenBench/Full.html: Increment the version to 0.10.
2255         * DoYouEvenBench/InteractiveRunner.html: Don't check disabled suites by default.
2256         * DoYouEvenBench/resources/tests.js:
2257         * DoYouEvenBench/resources/todomvc/dependency-examples: Added.
2258         * DoYouEvenBench/resources/todomvc/dependency-examples/flight: Added.
2259         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/.gitignore: Added.
2260         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/.jshintrc: Added.
2261         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app: Added.
2262         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js: Added.
2263         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/app.js: Added.
2264         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/data: Added.
2265         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/data/stats.js: Added.
2266         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/data/todos.js: Added.
2267         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/main.js: Added.
2268         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/store.js: Added.
2269         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/ui: Added.
2270         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/ui/main_selector.js: Added.
2271         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/ui/new_item.js: Added.
2272         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/ui/stats.js: Added.
2273         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/ui/todo_list.js: Added.
2274         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/ui/toggle_all.js: Added.
2275         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/ui/with_filters.js: Added.
2276         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/js/utils.js: Added.
2277         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/templates: Added.
2278         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/templates/stats.html: Added.
2279         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/app/templates/todo.html: Added.
2280         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower.json: Added.
2281         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components: Added.
2282         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/depot: Added.
2283         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/depot/depot.js: Added.
2284         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/es5-shim: Added.
2285         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/es5-shim/es5-sham.js: Added.
2286         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/es5-shim/es5-shim.js: Added.
2287         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight: Added.
2288         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib: Added.
2289         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/advice.js: Added.
2290         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/base.js: Added.
2291         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/component.js: Added.
2292         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/compose.js: Added.
2293         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/debug.js: Added.
2294         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/index.js: Added.
2295         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/logger.js: Added.
2296         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/registry.js: Added.
2297         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/flight/lib/utils.js: Added.
2298         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/jquery: Added.
2299         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/jquery/jquery.js: Added.
2300         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/requirejs: Added.
2301         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/requirejs-text: Added.
2302         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/requirejs-text/text.js: Added.
2303         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/requirejs/require.js: Added.
2304         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/todomvc-common: Added.
2305         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/todomvc-common/base.css: Added.
2306         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/todomvc-common/base.js: Added.
2307         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/bower_components/todomvc-common/bg.png: Added.
2308         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/index.html: Added.
2309         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/karma.conf.js: Added.
2310         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/package.json: Added.
2311         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/readme.md: Added.
2312         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test: Added.
2313         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/.jshintrc: Added.
2314         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/fixture: Added.
2315         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/fixture/footer.html: Added.
2316         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/fixture/new_todo.html: Added.
2317         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/fixture/toggle_all.html: Added.
2318         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/mock: Added.
2319         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/mock/datastore.js: Added.
2320         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec: Added.
2321         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec/data: Added.
2322         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec/data/stats_spec.js: Added.
2323         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec/data/todos_spec.js: Added.
2324         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec/ui: Added.
2325         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec/ui/new_item_spec.js: Added.
2326         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec/ui/stats_spec.js: Added.
2327         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/spec/ui/toggle_all_spec.js: Added.
2328         * DoYouEvenBench/resources/todomvc/dependency-examples/flight/test/test-main.js: Added.
2329
2330 2014-05-07  Manuel Rego Casasnovas  <rego@igalia.com>
2331
2332         [CSS Grid Layout] Remove runtime feature
2333         https://bugs.webkit.org/show_bug.cgi?id=132382
2334
2335         Reviewed by Benjamin Poulain.
2336
2337         Remove set of WebKitCSSGridLayoutEnabled preference.
2338
2339         * Layout/auto-grid-lots-of-data.html:
2340         * Layout/fixed-grid-lots-of-data.html:
2341
2342 2014-05-06  Radu Stavila  <stavila@adobe.com>
2343
2344         [CSSRegions] Enabled regions performance tests by default
2345         https://bugs.webkit.org/show_bug.cgi?id=128244
2346
2347         Reviewed by Andreas Kling.
2348
2349         Enabled regions performance tests.
2350
2351         * Skipped:
2352
2353 2014-04-25  Andreas Kling  <akling@apple.com>
2354
2355         Bump jQuery to same version that dromaeo.com uses.
2356
2357         Rubber-stamped by Ryosuke Niwa.
2358
2359         * Dromaeo/resources/dromaeo/web/lib/jquery-1.10.2.min.js: Added.
2360         * Dromaeo/resources/dromaeo/web/tests/cssquery-jquery.html:
2361         * Dromaeo/resources/dromaeo/web/tests/jslib-attr-jquery.html:
2362         * Dromaeo/resources/dromaeo/web/tests/jslib-event-jquery.html:
2363         * Dromaeo/resources/dromaeo/web/tests/jslib-modify-jquery.html:
2364         * Dromaeo/resources/dromaeo/web/tests/jslib-style-jquery.html:
2365         * Dromaeo/resources/dromaeo/web/tests/jslib-traverse-jquery.html:
2366
2367 2014-04-18  Geoffrey Garen  <ggaren@apple.com>
2368
2369         Added some more Membuster recordings to MallocBench
2370         https://bugs.webkit.org/show_bug.cgi?id=131862
2371
2372         Reviewed by Sam Weinig.
2373
2374         * MallocBench/MallocBench/Benchmark.cpp:
2375         (Benchmark::Benchmark):
2376         (Benchmark::run):
2377         * MallocBench/MallocBench/Benchmark.h:
2378         * MallocBench/MallocBench/CommandLine.cpp:
2379         * MallocBench/MallocBench/CommandLine.h:
2380         (CommandLine::runs): Added a --runs option, so we can specify zero runs
2381         for memory warning benchmarks. Those benchmarks want zero runs so that
2382         they can perform a single warmup, which does not free all allocated
2383         objects, and then see how far back to 0MB they can get. Running multiple
2384         times would accumulate leaks, which is not representative of the
2385         simulated scenario.
2386
2387         * MallocBench/MallocBench/Interpreter.cpp:
2388         (Interpreter::Interpreter):
2389         (Interpreter::run):
2390         * MallocBench/MallocBench/Interpreter.h: Support not deallocating all
2391         objects allocated during the recording, so we can do low memory warning
2392         memory use measurements, as above.
2393
2394         * MallocBench/MallocBench/flickr.cpp:
2395         (benchmark_flickr_memory_warning):
2396         * MallocBench/MallocBench/main.cpp:
2397         (main):
2398         * MallocBench/MallocBench/reddit.cpp:
2399         (benchmark_reddit_memory_warning):
2400         * MallocBench/MallocBench/theverge.cpp:
2401         (benchmark_theverge_memory_warning): Adopt the API above.
2402
2403         * MallocBench/run-malloc-benchmarks: I took a first pass at listing all
2404         available benchmarks here. Then I commented out the benchmarks that
2405         probably aren't reasonable to run by default.
2406
2407 2014-04-18  Geoffrey Garen  <ggaren@apple.com>
2408
2409         MallocBench: removed the --measure-heap option
2410         https://bugs.webkit.org/show_bug.cgi?id=131854
2411
2412         Reviewed by Sam Weinig.
2413
2414         As of <https://bugs.webkit.org/show_bug.cgi?id=131661>, measuring the
2415         heap is fast, so there's no reason to disable it.
2416
2417         * MallocBench/MallocBench/Benchmark.cpp:
2418         (Benchmark::Benchmark):
2419         (Benchmark::run):
2420         (Benchmark::printReport):
2421         * MallocBench/MallocBench/Benchmark.h:
2422         * MallocBench/MallocBench/CommandLine.cpp:
2423         (CommandLine::printUsage):
2424         * MallocBench/MallocBench/CommandLine.h:
2425         (CommandLine::heapSize):
2426         (CommandLine::measureHeap): Deleted.
2427         * MallocBench/MallocBench/main.cpp:
2428         (main):
2429
2430 2014-04-16  Alexandru Chiculita  <achicu@adobe.com>
2431
2432         Improve performance of the RenderLayerCompositor::OverlapMap
2433         https://bugs.webkit.org/show_bug.cgi?id=115063
2434
2435         Reviewed by Simon Fraser.
2436
2437         Testing the performance of computing the overlap of 5000 layers.
2438
2439         * Layout/layers_overlap_2d.html: Added. Using non-composited layers, to check
2440         that the performance on the non-composited path is not changing with this patch.
2441         * Layout/layers_overlap_3d.html: Added. Records the time to do the layout of 5000
2442         non-overlapping 3D layers.
2443
2444 2014-04-15  Zoltan Horvath  <zoltan@webkit.org>
2445
2446         [CSS Shapes] Linking stylesheet instead of inline style definition has ruined ShapesRegions test
2447         https://bugs.webkit.org/show_bug.cgi?id=131572
2448
2449         Reviewed by Rob Buis.
2450
2451         In r167022 I moved the common CSS selectors into RegionsShapes.css, then I linked it into the perf test
2452         files, but the measurement results dropped down from about 400ms to 10ms. I realized it's caused by the
2453         linked css rule, so I've put the selectors back into every test case, which fixes the test measurements.
2454
2455         * Layout/Shapes/resources/RegionsShapes.css: Removed.
2456         * Layout/Shapes/resources/RegionsShapesContent.html:
2457         * Layout/Shapes/resources/RegionsShapesContentNoRegionsWidth400.html:
2458         * Layout/Shapes/resources/RegionsShapesContentNoRegionsWidth600.html:
2459         * Layout/Shapes/resources/RegionsShapesContentNoRegionsWidth800.html:
2460         * Layout/Shapes/resources/RegionsShapesContentNoShapes.html:
2461
2462 2014-04-14  Geoffrey Garen  <ggaren@apple.com>
2463
2464         MallocBench should scavenge explicitly instead of waiting
2465         https://bugs.webkit.org/show_bug.cgi?id=131661
2466
2467         Reviewed by Andreas Kling.
2468
2469         * MallocBench/MallocBench.xcodeproj/project.pbxproj: Don't build mbmalloc
2470         by default because it will overwrite any other mbmalloc you're working
2471         with in the WebKitBuild directory.
2472
2473         * MallocBench/MallocBench/Benchmark.cpp:
2474         (Benchmark::run): Scavenge explicitly instead of waiting. This is faster,
2475         and it's the only way to get FastMalloc to scavenge. (That's a bug in
2476         FastMalloc, but we don't want it to interfere with broader testing.)
2477
2478         * MallocBench/MallocBench/mbmalloc.cpp:
2479         * MallocBench/MallocBench/mbmalloc.h: Added a scavenge implementation
2480         for system malloc.
2481
2482 2014-04-14  Geoffrey Garen  <ggaren@apple.com>
2483
2484         A few MallocBench record/replay fixes
2485         https://bugs.webkit.org/show_bug.cgi?id=131627
2486
2487         Reviewed by Andreas Kling.
2488
2489         * MallocBench/MallocBench/Interpreter.cpp:
2490         (Interpreter::run): Accept 0-sized allocations without asserting because
2491         WebKit does that sometimes.
2492
2493         * MallocBench/MallocBench/flickr.ops:
2494         * MallocBench/MallocBench/flickr_memory_warning.ops:
2495         * MallocBench/MallocBench/reddit.ops:
2496         * MallocBench/MallocBench/reddit_memory_warning.ops:
2497         * MallocBench/MallocBench/theverge.ops:
2498         * MallocBench/MallocBench/theverge_memory_warning.ops: Updated these
2499         recordings because a bug in the recording mechanism caused one out of
2500         every few thousand slot values to be bogus.
2501
2502 2014-04-13  Geoffrey Garen  <ggaren@apple.com>
2503
2504         Added some website recordings to MallocBench -- taken from Membuster
2505         https://bugs.webkit.org/show_bug.cgi?id=131601
2506
2507         Reviewed by Ryosuke Niwa.
2508
2509         Added flickr, reddit, and theverge -- each recorded from Membuster's
2510         cache, with and without sending Safari a low memory warning.
2511
2512         * MallocBench/MallocBench.xcodeproj/project.pbxproj:
2513         * MallocBench/MallocBench/Benchmark.cpp:
2514         * MallocBench/MallocBench/flickr.cpp: Added.
2515         (benchmark_flickr):
2516         (benchmark_flickr_memory_warning):
2517         * MallocBench/MallocBench/flickr.h: Added.
2518         * MallocBench/MallocBench/flickr.ops: Added.
2519         * MallocBench/MallocBench/flickr_memory_warning.ops: Added.
2520         * MallocBench/MallocBench/reddit.cpp: Added.
2521         (benchmark_reddit):
2522         (benchmark_reddit_memory_warning):
2523         * MallocBench/MallocBench/reddit.h: Added.
2524         * MallocBench/MallocBench/reddit.ops: Added.
2525         * MallocBench/MallocBench/reddit_memory_warning.ops: Added.
2526         * MallocBench/MallocBench/theverge.cpp: Added.
2527         (benchmark_theverge):
2528         (benchmark_theverge_memory_warning):
2529         * MallocBench/MallocBench/theverge.h: Added.
2530         * MallocBench/MallocBench/theverge.ops: Added.
2531         * MallocBench/MallocBench/theverge_memory_warning.ops: Added.
2532
2533 2014-04-13  Geoffrey Garen  <ggaren@apple.com>
2534
2535         MallocBench record/replay should support realloc
2536         https://bugs.webkit.org/show_bug.cgi?id=131598
2537
2538         Reviewed by Ryosuke Niwa.
2539
2540         * MallocBench/MallocBench.xcodeproj/project.pbxproj: Fixed some linkage
2541         issues that caused us not to fully link to system malloc in the default
2542         case. Also marked mbmalloc.dylib as required so the error message will
2543         be clearer if we mess up.
2544
2545         * MallocBench/MallocBench/Interpreter.cpp:
2546         (Interpreter::run):
2547         * MallocBench/MallocBench/Interpreter.h: Added the realloc case, and
2548         upgraded one-letter names to full words.
2549
2550 2014-04-11  Dirk Schulze  <krit@webkit.org>
2551
2552         Optimize Canvas fill and drawImage with SourceIn, DestinationIn, SourceOut, and DestinationAtop using transparencyLayer.
2553         https://bugs.webkit.org/show_bug.cgi?id=79659
2554
2555         Reviewed by Andreas Kling.
2556
2557         Add performance tests for real this time.
2558
2559         * Canvas/compositing-drawimage.html: Added.
2560         * Canvas/compositing-fillRect.html: Added.
2561
2562
2563 2014-04-11  Dirk Schulze  <krit@webkit.org>
2564
2565         Optimize Canvas fill and drawImage with SourceIn, DestinationIn, SourceOut, and DestinationAtop using transparencyLayer.
2566         https://bugs.webkit.org/show_bug.cgi?id=79659
2567
2568         Reviewed by Andreas Kling.
2569
2570         Add performance tests for fillRect() and drawImage() on composited contexts.
2571
2572         * Canvas/compositing-drawimage.html: Added.
2573         * Canvas/compositing-fillRect.html: Added.
2574
2575 2014-04-09  Zoltan Horvath  <zoltan@webkit.org>
2576
2577         [CSS Shapes] Add no shapes version of RegionsShapes performance test
2578         https://bugs.webkit.org/show_bug.cgi?id=131455
2579         
2580         Reviewed by Ryosuke Niwa.
2581
2582         This is a no shapes version of the RegionsShapes performance test. All the content
2583         will wrap around the floating containers. This way we can compare the runtime/memory
2584         usage of the RegionsShapes test with/without shapes. The test is skipped by default.
2585
2586         * Layout/Shapes/RegionsShapesNoShapes.html: Added.
2587         * Layout/Shapes/resources/RegionsShapesContentNoShapes.html: Added.
2588
2589 2014-04-09  Zoltan Horvath  <zoltan@webkit.org>
2590
2591         [CSS Shapes] Add no regions version of RegionsShapes performance test
2592         https://bugs.webkit.org/show_bug.cgi?id=131442
2593
2594         Reviewed by Ryosuke Niwa.
2595
2596         We would like have a no regions version for RegionsShapes performance test. The new
2597         test produces similar layout to RegionsShapes.html without using regions. It is helpful
2598         for us to do further comparisons when necessary. This test is skipped by default.
2599
2600         * Layout/Shapes/RegionsShapesNoRegions.html: Added.
2601         * Layout/Shapes/resources/RegionsShapes.css: Added.
2602         (html, body):
2603         (.shape):
2604         (#circleShape):
2605         (#imageShape):
2606         (#insetShape):
2607         (#roundedInsetShape):
2608         (#triangleLeft):
2609         (#triangleRight):
2610         (#selfIntersectingStar):
2611         (#region1):
2612         (#region2):
2613         (#region3):
2614         * Layout/Shapes/resources/RegionsShapesContent.html:
2615         * Layout/Shapes/resources/RegionsShapesContentNoRegionsWidth400.html: Added.
2616         * Layout/Shapes/resources/RegionsShapesContentNoRegionsWidth600.html: Added.
2617         * Layout/Shapes/resources/RegionsShapesContentNoRegionsWidth800.html: Added.
2618
2619 2014-04-02  Geoffrey Garen  <ggaren@apple.com>
2620
2621         Unreviewed.
2622
2623         Try to ignore some Xcode shmutz in MallocBench.
2624
2625         * MallocBench/MallocBench.xcodeproj: Added property svn:ignore.
2626
2627 2014-04-02  Geoffrey Garen  <ggaren@apple.com>
2628
2629         Let's benchmark malloc
2630         https://bugs.webkit.org/show_bug.cgi?id=131118
2631
2632         Reviewed by Mark Hahnenberg.
2633
2634         I want to replace fastMalloc with something faster (fasterMalloc?).
2635         I wrote these benchmarks to test / drive development.
2636
2637         * MallocBench: Added.
2638         * MallocBench/MallocBench: Added.
2639         * MallocBench/MallocBench.xcodeproj: Added.
2640         * MallocBench/MallocBench.xcodeproj/project.pbxproj: Added.
2641         * MallocBench/MallocBench/Benchmark.cpp: Added.
2642         (allocateHeap):
2643         (deallocateHeap):
2644         (Benchmark::Benchmark):
2645         (Benchmark::printBenchmarks):
2646         (Benchmark::runOnce):
2647         (Benchmark::run):
2648         (Benchmark::printReport):
2649         (Benchmark::currentTimeMS):
2650         (Benchmark::currentMemoryBytes):
2651         * MallocBench/MallocBench/Benchmark.h: Added.
2652         (Benchmark::Memory::Memory):
2653         (Benchmark::Memory::operator-):
2654         (Benchmark::isValid):
2655         * MallocBench/MallocBench/CPUCount.cpp: Added.
2656         (cpuCount):
2657         * MallocBench/MallocBench/CPUCount.h: Added.
2658         * MallocBench/MallocBench/CommandLine.cpp: Added.
2659         (CommandLine::printUsage):
2660         * MallocBench/MallocBench/CommandLine.h: Added.
2661         (CommandLine::isValid):
2662         (CommandLine::benchmarkName):
2663         (CommandLine::isParallel):
2664         (CommandLine::heapSize):
2665         (CommandLine::measureHeap):
2666         * MallocBench/MallocBench/Interpreter.cpp: Added.
2667         (Interpreter::Interpreter):
2668         (Interpreter::~Interpreter):
2669         (Interpreter::run):
2670         * MallocBench/MallocBench/Interpreter.h: Added.
2671         * MallocBench/MallocBench/balloon.cpp: Added.
2672         (benchmark_balloon):
2673         * MallocBench/MallocBench/balloon.h: Added.
2674         * MallocBench/MallocBench/big.cpp: Added.
2675         (benchmark_big):
2676         * MallocBench/MallocBench/big.h: Added.
2677         * MallocBench/MallocBench/churn.cpp: Added.
2678         (HeapDouble::operator new):
2679         (HeapDouble::operator delete):
2680         (HeapDouble::HeapDouble):
2681         (HeapDouble::operator+=):
2682         (benchmark_churn):
2683         * MallocBench/MallocBench/churn.h: Added.
2684         * MallocBench/MallocBench/crash.ops: Added.
2685         * MallocBench/MallocBench/facebook.cpp: Added.
2686         (benchmark_facebook):
2687         * MallocBench/MallocBench/facebook.h: Added.
2688         * MallocBench/MallocBench/facebook.ops: Added.
2689         * MallocBench/MallocBench/fragment.cpp: Added.
2690         (validate):
2691         (benchmark_fragment):
2692         (benchmark_fragment_iterate):
2693         * MallocBench/MallocBench/fragment.h: Added.
2694         * MallocBench/MallocBench/list.cpp: Added.
2695         (benchmark_list_allocate):
2696         (benchmark_list_traverse):
2697         * MallocBench/MallocBench/list.h: Added.
2698         * MallocBench/MallocBench/main.cpp: Added.
2699         (main):
2700         * MallocBench/MallocBench/mbmalloc.cpp: Added.
2701         * MallocBench/MallocBench/mbmalloc.h: Added.
2702         * MallocBench/MallocBench/medium.cpp: Added.
2703         (benchmark_medium):
2704         * MallocBench/MallocBench/medium.h: Added.
2705         * MallocBench/MallocBench/message.cpp: Added.
2706         (benchmark_message_one):
2707         (benchmark_message_many):
2708         * MallocBench/MallocBench/message.h: Added.
2709         * MallocBench/MallocBench/realloc.cpp: Added.
2710         (benchmark_realloc):
2711         * MallocBench/MallocBench/realloc.h: Added.
2712         * MallocBench/MallocBench/tree.cpp: Added.
2713         (benchmark_tree_allocate):
2714         (benchmark_tree_traverse):
2715         (benchmark_tree_churn):
2716         * MallocBench/MallocBench/tree.h: Added.
2717         * MallocBench/run-malloc-benchmarks: Added.
2718
2719 2014-03-29  Mark Lam  <mark.lam@apple.com>
2720
2721         LongSpider 3d-morph result check is inappropriate.
2722         <https://webkit.org/b/130928>
2723
2724         Reviewed by Filip Pizlo.
2725
2726         The LongSpider 3d-morph component expected result check is incorrect.
2727         The existing test checks if the leading digit of a sum starts with "-1".
2728         However, it turned out that the expected sum is in the order of
2729         -1.8735013540549517e-16 (i.e. very close to 0).  With small errors in
2730         the terms of the sum adding up, it is very easy for the resultant sum 
2731         to fluctuate.  There is no guarantee that the resultant sum's most
2732         significant digit will start with -1 either.
2733
2734         The fix is to do a tolerance check on all the terms of the sum as well
2735         as the total sum value instead.  The tolerance should be more lenient
2736         for the sum which accumulates error from the individual terms, then for
2737         individual terms.
2738
2739         * LongSpider/3d-morph.js:
2740         (expect):
2741
2742 2014-03-28  Zoltan Horvath  <zoltan@webkit.org>
2743
2744         [CSS Shapes] Add performance tests for Shapes with Regions
2745         https://bugs.webkit.org/show_bug.cgi?id=129624
2746
2747         Reviewed by Ryosuke Niwa.
2748
2749         This tests introduces a real-life like page, which contains different types of shapes within
2750         shape-outsides. The content flows through regions, which use media queries. The performance test
2751         loads the actual Shapes-Regions test case into iframes with different page sizes (thus the layout
2752         triggers the media queries as well), and measures its load time.
2753
2754         * Layout/RegionsShapes.html: Added.
2755         * Layout/Shapes/resources/RegionsShapesContent.html: Added.
2756
2757 2014-03-20  Zoltan Horvath  <zoltan@webkit.org>
2758
2759         Add option for hiding Confidence Interval Delta on the performance tests results page
2760         https://bugs.webkit.org/show_bug.cgi?id=130483
2761
2762         Reviewed by Ryosuke Niwa.
2763
2764         I've found it useful to hide the confidence interval delta from the results table
2765         sometimes, for example on copying data, or for a clearer look. This patch introduces
2766         a new button for it on the local results page.
2767
2768         * resources/results-template.html:
2769
2770 2014-03-20  Laszlo Vidacs  <lvidacs.u-szeged@partner.samsung.com>
2771
2772         Optimize RenderTable::colToEffCol() for tables without colspans
2773         https://bugs.webkit.org/show_bug.cgi?id=129298
2774
2775         Reviewed by Simon Fraser.
2776
2777         Create an alternative fast path to RenderTable colToEffCol() and effColToCol()
2778         when there is no colspan or colspan does not exceed the width of table.
2779         Blink merge https://codereview.chromium.org/154243002 by rhogan
2780
2781         * Layout/large-table-with-collapsed-borders-and-colspans-wider-than-table.html: Added.
2782         * Layout/large-table-with-collapsed-borders-and-colspans.html: Added.
2783         * Layout/large-table-with-collapsed-borders-and-no-colspans.html: Added.
2784         * Layout/resources/large-table-with-collapsed-borders.css: Added.
2785         * Layout/resources/large-table-with-collapsed-borders.js: Added.
2786
2787 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
2788
2789         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
2790         https://bugs.webkit.org/show_bug.cgi?id=130276
2791         <rdar://problem/16266927>
2792
2793         Reviewed by Simon Fraser.
2794
2795         * Dromaeo/resources/dromaeo/web/tests/sunspider-3d-raytrace.html:
2796         * Dromaeo/resources/dromaeo/web/tests/sunspider-bitops-bitwise-and.html:
2797         * Dromaeo/resources/dromaeo/web/tests/sunspider-math-cordic.html:
2798         * Dromaeo/resources/dromaeo/web/tests/sunspider-string-tagcloud.html:
2799         * LongSpider/3d-morph.js:
2800         * LongSpider/3d-raytrace.js:
2801         * LongSpider/math-cordic.js:
2802         * LongSpider/string-tagcloud.js:
2803         * Parser/resources/html5-8266.html:
2804         * Parser/resources/html5.html:
2805
2806 2014-03-10  Zoltan Horvath  <zoltan@webkit.org>
2807
2808         [CSS Shapes] Add performance tests for SVG shape with shape-margin
2809         https://bugs.webkit.org/show_bug.cgi?id=129930
2810
2811         Reviewed by Ryosuke Niwa.
2812
2813         The test is skipped by default.
2814
2815         * Layout/Shapes/ShapeOutsideSVGWithMargin.html: Added.
2816         * Layout/Shapes/resources/shape.svg: Added.
2817
2818 2014-02-19  Zoltan Horvath  <zoltan@webkit.org>
2819
2820         [CSS Shapes] Add performance test for stacked floats with shape-outsides
2821         https://bugs.webkit.org/show_bug.cgi?id=128821
2822
2823         Reviewed by Brent Fulgham.
2824
2825         This tests generate stacked floats content with shape-outsides.
2826         The test is skipped by default.
2827
2828         * Layout/Shapes/ShapeOutsideStackedPolygons.html: Added.
2829
2830 2014-02-15  Zoltan Horvath  <zoltan@webkit.org>
2831
2832         [CSS Shapes] Add performance test for raster shape with shape-margin
2833         https://bugs.webkit.org/show_bug.cgi?id=128770
2834
2835         Reviewed by Ryosuke Niwa.
2836
2837         This patch introduces a new performance test for image valued shapes,
2838         where shape-margin is applied on the shape.
2839         The test is skipped by default.
2840
2841         * Layout/Shapes/ShapeOutsideRasterWithMargin.html: Added.
2842
2843 2014-02-14  Ryosuke Niwa  <rniwa@webkit.org>
2844
2845         Improve the appearance of DYEBench
2846         https://bugs.webkit.org/show_bug.cgi?id=128866
2847
2848         Reviewed by Antti Koivisto.
2849
2850         Add a div that shows progress during the test. Also show 95th percentile,
2851         and use a table instead of pre to show results.
2852
2853         * DoYouEvenBench/Full.html:
2854         (.addResult): Added. Shows results in a table.
2855         (benchmarkClient.willRunTest): Added to show the progress bar.
2856         (benchmarkClient.didRunTest):
2857         (benchmarkClient.didRunSuites):
2858         (benchmarkClient.didFinishLastIteration): Compute 95th percentile using Statistics.js
2859
2860         * DoYouEvenBench/resources/benchmark-runner.js:
2861         (BenchmarkRunner.prototype._appendFrame): Fix the bug where marginLeft and marginTop
2862         weren't correctly parsed. We were treating top as left and bottom as top somehow.
2863         (BenchmarkRunner.prototype._runTestAndRecordResults): Fixed a typo.
2864
2865 2014-02-13  Zoltan Horvath  <zoltan@webkit.org>
2866
2867         [CSS Shapes] Add performance test for complex polygon with shape-margin
2868         https://bugs.webkit.org/show_bug.cgi?id=128769
2869
2870         Reviewed by Ryosuke Niwa.
2871
2872         This patch modifies the logic of createShapeOutsideTest to accept multiple
2873         CSS properties from the test. The patch adds performance test for complex
2874         polygon shape (self intersecting at multiple places) case, moreover we
2875         apply shape-margin on the polygon also.
2876
2877         * Layout/Shapes/ShapeOutsideContentBox.html:
2878         * Layout/Shapes/ShapeOutsideInset.html:
2879         * Layout/Shapes/ShapeOutsidePolygonWithMargin.html: Added.
2880         * Layout/Shapes/ShapeOutsideRaster.html:
2881         * Layout/Shapes/ShapeOutsideSimplePolygon.html:
2882         * Layout/Shapes/resources/shapes.js:
2883
2884 2014-02-13  Zoltan Horvath  <zoltan@webkit.org>
2885
2886         [CSS Shapes] Add performance test for raster shape
2887         https://bugs.webkit.org/show_bug.cgi?id=128746
2888
2889         Reviewed by Ryosuke Niwa.
2890
2891         This patch adds performance testing for image valued shape-outside.
2892         The test is skipped by default for now.
2893
2894         * Layout/Shapes/ShapeOutsideRaster.html: Added.
2895         * Layout/Shapes/resources/shape.gif: Added.
2896
2897 2014-02-10  Zoltan Horvath  <zoltan@webkit.org>
2898
2899         [CSS Shapes] Add initial performance tests for polygon shape 
2900         https://bugs.webkit.org/show_bug.cgi?id=128554
2901
2902         Reviewed by Ryosuke Niwa.
2903
2904         This patch adds performance testing for simple polygon shape-outside.
2905         The Shapes performance tests directory is skipped by default.
2906
2907         * Layout/Shapes/ShapeOutsideSimplePolygon.html: Added.
2908
2909 2014-02-07  Zoltan Horvath  <zoltan@webkit.org>
2910
2911         [CSS Shapes] Add initial performance tests for inset shape
2912         https://bugs.webkit.org/show_bug.cgi?id=128378
2913
2914         Reviewed by Ryosuke Niwa.
2915
2916         * Layout/Shapes/ShapeOutsideContentBox.html: Move js to shapes.js.
2917         * Layout/Shapes/ShapeOutsideInset.html: Added.
2918         * Layout/Shapes/resources/shapes.js: Added.
2919         (.):
2920
2921 2014-02-04  Ryosuke Niwa  <rniwa@webkit.org>
2922
2923         Undelete the "build" directory erroneously removed in r163427.
2924
2925         * DoYouEvenBench/resources/todomvc/labs/architecture-examples/react/bower_components/director/build:
2926
2927 2014-02-04  Ryosuke Niwa  <rniwa@webkit.org>
2928
2929         Revert the change made in r162216 as it broke the benchmark on shipping Safari.
2930
2931         * DoYouEvenBench/resources/benchmark-runner.js:
2932
2933 2014-02-04  Ryosuke Niwa  <rniwa@webkit.org>
2934
2935         DoYouEvenBench: Update Ember.js test case
2936         https://bugs.webkit.org/show_bug.cgi?id=128227
2937
2938         Reviewed by Benjamin Poulain.
2939
2940         Updated the Ember.js TodoMVC implementation.
2941
2942         * DoYouEvenBench/resources/tests.js:
2943         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower.json:
2944         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/ember-data/ember-data.js: Added.
2945         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/ember-localstorage-adapter/localstorage_adapter.js:
2946         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/ember/ember.js:
2947         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/handlebars/handlebars.js:
2948         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/jquery/jquery.js:
2949         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/todomvc-common/base.css:
2950         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/bower_components/todomvc-common/base.js:
2951         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/index.html:
2952         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/app.js:
2953         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/controllers/todo_controller.js:
2954         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/controllers/todos_controller.js:
2955         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/helpers/pluralize.js: Added.
2956         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/libs/ember-data.js: Removed.
2957         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/models/store.js: Removed.
2958         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/models/todo.js:
2959         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/router.js:
2960         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/views/edit_todo_view.js:
2961         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/js/views/todos_view.js: Added.
2962         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/readme.md:
2963         * DoYouEvenBench/resources/todomvc/architecture-examples/emberjs/test.html:
2964
2965 2014-02-04  Zoltan Horvath  <zoltan@webkit.org>
2966
2967         [CSS Shapes] Add initial performance test for shape-outside: content-box
2968         https://bugs.webkit.org/show_bug.cgi?id=128190
2969
2970         Reviewed by Ryosuke Niwa.
2971
2972         I've introduced Shapes subdirectory in Layout, every CSS Shapes related performance tests should
2973         go there in the future. The initial performance tests uses 'shape-outside: content-box' in order
2974         to tests the code paths of the Shapes implementation. I also introduced shapes.js, which allows us
2975         to easily add new, simple performance tests for shape-outside.
2976
2977         The entire progress is tracked under #128188 meta bug.
2978
2979         * Layout/Shapes/ShapeOutsideContentBox.html: Added.
2980         * Layout/Shapes/resources/shapes.css: Added.
2981         * Layout/Shapes/resources/shapes.js: Added.
2982         * Skipped: We skip running the tests by default for now.
2983
2984 2014-01-17  Manuel Rego Casasnovas  <rego@igalia.com>
2985
2986         [CSS Regions] Minor fixes in regions performance tests
2987         https://bugs.webkit.org/show_bug.cgi?id=127041
2988
2989         Reviewed by Ryosuke Niwa.
2990
2991         Fix minor issues in CSS Regions performance tests.
2992
2993         * Layout/RegionsAuto.html: Change type to lower case.
2994         * Layout/RegionsAutoMaxHeight.html: Ditto.
2995         * Layout/RegionsFixed.html: Ditto.
2996         * Layout/RegionsFixedShort.html: Ditto.
2997         * Layout/RegionsSelection.html: Ditto. Move test methods from regions.js.
2998         * Layout/resources/regions.js: Remove moved methods.
2999
3000 2014-01-17  Ryosuke Niwa  <rniwa@webkit.org>
3001
3002         Host DoYouEvenBench on webkit.org
3003         https://bugs.webkit.org/show_bug.cgi?id=127185
3004
3005         Reviewed by Benjamin Poulain.
3006
3007         Compute the resources directory relative to the benchmark-runner's location
3008         so that we can load tests even if the runner HTML was located elsewhere.
3009
3010         * DoYouEvenBench/Full.html:
3011         * DoYouEvenBench/resources/benchmark-runner.js:
3012         (BenchmarkState._containingDirectory):
3013
3014 2014-01-17  Ryosuke Niwa  <rniwa@webkit.org>
3015
3016         DoYouEvenBench: Move flightjs-example-app and todomvc into resources
3017         https://bugs.webkit.org/show_bug.cgi?id=127183
3018
3019         Rubber-stamped by Anders Carlsson.
3020
3021         * DoYouEvenBench/InteractiveRunner.html: Copied from PerformanceTests/DoYouEvenBench/benchmark.html.
3022         * DoYouEvenBench/benchmark.html: Removed.
3023         * DoYouEvenBench/flightjs-example-app: Removed.
3024         * DoYouEvenBench/flightjs-example-app/LICENSE.md: Removed.
3025         * DoYouEvenBench/flightjs-example-app/README.md: Removed.
3026         * DoYouEvenBench/flightjs-example-app/app: Removed.
3027         * DoYouEvenBench/flightjs-example-app/app/boot: Removed.
3028         * DoYouEvenBench/flightjs-example-app/app/boot/page.js: Removed.
3029         * DoYouEvenBench/flightjs-example-app/app/component_data: Removed.
3030         * DoYouEvenBench/flightjs-example-app/app/component_data/compose_box.js: Removed.
3031         * DoYouEvenBench/flightjs-example-app/app/component_data/mail_items.js: Removed.
3032         * DoYouEvenBench/flightjs-example-app/app/component_data/move_to.js: Removed.
3033         * DoYouEvenBench/flightjs-example-app/app/component_ui: Removed.
3034         * DoYouEvenBench/flightjs-example-app/app/component_ui/compose_box.js: Removed.
3035         * DoYouEvenBench/flightjs-example-app/app/component_ui/folders.js: Removed.
3036         * DoYouEvenBench/flightjs-example-app/app/component_ui/mail_controls.js: Removed.
3037         * DoYouEvenBench/flightjs-example-app/app/component_ui/mail_items.js: Removed.
3038         * DoYouEvenBench/flightjs-example-app/app/component_ui/move_to_selector.js: Removed.
3039         * DoYouEvenBench/flightjs-example-app/app/component_ui/with_select.js: Removed.
3040         * DoYouEvenBench/flightjs-example-app/app/css: Removed.
3041         * DoYouEvenBench/flightjs-example-app/app/css/custom.css: Removed.
3042         * DoYouEvenBench/flightjs-example-app/app/data.js: Removed.
3043         * DoYouEvenBench/flightjs-example-app/app/templates.js: Removed.
3044         * DoYouEvenBench/flightjs-example-app/components: Removed.
3045         * DoYouEvenBench/flightjs-example-app/components/bootstrap: Removed.
3046         * DoYouEvenBench/flightjs-example-app/components/bootstrap/css: Removed.
3047         * DoYouEvenBench/flightjs-example-app/components/bootstrap/css/bootstrap-responsive.css: Removed.
3048         * DoYouEvenBench/flightjs-example-app/components/bootstrap/css/bootstrap-responsive.min.css: Removed.
3049         * DoYouEvenBench/flightjs-example-app/components/bootstrap/css/bootstrap.css: Removed.
3050         * DoYouEvenBench/flightjs-example-app/components/bootstrap/css/bootstrap.min.css: Removed.
3051         * DoYouEvenBench/flightjs-example-app/components/bootstrap/img: Removed.
3052         * DoYouEvenBench/flightjs-example-app/components/bootstrap/img/glyphicons-halflings-white.png: Removed.
3053         * DoYouEvenBench/flightjs-example-app/components/bootstrap/img/glyphicons-halflings.png: Removed.
3054         * DoYouEvenBench/flightjs-example-app/components/bootstrap/js: Removed.
3055         * DoYouEvenBench/flightjs-example-app/components/bootstrap/js/bootstrap.js: Removed.
3056         * DoYouEvenBench/flightjs-example-app/components/bootstrap/js/bootstrap.min.js: Removed.
3057         * DoYouEvenBench/flightjs-example-app/components/es5-shim: Removed.
3058         * DoYouEvenBench/flightjs-example-app/components/es5-shim/.gitignore: Removed.
3059         * DoYouEvenBench/flightjs-example-app/components/es5-shim/CHANGES: Removed.
3060         * DoYouEvenBench/flightjs-example-app/components/es5-shim/CONTRIBUTORS.md: Removed.
3061         * DoYouEvenBench/flightjs-example-app/components/es5-shim/LICENSE: Removed.
3062         * DoYouEvenBench/flightjs-example-app/components/es5-shim/README.md: Removed.
3063         * DoYouEvenBench/flightjs-example-app/components/es5-shim/component.json: Removed.
3064         * DoYouEvenBench/flightjs-example-app/components/es5-shim/es5-sham.js: Removed.
3065         * DoYouEvenBench/flightjs-example-app/components/es5-shim/es5-sham.min.js: Removed.
3066         * DoYouEvenBench/flightjs-example-app/components/es5-shim/es5-shim.js: Removed.
3067         * DoYouEvenBench/flightjs-example-app/components/es5-shim/es5-shim.min.js: Removed.
3068         * DoYouEvenBench/flightjs-example-app/components/es5-shim/package.json: Removed.
3069         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests: Removed.
3070         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/helpers: Removed.
3071         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/helpers/h-kill.js: Removed.
3072         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/helpers/h-matchers.js: Removed.
3073         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/helpers/h.js: Removed.
3074         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/index.html: Removed.
3075         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/lib: Removed.
3076         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/lib/jasmine-html.js: Removed.
3077         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/lib/jasmine.css: Removed.
3078         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/lib/jasmine.js: Removed.
3079         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/lib/jasmine_favicon.png: Removed.
3080         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/lib/json2.js: Removed.
3081         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/spec: Removed.
3082         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/spec/s-array.js: Removed.
3083         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/spec/s-date.js: Removed.
3084         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/spec/s-function.js: Removed.
3085         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/spec/s-object.js: Removed.
3086         * DoYouEvenBench/flightjs-example-app/components/es5-shim/tests/spec/s-string.js: Removed.
3087         * DoYouEvenBench/flightjs-example-app/components/flight: Removed.
3088         * DoYouEvenBench/flightjs-example-app/components/flight/.travis.yml: Removed.
3089         * DoYouEvenBench/flightjs-example-app/components/flight/lib: Removed.
3090         * DoYouEvenBench/flightjs-example-app/components/flight/lib/advice.js: Removed.
3091         * DoYouEvenBench/flightjs-example-app/components/flight/lib/component.js: Removed.
3092         * DoYouEvenBench/flightjs-example-app/components/flight/lib/compose.js: Removed.
3093         * DoYouEvenBench/flightjs-example-app/components/flight/lib/index.js: Removed.
3094         * DoYouEvenBench/flightjs-example-app/components/flight/lib/logger.js: Removed.
3095         * DoYouEvenBench/flightjs-example-app/components/flight/lib/registry.js: Removed.
3096         * DoYouEvenBench/flightjs-example-app/components/flight/lib/utils.js: Removed.
3097         * DoYouEvenBench/flightjs-example-app/components/flight/tools: Removed.
3098         * DoYouEvenBench/flightjs-example-app/components/flight/tools/debug: Removed.
3099         * DoYouEvenBench/flightjs-example-app/components/flight/tools/debug/debug.js: Removed.
3100         * DoYouEvenBench/flightjs-example-app/components/jasmine-flight: Removed.
3101         * DoYouEvenBench/flightjs-example-app/components/jasmine-flight/LICENSE.md: Removed.
3102         * DoYouEvenBench/flightjs-example-app/components/jasmine-flight/README.md: Removed.
3103         * DoYouEvenBench/flightjs-example-app/components/jasmine-flight/bower.json: Removed.
3104         * DoYouEvenBench/flightjs-example-app/components/jasmine-flight/lib: Removed.
3105         * DoYouEvenBench/flightjs-example-app/components/jasmine-flight/lib/jasmine-flight.js: Removed.
3106         * DoYouEvenBench/flightjs-example-app/components/jasmine-jquery: Removed.
3107         * DoYouEvenBench/flightjs-example-app/components/jasmine-jquery/lib: Removed.
3108         * DoYouEvenBench/flightjs-example-app/components/jasmine-jquery/lib/jasmine-jquery.js: Removed.
3109         * DoYouEvenBench/flightjs-example-app/components/jquery: Removed.
3110         * DoYouEvenBench/flightjs-example-app/components/jquery/component.json: Removed.
3111         * DoYouEvenBench/flightjs-example-app/components/jquery/composer.json: Removed.
3112         * DoYouEvenBench/flightjs-example-app/components/jquery/jquery.js: Removed.
3113         * DoYouEvenBench/flightjs-example-app/components/jquery/jquery.min.js: Removed.
3114         * DoYouEvenBench/flightjs-example-app/components/mustache: Removed.
3115         * DoYouEvenBench/flightjs-example-app/components/mustache/mustache.js: Removed.
3116         * DoYouEvenBench/flightjs-example-app/components/requirejs: Removed.
3117         * DoYouEvenBench/flightjs-example-app/components/requirejs/require.js: Removed.
3118         * DoYouEvenBench/flightjs-example-app/index.html: Removed.
3119         * DoYouEvenBench/flightjs-example-app/karma.conf.js: Removed.
3120         * DoYouEvenBench/flightjs-example-app/package.json: Removed.
3121         * DoYouEvenBench/flightjs-example-app/requireMain.js: Removed.
3122         * DoYouEvenBench/resources/benchmark-runner.js:
3123         * DoYouEvenBench/resources/flightjs-example-app: Copied from PerformanceTests/DoYouEvenBench/flightjs-example-app.
3124         * DoYouEvenBench/resources/todomvc: Copied from PerformanceTests/DoYouEvenBench/todomvc.
3125         * DoYouEvenBench/todomvc: Removed.
3126         * DoYouEvenBench/todomvc/architecture-examples: Removed.
3127         * DoYouEvenBench/todomvc/architecture-examples/angularjs: Removed.
3128         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower.json: Removed.
3129         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components: Removed.
3130         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/angular: Removed.
3131         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/angular-mocks: Removed.
3132         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/angular-mocks/angular-mocks.js: Removed.
3133         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/angular/angular.js: Removed.
3134         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/todomvc-common: Removed.
3135         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/todomvc-common/base.css: Removed.
3136         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/todomvc-common/base.js: Removed.
3137         * DoYouEvenBench/todomvc/architecture-examples/angularjs/bower_components/todomvc-common/bg.png: Removed.
3138         * DoYouEvenBench/todomvc/architecture-examples/angularjs/index.html: Removed.
3139         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js: Removed.
3140         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/app.js: Removed.
3141         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/controllers: Removed.
3142         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/controllers/todoCtrl.js: Removed.
3143         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/directives: Removed.
3144         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/directives/todoBlur.js: Removed.
3145         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/directives/todoEscape.js: Removed.
3146         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/directives/todoFocus.js: Removed.
3147         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/services: Removed.
3148         * DoYouEvenBench/todomvc/architecture-examples/angularjs/js/services/todoStorage.js: Removed.
3149         * DoYouEvenBench/todomvc/architecture-examples/angularjs/readme.md: Removed.
3150         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test: Removed.
3151         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test/config: Removed.
3152         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test/config/testacular.conf.js: Removed.
3153         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test/package.json: Removed.
3154         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test/readme.md: Removed.
3155         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test/unit: Removed.
3156         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test/unit/directivesSpec.js: Removed.
3157         * DoYouEvenBench/todomvc/architecture-examples/angularjs/test/unit/todoCtrlSpec.js: Removed.
3158         * DoYouEvenBench/todomvc/architecture-examples/backbone: Removed.
3159         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower.json: Removed.
3160         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components: Removed.
3161         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/backbone: Removed.
3162         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/backbone.localStorage: Removed.
3163         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/backbone.localStorage/backbone.localStorage.js: Removed.
3164         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/backbone/backbone.js: Removed.
3165         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/jquery: Removed.
3166         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/jquery/jquery.js: Removed.
3167         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/todomvc-common: Removed.
3168         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/todomvc-common/base.css: Removed.
3169         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/todomvc-common/base.js: Removed.
3170         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/todomvc-common/bg.png: Removed.
3171         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/underscore: Removed.
3172         * DoYouEvenBench/todomvc/architecture-examples/backbone/bower_components/underscore/underscore.js: Removed.
3173         * DoYouEvenBench/todomvc/architecture-examples/backbone/index.html: Removed.
3174         * DoYouEvenBench/todomvc/architecture-examples/backbone/js: Removed.
3175         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/app.js: Removed.
3176         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/collections: Removed.
3177         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/collections/todos.js: Removed.
3178         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/models: Removed.
3179         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/models/todo.js: Removed.
3180         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/routers: Removed.
3181         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/routers/router.js: Removed.
3182         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/views: Removed.
3183         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/views/app-view.js: Removed.
3184         * DoYouEvenBench/todomvc/architecture-examples/backbone/js/views/todo-view.js: Removed.
3185         * DoYouEvenBench/todomvc/architecture-examples/backbone/readme.md: Removed.
3186         * DoYouEvenBench/todomvc/architecture-examples/emberjs: Removed.
3187         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower.json: Removed.
3188         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components: Removed.
3189         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/ember: Removed.
3190         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/ember-localstorage-adapter: Removed.
3191         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/ember-localstorage-adapter/localstorage_adapter.js: Removed.
3192         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/ember/ember.js: Removed.
3193         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/handlebars: Removed.
3194         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/handlebars/handlebars.js: Removed.
3195         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/jquery: Removed.
3196         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/jquery/jquery.js: Removed.
3197         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/todomvc-common: Removed.
3198         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/todomvc-common/base.css: Removed.
3199         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/todomvc-common/base.js: Removed.
3200         * DoYouEvenBench/todomvc/architecture-examples/emberjs/bower_components/todomvc-common/bg.png: Removed.
3201         * DoYouEvenBench/todomvc/architecture-examples/emberjs/index.html: Removed.
3202         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js: Removed.
3203         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/app.js: Removed.
3204         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/controllers: Removed.
3205         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/controllers/todo_controller.js: Removed.
3206         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/controllers/todos_controller.js: Removed.
3207         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/libs: Removed.
3208         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/libs/ember-data.js: Removed.
3209         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/models: Removed.
3210         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/models/store.js: Removed.
3211         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/models/todo.js: Removed.
3212         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/router.js: Removed.
3213         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/views: Removed.
3214         * DoYouEvenBench/todomvc/architecture-examples/emberjs/js/views/edit_todo_view.js: Removed.
3215         * DoYouEvenBench/todomvc/architecture-examples/emberjs/readme.md: Removed.
3216         * DoYouEvenBench/todomvc/architecture-examples/emberjs/test.html: Removed.
3217         * DoYouEvenBench/todomvc/architecture-examples/jquery: Removed.
3218         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower.json: Removed.
3219         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components: Removed.
3220         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/handlebars: Removed.
3221         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/handlebars/handlebars.js: Removed.
3222         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/jquery: Removed.
3223         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/jquery/jquery.js: Removed.
3224         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/todomvc-common: Removed.
3225         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/todomvc-common/base.css: Removed.
3226         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/todomvc-common/base.js: Removed.
3227         * DoYouEvenBench/todomvc/architecture-examples/jquery/bower_components/todomvc-common/bg.png: Removed.
3228         * DoYouEvenBench/todomvc/architecture-examples/jquery/css: Removed.
3229         * DoYouEvenBench/todomvc/architecture-examples/jquery/css/app.css: Removed.
3230         * DoYouEvenBench/todomvc/architecture-examples/jquery/index.html: Removed.
3231         * DoYouEvenBench/todomvc/architecture-examples/jquery/js: Removed.
3232         * DoYouEvenBench/todomvc/architecture-examples/jquery/js/app.js: Removed.
3233         * DoYouEvenBench/todomvc/architecture-examples/jquery/readme.md: Removed.
3234         * DoYouEvenBench/todomvc/labs: Removed.
3235         * DoYouEvenBench/todomvc/labs/architecture-examples: Removed.
3236         * DoYouEvenBench/todomvc/labs/architecture-examples/react: Removed.
3237         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower.json: Removed.
3238         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components: Removed.
3239         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/director: Removed.
3240         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/director/LICENSE: Removed.
3241         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/director/README.md: Removed.
3242         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/director/build: Removed.
3243         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/director/build/director.js: Removed.
3244         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/director/build/director.min.js: Removed.
3245         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/director/build/ender.js: Removed.
3246         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/react: Removed.
3247         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/react/JSXTransformer.js: Removed.
3248         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/react/bower.json: Removed.
3249         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/react/react.js: Removed.
3250         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/react/react.min.js: Removed.
3251         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/todomvc-common: Removed.
3252         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/todomvc-common/base.css: Removed.
3253         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/todomvc-common/base.js: Removed.
3254         * DoYouEvenBench/todomvc/labs/architecture-examples/react/bower_components/todomvc-common/bg.png: Removed.
3255         * DoYouEvenBench/todomvc/labs/architecture-examples/react/index.html: Removed.
3256         * DoYouEvenBench/todomvc/labs/architecture-examples/react/js: Removed.
3257         * DoYouEvenBench/todomvc/labs/architecture-examples/react/js/app.jsx: Removed.
3258         * DoYouEvenBench/todomvc/labs/architecture-examples/react/js/footer.jsx: Removed.
3259         * DoYouEvenBench/todomvc/labs/architecture-examples/react/js/todoItem.jsx: Removed.
3260         * DoYouEvenBench/todomvc/labs/architecture-examples/react/js/utils.jsx: Removed.
3261         * DoYouEvenBench/todomvc/labs/architecture-examples/react/readme.md: Removed.
3262         * DoYouEvenBench/todomvc/license.md: Removed.
3263         * DoYouEvenBench/todomvc/readme.md: Removed.
3264         * DoYouEvenBench/todomvc/vanilla-examples: Removed.
3265         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs: Removed.
3266         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/bower.json: Removed.
3267         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/bower_components: Removed.
3268         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/bower_components/todomvc-common: Removed.
3269         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/bower_components/todomvc-common/base.css: Removed.
3270         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js: Removed.
3271         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/bower_components/todomvc-common/bg.png: Removed.
3272         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/index.html: Removed.
3273         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/js: Removed.
3274         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/js/app.js: Removed.
3275         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/js/controller.js: Removed.
3276         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/js/helpers.js: Removed.
3277         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/js/model.js: Removed.
3278         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/js/store.js: Removed.
3279         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/js/view.js: Removed.
3280         * DoYouEvenBench/todomvc/vanilla-examples/vanillajs/readme.md: Removed.
3281         * Skipped:
3282
3283 2014-01-17  Ryosuke Niwa  <rniwa@webkit.org>
3284
3285         Build fix. Skip HTML files that are not tests.
3286
3287         * Skipped:
3288
3289 2014-01-16  Ryosuke Niwa  <rniwa@webkit.org>
3290
3291         Automate DoYouEvenBench
3292         https://bugs.webkit.org/show_bug.cgi?id=124497
3293
3294         Reviewed by Geoffrey Garen.
3295
3296         Enable DoYouEvenBench/Full.html on perf bots by default.
3297
3298         Put a space between the time and ms, and fixed a typo in runner.js so that the aggregator name will be reported.
3299
3300         * DoYouEvenBench/Full.html:
3301         * Skipped:
3302         * resources/runner.js:
3303
3304 2014-01-15  Manuel Rego Casasnovas  <rego@igalia.com>
3305
3306         [CSS Regions] Add performance tests for selection with mixed content
3307         https://bugs.webkit.org/show_bug.cgi?id=126427
3308
3309         Reviewed by Ryosuke Niwa.
3310
3311         Add new performance tests for selection in CSS Regions mixing regular
3312         content with regions. 2 new tests are added, one checking select all
3313         command and another simulating a user selection passing through all the
3314         paragraphs (similar to Layout/RegionsSelection.html).
3315
3316         Test are skipped for now while implementation of selection in CSS
3317         Regions is still evolving.
3318
3319         * Layout/RegionsExtendingSelectionMixedContent.html: Added.
3320         * Layout/RegionsSelectAllMixedContent.html: Added.
3321         * Layout/resources/regions.css:
3322         (.regular):
3323         * Layout/resources/regions.js:
3324         * Skipped:
3325
3326 2014-01-14  Ryosuke Niwa  <rniwa@webkit.org>
3327
3328         Make DoYouEvenBench runnable by run-perf-tests
3329         https://bugs.webkit.org/show_bug.cgi?id=127030
3330
3331         Reviewed by Andreas Kling.
3332
3333         Added Full.html that runs 5 iterations of DoYouEvenBench. This is the canonical DoYouEvenBench,
3334         which is also runnable by run-perf-tests.
3335
3336         * DoYouEvenBench/Full.html: Added.
3337
3338         * DoYouEvenBench/benchmark.html:
3339         (startTest): Updated the code to account for the fact old measuredValues is pushed down to tests
3340         property and we now have total property so that we don't have to manually compute the total.
3341
3342         * DoYouEvenBench/resources/benchmark-report.js: Added. When we're inside a DRT/WTR, use
3343         PerfTestRunner to output that can be parsed by run-perf-tests. Do the same when the query part
3344         or the fragment part of the current URL is "webkit" for debugging purposes.
3345
3346         * DoYouEvenBench/resources/benchmark-runner.js:
3347         (BenchmarkRunner):
3348         (BenchmarkRunner.prototype._appendFrame): Position the frame at (0, 0) inside DRT and WTR since
3349         we have exactly 800px by 600px inside those two test runners. Also always insert the iframe as
3350         the first child of body to avoid inserting it after the pre inserted by the test runner.
3351         (BenchmarkRunner.prototype.step): Initializes _measuredValues.
3352         (BenchmarkRunner.prototype.runAllSteps): Merged callNextStep in benchmark.html.
3353         (BenchmarkRunner.prototype.runMultipleIterations): Added.
3354         (BenchmarkRunner.prototype._runTestAndRecordResults): Compute the grand total among suites.
3355         Also push down the sync and async time into tests property for consistency.
3356         (BenchmarkRunner.prototype._finalize):
3357
3358         * Dromaeo/resources/dromaeorunner.js:
3359         (DRT.testObject): Renamed dromaeoIterationCount to customIterationCount as this option is also
3360         used by DoYouEvenBench.
3361
3362         * resources/runner.js: Ditto.
3363         (.finish): Spit out the aggregator name.
3364
3365 2014-01-07  Ryosuke Niwa  <rniwa@webkit.org>
3366
3367         DoYouEvenBench: Turn BenchmarkRunner into a real class
3368         https://bugs.webkit.org/show_bug.cgi?id=126613
3369
3370         Reviewed by Stephanie Lewis.
3371
3372         Made BenchmarkRunner an instantiatable class. Made tests.js simply create an array of suite objects
3373         instead of calling BenchmarkRunner.Suite now that we can have mulitple instances of BenchmarkRunner.
3374
3375         * DoYouEvenBench/benchmark.html:
3376         (formatTestName): Moved and renamed from BenchmarkRunner._testName.
3377         (createUIForSuites): Extracted from a giant blob of code.
3378         (startTest): Ditto.
3379         * DoYouEvenBench/resources/benchmark-runner.js:
3380         (BenchmarkRunner): Added.
3381         (BenchmarkRunner.prototype.waitForElement):
3382         (BenchmarkRunner.prototype._removeFrame):
3383         (BenchmarkRunner.prototype._appendFrame):
3384         (BenchmarkRunner.prototype._waitAndWarmUp):
3385         (BenchmarkRunner.prototype._runTest):
3386         (BenchmarkState.prototype.prepareCurrentSuite):
3387         (BenchmarkRunner.prototype.step):
3388         (BenchmarkRunner.prototype._runTestAndRecordResults):
3389         (BenchmarkRunner.prototype._finalize):
3390         * DoYouEvenBench/resources/tests.js:
3391
3392 2014-01-07  Ryosuke Niwa  <rniwa@webkit.org>
3393
3394         DoYouEvenBench: Extract tests and runner code from benchmark.js/html
3395         https://bugs.webkit.org/show_bug.cgi?id=126596
3396
3397         Reviewed by Stephanie Lewis.
3398         
3399         Extracted benchmark-runner.js and tests.js out of benchmark.js and benchmark.html.
3400
3401         Added a "client" interface to BenchmarkRunner so that benchmark.html could register necessary hooks to
3402         update its UI. Also made BenchmarkRunner store a tree of results so that the serialization of test names
3403         could be isolated from BenchmarkRunner itself in the future.
3404
3405         * DoYouEvenBench/benchmark.html:
3406         Moved the code to instantiate and update UI here from benchmark.js. The test code was moved out of this
3407         file into resources/tests.js.
3408
3409         * DoYouEvenBench/resources/benchmark-runner.js: Renamed from PerformanceTests/DoYouEvenBench/benchmark.js.
3410         (SimplePromise): Moved from benchmark.js
3411         (SimplePromise.prototype.then): Ditto.
3412         (SimplePromise.prototype.resolve): Ditto.
3413         (BenchmarkTestStep): Added. Wraps each test step.
3414         (BenchmarkRunner.suite): Moved from benchmark.js.
3415         (BenchmarkRunner.setClient): Added.
3416         (BenchmarkRunner.waitForElement): Moved.
3417         (BenchmarkRunner._removeFrame): Ditto.
3418         (BenchmarkRunner._appendFrame): Ditto. Set the width and the height of the iframe as they're more than
3419         presentational as they affect performance.
3420         (BenchmarkRunner._waitAndWarmUp): Ditto.
3421         (BenchmarkRunner._runTest): Ditto.
3422         (BenchmarkRunner._testName): Ditto.
3423         (BenchmarkState): Ditto.
3424         (BenchmarkState.prototype.currentSuite): Ditto.
3425         (BenchmarkState.prototype.currentTest): Ditto.
3426         (BenchmarkState.prototype.next): Ditto.
3427         (BenchmarkState.prototype.isFirstTest): Ditto.
3428         (BenchmarkState.prototype.prepareCurrentSuite): Ditto.
3429         (BenchmarkRunner.step): Ditto.
3430         (BenchmarkRunner._runTestAndRecordResults): Ditto. Note the code to update the UI has been move to
3431         benchmark.html. Also moved the code to accumulate the totals here from _finalize.
3432         (BenchmarkRunner._finalize): Moved. 
3433
3434         * DoYouEvenBench/resources/tests.js: Copied from PerformanceTests/DoYouEvenBench/benchmark.html.
3435         Uses BenchmarkTestStep instead of an array for each test step.
3436
3437 2014-01-02  Myles C. Maxfield  <mmaxfield@apple.com>
3438
3439         Allow ImageBuffer to re-use IOSurfaces
3440         https://bugs.webkit.org/show_bug.cgi?id=125477
3441
3442         Reviewed by Geoff Garen. 
3443
3444         This test times creating a variety of different sizes of canvases 
3445         once some have already been created. The second creation of the 
3446         canvases should re-use the existing IOSurfaces. 
3447         
3448         * Canvas/reuse.html: Added.
3449
3450 2013-12-23  Commit Queue  <commit-queue@webkit.org>
3451
3452         Unreviewed, rolling out r160945.
3453         http://trac.webkit.org/changeset/160945
3454         https://bugs.webkit.org/show_bug.cgi?id=126164
3455
3456         Seems to have broken multiple canvas tests (Requested by ap on
3457         #webkit).
3458
3459         * Canvas/reuse.html: Removed.
3460
3461 2013-12-09  Myles C. Maxfield  <mmaxfield@apple.com>
3462
3463         Allow ImageBuffer to re-use IOSurfaces
3464         https://bugs.webkit.org/show_bug.cgi?id=125477
3465
3466         Reviewed by Geoff Garen.
3467
3468         This test times creating a variety of different sizes of canvases
3469         once some have already been created. The second creation of the
3470         canvases should re-use the existing IOSurfaces.
3471
3472         * Canvas/reuse.html: Added.
3473
3474 2013-12-15  Ryosuke Niwa  <rniwa@webkit.org>
3475
3476         REGRESSION: 2x regression on Dromaeo DOM query tests
3477         https://bugs.webkit.org/show_bug.cgi?id=125377
3478
3479         Reviewed by Filip Pizlo.
3480
3481         Added a micro-benchmark for updating a named property on document.
3482
3483         * Bindings/update-name-getter.html: Added.
3484         * Skipped:
3485
3486 2013-12-03  Manuel Rego Casasnovas  <rego@igalia.com>
3487
3488         [CSS Regions] Fix Layout/RegionsSelection.html in Mac platform
3489         https://bugs.webkit.org/show_bug.cgi?id=124963
3490
3491         Reviewed by Ryosuke Niwa.
3492
3493         Layout/RegionsSelection.html introduced in r159488 was not working in
3494         Mac platform because of it was trying to use mouse events out of the
3495         window dimensions. Use collapse() and extend() methods from Selection
3496         object to solve the issue.
3497
3498         * Layout/resources/regions.js: Use collapse() and extend() instead of
3499         mouse events.
3500
3501 2013-11-27  Ryosuke Niwa  <rniwa@webkit.org>
3502
3503         Build fix after r159805.
3504
3505         * resources/runner.js:
3506
3507 2013-11-26  Sergio Villar Senin  <svillar@igalia.com>
3508
3509         [CSS Grid Layout] Support grid-definition-{rows|columns} repeat() syntax
3510         https://bugs.webkit.org/show_bug.cgi?id=103312
3511
3512         Reviewed by Andreas Kling.
3513
3514         Use the repeat() syntax to build the huge grids used by the
3515         performance tests.
3516
3517         * Layout/auto-grid-lots-of-data.html:
3518         * Layout/fixed-grid-lots-of-data.html:
3519
3520 2013-11-26  Ryosuke Niwa  <rniwa@webkit.org>
3521
3522         Record subtest values in Dromaeo tests
3523         https://bugs.webkit.org/show_bug.cgi?id=124498
3524
3525         Reviewed by Andreas Kling.
3526
3527         Made Dromaeo's test runner report values in DRT.progress via newly added PerfTestRunner.reportValues.
3528
3529         * Dromaeo/resources/dromaeorunner.js:
3530         (.): Moved the definition out of DRT.setup.
3531         (DRT.setup): Ditto.
3532         (DRT.testObject): Extracted from DRT.setup. Set the subtest name and continueTesting.
3533         continueTesting is set true for subtests; i.e. when name is specified.
3534         (DRT.progress): Call PerfTestRunner.reportValues to report subtest results.
3535         (DRT.teardown): Call PerfTestRunner.reportValues instead of measureValueAsync.
3536
3537         * resources/runner.js: Made various changes for newly added PerfTestRunner.reportValues.
3538         (.): Moved the initialization of completedIterations, results, jsHeapResults, and mallocHeapResults into
3539         start since they need to be initialized before running each subtest. Initialize logLines here since we
3540         need to use the same logger for all subtests.
3541         (.start): Initialize the variables mentioned above here. Also respect doNotLogStart used by reportValues.
3542         (ignoreWarmUpAndLog): Added doNotLogProgress. Used by reportValues since it reports all values at once.
3543         (finish): Compute the metric name such as FrameFrame and Runs from unit. Also don't log or notify done
3544         when continueTesting is set on the test object.
3545         (PerfTestRunner.reportValues): Added. Reports all values for the main/sub test.
3546
3547 2013-11-26  Ryosuke Niwa  <rniwa@webkit.org>
3548
3549         Remove replay performance tests as it's not actively maintained
3550         https://bugs.webkit.org/show_bug.cgi?id=124764
3551
3552         Reviewed by Andreas Kling.
3553
3554         Removed the replay performance tests. We can add them back when time comes.
3555
3556         * Replay/Chinese/chinaz.com.replay: Removed.
3557         * Replay/Chinese/www.163.com.replay: Removed.
3558         * Replay/Chinese/www.alipay.com.replay: Removed.
3559         * Replay/Chinese/www.baidu.com.replay: Removed.
3560         * Replay/Chinese/www.csdn.net.replay: Removed.
3561         * Replay/Chinese/www.douban.com.replay: Removed.
3562         * Replay/Chinese/www.hao123.com.replay: Removed.
3563         * Replay/Chinese/www.xinhuanet.com.replay: Removed.
3564         * Replay/Chinese/www.xunlei.com.replay: Removed.
3565         * Replay/Chinese/www.youku.com.replay: Removed.
3566         * Replay/English/beatonna.livejournal.com.replay: Removed.
3567         * Replay/English/cakewrecks.blogspot.com.replay: Removed.
3568         * Replay/English/chemistry.about.com.replay: Removed.
3569         * Replay/English/digg.com.replay: Removed.
3570         * Replay/English/en.wikipedia.org-rorschach_test.replay: Removed.
3571         * Replay/English/icanhascheezburger.com.replay: Removed.
3572         * Replay/English/imgur.com-gallery.replay: Removed.
3573         * Replay/English/online.wsj.com.replay: Removed.
3574         * Replay/English/stockoverflow.com-best-comment.replay: Removed.
3575         * Replay/English/www.alibaba.com.replay: Removed.
3576         * Replay/English/www.amazon.com-kindle.replay: Removed.
3577         * Replay/English/www.apple.com.replay: Removed.
3578         * Replay/English/www.cnet.com.replay: Removed.
3579         * Replay/English/www.dailymotion.com.replay: Removed.
3580         * Replay/English/www.ehow.com-prevent-fire.replay: Removed.
3581         * Replay/English/www.filestube.com-amy-adams.replay: Removed.
3582         * Replay/English/www.foxnews.replay: Removed.
3583         * Replay/English/www.huffingtonpost.com.replay: Removed.
3584         * Replay/English/www.imdb.com-twilight.replay: Removed.
3585         * Replay/English/www.mozilla.com-all-order.replay: Removed.
3586         * Replay/English/www.php.net.replay: Removed.
3587         * Replay/English/www.reddit.com.replay: Removed.
3588         * Replay/English/www.telegraph.co.uk.replay: Removed.
3589         * Replay/English/www.w3.org-htmlcss.replay: Removed.
3590         * Replay/English/www.w3schools.com-html.replay: Removed.
3591         * Replay/English/www.youtube.com-music.replay: Removed.
3592         * Replay/French/www.orange.fr.replay: Removed.
3593         * Replay/Italian/www.repubblica.it.replay: Removed.
3594         * Replay/Japanese/2ch.net-newsplus.replay: Removed.
3595         * Replay/Japanese/entameblog.seesaa.net.replay: Removed.
3596         * Replay/Japanese/ja.wikipedia.org.replay: Removed.
3597         * Replay/Japanese/www.hatena.ne.jp.replay: Removed.
3598         * Replay/Japanese/www.livedoor.com.replay: Removed.
3599         * Replay/Japanese/www.nicovideo.jp.replay: Removed.
3600         * Replay/Japanese/www.rakuten.co.jp.replay: Removed.
3601         * Replay/Japanese/www.yahoo.co.jp.replay: Removed.
3602         * Replay/Korean/www.naver.com.replay: Removed.
3603         * Replay/Persian/blogfa.com.replay: Removed.
3604         * Replay/Polish/www.wp.pl.replay: Removed.
3605         * Replay/Portuguese/www.uol.com.br.replay: Removed.
3606         * Replay/Russian/lenta.ru.replay: Removed.
3607         * Replay/Russian/vkontakte.ru-help.replay: Removed.
3608         * Replay/Russian/www.ixbt.com.replay: Removed.
3609         * Replay/Russian/www.kp.ru.replay: Removed.
3610         * Replay/Russian/www.liveinternet.ru.replay: Removed.
3611         * Replay/Russian/www.pravda.ru.replay: Removed.
3612         * Replay/Russian/www.rambler.ru.replay: Removed.
3613         * Replay/Russian/www.ucoz.ru.replay: Removed.
3614         * Replay/Russian/www.yandex.ru.replay: Removed.
3615         * Replay/Spanish/www.taringa.net.replay: Removed.
3616         * Replay/Swedish/www.flashback.se.replay: Removed.
3617         * Replay/Swedish/www.tradera.com.replay: Removed.
3618         * Replay/www.google.com.replay: Removed.
3619         * Replay/www.techcrunch.com.replay: Removed.
3620         * Replay/www.youtube.com.replay: Removed.
3621
3622 2013-11-22  Ryosuke Niwa  <rniwa@webkit.org>
3623
3624         Layout Test editing/deleting/password-delete-performance.html is failing
3625         https://bugs.webkit.org/show_bug.cgi?id=124781
3626
3627         Reviewed by Alexey Proskuryakov.
3628
3629         Add a new performance test to replace editing/deleting/password-delete-performance.html.
3630         We skip this test by default since it's a micro benchmark.
3631
3632         * Interactive/DeletingInPasswordField.html: Added.
3633         * Skipped:
3634
3635 2013-11-18  Sergio Villar Senin  <svillar@igalia.com>
3636
3637         [CSS Grid Layout] Improve content-sized track layout
3638         https://bugs.webkit.org/show_bug.cgi?id=124408
3639
3640         Reviewed by Dean Jackson.
3641
3642         From Blink r156122 by <jchaffraix@chromium.org>
3643
3644         New test to check the performance of layouting grids with content sized tracks.
3645
3646         * Layout/auto-grid-lots-of-data.html: Added.
3647
3648 2013-11-08  Sergio Villar Senin  <svillar@igalia.com>
3649
3650         [CSS Grid Layout] Run the content-sized tracks sizing algorithm only when required
3651         https://bugs.webkit.org/show_bug.cgi?id=124039
3652
3653         Reviewed by Dean Jackson.
3654
3655         From Blink r156028 and r156168 by <jchaffraix@chromium.org>.
3656
3657         New performance tests for layouts in grids with fixed size tracks.
3658
3659         * Layout/fixed-grid-lots-of-data.html: Added.
3660
3661 2013-11-19  Manuel Rego Casasnovas  <rego@igalia.com>
3662
3663         [CSS Regions] Add performance test for selection
3664         https://bugs.webkit.org/show_bug.cgi?id=119230
3665
3666         Reviewed by Ryosuke Niwa.
3667
3668         Add new performance test for selection in CSS Regions. It checks a
3669         selection from the first region to the last one, passing through all the
3670         regions.
3671
3672         Test is skipped for now while implementation of selection in CSS Regions
3673         is still evolving.
3674
3675         * Layout/RegionsSelection.html: Added.
3676         * Layout/resources/regions.js:
3677         (.):
3678         * Skipped:
3679
3680 2013-11-18  Ryosuke Niwa  <rniwa@webkit.org>
3681
3682         Simplify and reformat the output of performance tests inside test runners
3683         https://bugs.webkit.org/show_bug.cgi?id=124496
3684
3685         Reviewed by Antti Koivisto.
3686
3687         As a preparation to support subtests for Dromaeo and DoYouEvenBench, simplify the output performance tests generate.
3688         Also modernize the output to better support "metric" concept we introduced a while ago.
3689
3690         New output on Dromaeo/dom-attr looks like this:
3691         -----------------------------------------------
3692         Running 5 times
3693         getAttribute -> [1105, 1108, 1134, 1137, 1154]
3694         element.property -> [1634, 1655, 1685, 1696, 1723]
3695         setAttribute -> [646.3536463536464, 651, 651, 656.3436563436563, 658]
3696         element.property = value -> [934, 949, 963, 964, 974]
3697         element.expando = value -> [419, 419.5804195804196, 421.57842157842157, 425.57442557442556, 429]
3698         element.expando -> [501, 517, 519.4805194805194, 521.4785214785214, 525]
3699
3700             1: 117.40644785571585 runs/s
3701             2: 118.84720469666297 runs/s
3702             3: 119.80547640905021 runs/s
3703             4: 120.51886194758805 runs/s
3704             5: 121.51924380569295 runs/s
3705
3706         :Time -> [117.40644785571585, 118.84720469666297, 119.80547640905021, 120.51886194758805, 121.51924380569295] runs/s
3707             mean: 119.619446942942 runs/s
3708             median: 119.80547640905021 runs/s
3709             stdev: 1.5769040458730506 runs/s
3710             min: 117.40644785571585 runs/s
3711             max: 121.51924380569295 runs/s
3712         -----------------------------------------------
3713
3714         * Dromaeo/resources/dromaeorunner.js:
3715         (DRT.progress): Use the new format for subtest reports.
3716         * resources/runner.js:
3717         (.): Declare verboseLogging, which is set to true outside of test runners.
3718         (PerfTestRunner.logInfo): Use verboseLogging instead of directly checking window.testRunner.
3719         (PerfTestRunner.logDetail): Added. Logs informative text with a label such as "mean: 123 s" with 4-space indentation.
3720         (PerfTestRunner.logStatistics): Use logDetail.
3721         (.start): Initialize verboseLogging. Also log "Running 20 times" as an informative log using logDetail.
3722         (.ignoreWarmUpAndLog): Use logDetail for showing the progress. These logs were useless inside test runners anyway
3723         because perftest didn't get to see any output until the test finished running.
3724         (.finish): Call logStatistics with metric name as opposed to a label. Each metric name is now prefixed with ':' to be
3725         distinguishable from subtests, making the new format forward compatible.
3726
3727 2013-11-18  Ryosuke Niwa  <rniwa@webkit.org>
3728
3729         [Performance tests] Interactive/SelectAll.html throws an exception
3730         https://bugs.webkit.org/show_bug.cgi?id=124495
3731
3732         Reviewed by Antti Koivisto
3733
3734         Return a boolean indicating whether more values are needed or not in
3735         PerfTestRunner.measureValueAsync so that runTest can terminate gracefully.
3736
3737         * Interactive/SelectAll.html:
3738         (runTest): Don't schedule a timer for runTest if we've got enough values.
3739         * resources/runner.js:
3740         (PerfTestRunner.measureValueAsync): Returns true iff more values are needed.
3741
3742 2013-11-13  Antti Koivisto  <antti@apple.com>
3743
3744         This was supposed to test overflow-wrap:break-word instead of word-break:break-all.
3745
3746         Rubber-stamped by Andreas Kling.
3747
3748         * Layout/line-layout-simple.html:
3749
3750 2013-11-12  Andreas Kling  <akling@apple.com>
3751
3752         Remove body onload handler from html5-8266.html that was causing
3753         the test to sometimes finish before doing anything interesting.
3754
3755         Unskip Parser/HTML5-8266-FullRender.html now that it's stable.
3756
3757         Rubber-stamped by Antti Koivisto.
3758
3759         * Parser/resources/html5-8266.html:
3760         * Skipped:
3761
3762 2013-11-12  Andreas Kling  <akling@apple.com>
3763
3764         Neutralize external resource loads in the new HTML5 spec copy.
3765
3766         Skip Parser/HTML5-8266-FullRender.html until I can make it less flaky.
3767
3768         * Parser/resources/html5-8266.html:
3769         * Skipped:
3770
3771 2013-11-12  Andreas Kling  <akling@apple.com>
3772
3773         Import a fresh version of the full HTML5 spec for perf testing.
3774
3775         Rubber-stamped by Antti Koivisto.
3776
3777         * Parser/HTML5-8266-FullRender.html: Added.
3778         * Parser/HTML5-8266-ParseOnly.html: Added.
3779         * Parser/resources/html5-8266.html: Added.
3780
3781 2013-11-09  Antti Koivisto  <antti@apple.com>
3782
3783         Add subtest for word-break:break-all to Layout/line-layout-simple.html
3784         https://bugs.webkit.org/show_bug.cgi?id=124103
3785
3786         Reviewed by Andreas Kling.
3787
3788         * Layout/line-layout-simple.html: