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