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