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