Add ML to ARES6
[WebKit-https.git] / PerformanceTests / ChangeLog
1 2017-04-24  Saam Barati  <sbarati@apple.com>
2
3         Add ML to ARES6
4         https://bugs.webkit.org/show_bug.cgi?id=171206
5
6         Rubber stamped by Filip Pizlo.
7
8         This patch adds a new test to ARES6 called ML. ML is an implementation of
9         a feedforward neural network: https://github.com/mljs/feedforward-neural-networks.
10         It makes heavy use of classes, and does non-trivial matrix math using the
11         ml-matrix library: https://github.com/mljs/matrix
12
13         * ARES-6/about.html:
14         * ARES-6/cli.js:
15         * ARES-6/glue.js:
16         * ARES-6/index.html:
17         * ARES-6/ml: Added.
18         * ARES-6/ml/benchmark.js: Added.
19         * ARES-6/ml/index.js: Added.
20         * ARES-6/ml_benchmark.js: Added.
21
22 2017-04-21  Zalan Bujtas  <zalan@apple.com>
23
24         Simple line layout: Add performance test to measure mid-word line breaking with long text.
25         https://bugs.webkit.org/show_bug.cgi?id=171136
26
27         Reviewed by Ryosuke Niwa.
28
29         * Layout/simple-line-layout-word-break-long-text.html: Added.
30
31 2017-04-17  Ryan Haddad  <ryanhaddad@apple.com>
32
33         Unreviewed, rolling out r215366.
34
35         This test is failing on performance bots.
36
37         Reverted changeset:
38
39         "Add performance test for asking the platform for a font for
40         U+2060 WORD JOINER"
41         https://bugs.webkit.org/show_bug.cgi?id=170842
42         http://trac.webkit.org/changeset/215366
43
44 2017-04-14  Myles C. Maxfield  <mmaxfield@apple.com>
45
46         Add performance test for asking the platform for a font for U+2060 WORD JOINER
47         https://bugs.webkit.org/show_bug.cgi?id=170842
48
49         Reviewed by Tim Horton.
50
51         * Layout/word-joiner.html: Added.
52
53 2017-04-03  Saam Barati  <sbarati@apple.com>
54
55         Add a new test to ARES6
56         https://bugs.webkit.org/show_bug.cgi?id=170077
57
58         Rubber stamped by Filip Pizlo.
59
60         This patch adds a new test to ARES6. The test is called Babylon. Babylon is
61         the JavaScript parser that is part of the Babel transpiler. The test runs
62         the parser on 4 different JS scripts.
63
64         * ARES-6/Babylon: Added.
65         * ARES-6/Babylon/AUTHORS: Added.
66         * ARES-6/Babylon/air-blob.js: Added.
67         (Reg):
68         (Reg.fromReg):
69         (Reg.prototype.get index):
70         (Reg.prototype.get type):
71         (Reg.prototype.get name):
72         (Reg.prototype.get isCalleeSave):
73         (Reg.prototype.get isReg):
74         (Reg.prototype.hash):
75         (Reg.prototype.toString):
76         (Reg.extract):
77         (Reg.forEachFast):
78         (Reg.forEach):
79         (newGPR):
80         (Reg.gprs.Reg.fprs.Reg.calleeSaveGPRs.Reg.calleeSaveFPRs.Reg.calleeSaves):
81         * ARES-6/Babylon/babylon-blob.js: Added.
82         (export.default.Parser):
83         (export.default.Parser.prototype.isReservedWord):
84         (export.default.Parser.prototype.hasPlugin):
85         (export.default.Parser.prototype.extend):
86         (export.default.Parser.prototype.loadPlugins):
87         (export.default.Parser.prototype.parse):
88         * ARES-6/Babylon/basic-blob.js: Added.
89         (Basic.NumberApply):
90         (Basic.Variable):
91         (Basic.Const):
92         (Basic.NumberPow):
93         (Basic.NumberMul):
94         (Basic.NumberDiv):
95         (Basic.NumberNeg):
96         (Basic.NumberAdd):
97         (Basic.NumberSub):
98         (Basic.StringVar):
99         (Basic.Equals):
100         (Basic.NotEquals):
101         (Basic.LessThan):
102         (Basic.GreaterThan):
103         (Basic.LessEqual):
104         (Basic.GreaterEqual):
105         (Basic.GoTo):
106         (Basic.GoSub):
107         (Basic.Def):
108         (Basic.Let):
109         (Basic.If):
110         (Basic.Return):
111         (Basic.Stop):
112         (Basic.On):
113         (sideState.shouldStop):
114         (Basic.For):
115         (Basic.Next):
116         (Basic.Print):
117         (Basic.Input):
118         (Basic.Read):
119         (Basic.Restore):
120         (Basic.Dim):
121         (Basic.Randomize):
122         (Basic.End):
123         (Basic.Program):
124         * ARES-6/Babylon/benchmark.js: Added.
125         (this.performance.performance.now.currentTime):
126         (else.this.preciseTime.currentTime):
127         (else.currentTime):
128         (BabylonBenchmark.appendSource):
129         (BabylonBenchmark):
130         (BabylonBenchmark.prototype.runIteration.parse):
131         (BabylonBenchmark.prototype.runIteration.parseExpression):
132         (BabylonBenchmark.prototype.runIteration):
133         (runBenchmark):
134         * ARES-6/Babylon/index.js: Added.
135         (isIdentifierStart):
136         (isIdentifierChar):
137         (isNewLine):
138         (Position):
139         (SourceLocation):
140         (getLineInfo):
141         (TokenType):
142         (KeywordTokenType):
143         (BinopTokenType):
144         (TokContext):
145         (tt.parenR.updateContext.tt.braceR.updateContext):
146         (tt.name.updateContext):
147         (tt.braceL.updateContext):
148         (tt.dollarBraceL.updateContext):
149         (tt.parenL.updateContext):
150         (tt.incDec.updateContext):
151         (tt._function.updateContext):
152         (tt.backQuote.updateContext):
153         (State.prototype.init):
154         (State.prototype.curPosition):
155         (State.prototype.clone):
156         (State):
157         (Token):
158         (codePointToString):
159         (Tokenizer):
160         (Tokenizer.prototype.next):
161         (Tokenizer.prototype.eat):
162         (Tokenizer.prototype.match):
163         (Tokenizer.prototype.isKeyword):
164         (Tokenizer.prototype.lookahead):
165         (Tokenizer.prototype.setStrict):
166         (Tokenizer.prototype.curContext):
167         (Tokenizer.prototype.nextToken):
168         (Tokenizer.prototype.readToken):
169         (Tokenizer.prototype.fullCharCodeAtPos):
170         (Tokenizer.prototype.pushComment):
171         (Tokenizer.prototype.skipBlockComment):
172         (Tokenizer.prototype.skipLineComment):
173         (Tokenizer.prototype.skipSpace):
174         (Tokenizer.prototype.finishToken):
175         (Tokenizer.prototype.readToken_dot):
176         (Tokenizer.prototype.readToken_slash):
177         (Tokenizer.prototype.readToken_mult_modulo):
178         (Tokenizer.prototype.readToken_pipe_amp):
179         (Tokenizer.prototype.readToken_caret):
180         (Tokenizer.prototype.readToken_plus_min):
181         (Tokenizer.prototype.readToken_lt_gt):
182         (Tokenizer.prototype.readToken_eq_excl):
183         (Tokenizer.prototype.getTokenFromCode):
184         (Tokenizer.prototype.finishOp):
185         (Tokenizer.prototype.readRegexp):
186         (Tokenizer.prototype.readInt):
187         (Tokenizer.prototype.readRadixNumber):
188         (Tokenizer.prototype.readNumber):
189         (Tokenizer.prototype.readCodePoint):
190         (Tokenizer.prototype.readString):
191         (Tokenizer.prototype.readTmplToken):
192         (Tokenizer.prototype.readEscapedChar):
193         (Tokenizer.prototype.readHexChar):
194         (Tokenizer.prototype.readWord1):
195         (Tokenizer.prototype.readWord):
196         (Tokenizer.prototype.braceIsBlock):
197         (Tokenizer.prototype.updateContext):
198         (getOptions):
199         (prototype.isReservedWord):
200         (prototype.hasPlugin):
201         (prototype.extend):
202         (prototype.loadPlugins):
203         (prototype.parse):
204         (last):
205         (pp.addComment):
206         (pp.processComment):
207         (pp.checkPropClash):
208         (pp.getExpression):
209         (pp.parseExpression):
210         (pp.parseMaybeAssign):
211         (pos.set i):
212         * ARES-6/Babylon/inspector-blob.js: Added.
213         (WebInspector.ScriptSyntaxTree):
214         (WebInspector.ScriptSyntaxTree.prototype.get parsedSuccessfully):
215         (WebInspector.ScriptSyntaxTree.prototype.forEachNode):
216         (WebInspector.ScriptSyntaxTree.prototype.filter):
217         (WebInspector.ScriptSyntaxTree.prototype.containersOfOffset):
218         (WebInspector.ScriptSyntaxTree.prototype.filterByRange.filterForNodesInRange):
219         (WebInspector.ScriptSyntaxTree.prototype.filterByRange):
220         (WebInspector.ScriptSyntaxTree.prototype.containsNonEmptyReturnStatement.removeFunctionsFilter):
221         (WebInspector.ScriptSyntaxTree.prototype.containsNonEmptyReturnStatement):
222         (WebInspector.ScriptSyntaxTree.functionReturnDivot):
223         (WebInspector.ScriptSyntaxTree.prototype.updateTypes):
224         (WebInspector.ScriptSyntaxTree.prototype._gatherIdentifiersInDeclaration.gatherIdentifiers):
225         (WebInspector.ScriptSyntaxTree.prototype._gatherIdentifiersInDeclaration):
226         (WebInspector.ScriptSyntaxTree.prototype._defaultParserState):
227         (WebInspector.ScriptSyntaxTree.prototype._recurse):
228         (WebInspector.ScriptSyntaxTree.prototype._recurseArray):
229         (WebInspector.ScriptSyntaxTree.prototype._createInternalSyntaxTree):
230         * ARES-6/about.html:
231         * ARES-6/babylon_benchmark.js: Added.
232         * ARES-6/cli.js:
233         * ARES-6/glue.js:
234         * ARES-6/index.html:
235         * ARES-6/results.js:
236         (Results.prototype.reportResult):
237         (Results.prototype.reportResult.averageAbovePercentile): Deleted.
238         * ARES-6/styles.css:
239         (.test):
240         (@media only screen and (max-width: 784px)):
241
242 2017-03-29  Zalan Bujtas <zalan@apple.com>
243
244         [Arabic text] Add whitespace preserve/word wrap performance test.
245         https://bugs.webkit.org/show_bug.cgi?id=170243
246
247         Reviewed by Simon Fraser.
248
249         * Layout/ArabicLineLayout-pre-and-wrap.html: Added.
250
251 2017-03-08  Yusuke Suzuki  <utatane.tea@gmail.com>
252
253         [JSC] Add helpers to run Six Speed to run-jsc-benchmarks
254         https://bugs.webkit.org/show_bug.cgi?id=169351
255
256         Reviewed by Saam Barati.
257
258         * SixSpeed/wrappers/wrapper.js: Added.
259         (assertEqual):
260         (test):
261         (jscRun):
262
263 2017-03-08  Jon Davis  <jond@apple.com>
264
265         Fixed ARES-6 animations for other browsers
266
267         Rubber stamped by Saam Barati.
268
269         * ARES-6/styles.css:
270         (.swoop):
271         (.logo):
272
273 2017-03-07  Filip Pizlo  <fpizlo@apple.com>
274
275         Revise the ARES-6 explainer text
276         https://bugs.webkit.org/show_bug.cgi?id=169287
277
278         Reviewed by Saam Barati.
279         
280         Just did some copy-editing.
281
282         * ARES-6/about.html:
283
284 2017-03-06  Jon Davis  <jond@apple.com>
285
286         Refined the ARES-6 experience
287         https://bugs.webkit.org/show_bug.cgi?id=169205
288
289         Reviewed by Saam Barati.
290
291         * ARES-6/about.html: Copied from PerformanceTests/ARES-6/index.html.
292         * ARES-6/driver.js:
293         (Driver.prototype.start):
294         (Driver.prototype._updateIterations):
295         (Driver):
296         * ARES-6/index.html:
297         * ARES-6/stats.js:
298         (Stats.prototype.toString.span.span):
299         * ARES-6/styles.css:
300         (body):
301         (.swoop):
302         (p):
303         (.logo):
304         (.start):
305         (.test):
306         (.test:nth-child(odd)):
307         (.overall):
308         (.about h2):
309         (.button):
310         (.button:hover):
311         (.button.return:before):
312         (@keyframes fade-in):
313         (@keyframes scale-in):
314         (@keyframes flicker-in):
315         (@keyframes wipe-in):
316         (.flip): Deleted.
317         (.testing, .about): Deleted.
318         (.testing): Deleted.
319         (.about): Deleted.
320         (#about:target): Deleted.
321
322 2017-03-06  Jeremy Jones  <jeremyj@apple.com>
323
324         StandardCanPlayThrough.html does not work on iOS.
325         https://bugs.webkit.org/show_bug.cgi?id=169207
326
327         Reviewed by Jer Noble.
328
329         On iOS only, add muted=true and autoplay=allowed. The loading policy on iOS requires these attributes to load enough
330         data to trigger canPlayThrough.
331
332         * Media/StandardCanPlayThrough.html:
333
334 2017-02-13  Zalan Bujtas <zalan@apple.com>
335
336         Simple line layout: Add performance test with text-rendering: optimizeSpeed
337         https://bugs.webkit.org/show_bug.cgi?id=168248
338
339         Reviewed by Simon Fraser.
340
341         * Layout/simple-line-layout-with-varying-content-and-optimized-speed.html: Added.
342
343 2017-02-10  Zalan Bujtas  <zalan@apple.com>
344
345         Mail hangs when removing multiple rows from large table.
346         https://bugs.webkit.org/show_bug.cgi?id=168103
347         <rdar://problem/30090186>
348
349         Reviewed by Ryosuke Niwa.
350
351         * DOM/large-table-edit.html: Added.
352
353 2017-02-05  Filip Pizlo  <fpizlo@apple.com>
354
355         Beef up the ARES-6 explainer text
356         https://bugs.webkit.org/show_bug.cgi?id=167867
357
358         Reviewed by Saam Barati.
359         
360         Added appropriate links.
361
362         Added text that explains the subscores.
363
364         * ARES-6/index.html:
365
366 2017-02-06  Jer Noble  <jer.noble@apple.com>
367
368         Playback stalls when a SourceBuffer append causes frame eviction
369         https://bugs.webkit.org/show_bug.cgi?id=167834
370
371         Reviewed by Eric Carlson.
372
373         Add an in-page performance test measuring the amount of time required
374         to append a large amount of media data to a SourceBuffer, and then to
375         completely remove that data 30s at a time.
376
377         Add a microbenchmark for MediaTime which measures the amount of time
378         required to create a 1M entry std::map and traverse the map 1M times.
379
380         * Media/MSERemoveCodedFrames.html: Added.
381         * Media/media-source-loader.js:
382         (MediaSourceLoader.prototype.get duration):
383         * MediaTime/Configurations/Base.xcconfig: Added.
384         * MediaTime/Configurations/DebugRelease.xcconfig: Added.
385         * MediaTime/Makefile: Added.
386         * MediaTime/MediaTime.xcodeproj/project.pbxproj: Added.
387         * MediaTime/main.cpp: Added.
388         (performTest):
389         (test):
390         (main):
391         * Skipped:
392
393 2017-02-06  Saam Barati  <sbarati@apple.com>
394
395         Make ARES-6 work from the CLI again
396         https://bugs.webkit.org/show_bug.cgi?id=167895
397
398         Reviewed by Michael Saboff.
399
400         * ARES-6/driver.js:
401         (Driver.prototype.readyTrigger):
402         (Driver.prototype.disableTrigger):
403         * ARES-6/stats.js:
404         (Stats.prototype.toString.span.span):
405         (Stats.prototype.toString.return.span):
406         (Stats.prototype.toString):
407
408 2017-02-06  Ryan Haddad  <ryanhaddad@apple.com>
409
410         Skip ARES-6 on performance bots
411         https://bugs.webkit.org/show_bug.cgi?id=167863
412
413         Unreviewed test gardening.
414
415         ES6SampleBench was renamed to ARES-6, so this should be updated in PerformanceTests/Skipped as well.
416
417         * Skipped:
418
419 2017-02-05  Filip Pizlo  <fpizlo@apple.com>
420
421         Change ES6SampleBench into ARES-6
422         https://bugs.webkit.org/show_bug.cgi?id=167863
423
424         Rubber stamped by Saam Barati.
425         
426         This imports changes that Jonathan Davis (jond@apple.com) made to ES6SampleBench to make it look
427         super awesome. Its now called ARES-6.
428
429         * ARES-6: Copied from PerformanceTests/ES6SampleBench.
430         * ARES-6/ARES-6.svg: Added.
431         * ARES-6/driver.js:
432         (Driver):
433         (Driver.prototype.readyTrigger):
434         (Driver.prototype.disableTrigger):
435         (Driver.prototype.start):
436         (Driver.prototype._updateIterations):
437         * ARES-6/glue.js:
438         * ARES-6/index.html:
439         * ARES-6/results.js:
440         (Results.prototype.reportRunning):
441         (Results.prototype.reportDone):
442         * ARES-6/stats.js:
443         (Stats.prototype.toString.return.span):
444         (Stats.prototype.toString.span.span):
445         (Stats.prototype.toString): Deleted.
446         * ARES-6/style.css: Removed.
447         * ARES-6/styles.css: Added.
448         (html):
449         (body):
450         (header,):
451         (p a):
452         (p a:hover):
453         (.flip):
454         (header):
455         (h2,):
456         (p):
457         (.about h2):
458         (.logo):
459         (.start):
460         (.start.ready):
461         (.start.ready:hover):
462         (.start:after):
463         (.start.ready .testrun):
464         (.tests):
465         (.test):
466         (.overall h2,):
467         (.test .indicator):
468         (.test .indicator.running):
469         (@keyframes test-running):
470         (100%):
471         (.score):
472         (.score label):
473         (.score .value):
474         (.score .units):
475         (.score .margin):
476         (.overall):
477         (.overall .score):
478         (.overall .margin):
479         (.testing, .about):
480         (.testing):
481         (.about):
482         (#about:target):
483         (@media only screen and (max-width: 784px)):
484         * ARES-6/swoop.svg: Added.
485         * ES6SampleBench: Removed.
486         * ES6SampleBench/Air: Removed.
487         * ES6SampleBench/Air/README.md: Removed.
488         * ES6SampleBench/Air/airjs-tests.yaml: Removed.
489         * ES6SampleBench/Air/all.js: Removed.
490         * ES6SampleBench/Air/allocate_stack.js: Removed.
491         * ES6SampleBench/Air/arg.js: Removed.
492         * ES6SampleBench/Air/basic_block.js: Removed.
493         * ES6SampleBench/Air/benchmark.js: Removed.
494         * ES6SampleBench/Air/code.js: Removed.
495         * ES6SampleBench/Air/custom.js: Removed.
496         * ES6SampleBench/Air/frequented_block.js: Removed.
497         * ES6SampleBench/Air/insertion_set.js: Removed.
498         * ES6SampleBench/Air/inst.js: Removed.
499         * ES6SampleBench/Air/liveness.js: Removed.
500         * ES6SampleBench/Air/make_dist.sh: Removed.
501         * ES6SampleBench/Air/opcode.js: Removed.
502         * ES6SampleBench/Air/payload-airjs-ACLj8C.js: Removed.
503         * ES6SampleBench/Air/payload-gbemu-executeIteration.js: Removed.
504         * ES6SampleBench/Air/payload-imaging-gaussian-blur-gaussianBlur.js: Removed.
505         * ES6SampleBench/Air/payload-typescript-scanIdentifier.js: Removed.
506         * ES6SampleBench/Air/reg.js: Removed.
507         * ES6SampleBench/Air/stack_slot.js: Removed.
508         * ES6SampleBench/Air/stress-test.js: Removed.
509         * ES6SampleBench/Air/strip-hash.rb: Removed.
510         * ES6SampleBench/Air/symbols.js: Removed.
511         * ES6SampleBench/Air/test.html: Removed.
512         * ES6SampleBench/Air/test.js: Removed.
513         * ES6SampleBench/Air/tmp.js: Removed.
514         * ES6SampleBench/Air/tmp_base.js: Removed.
515         * ES6SampleBench/Air/util.js: Removed.
516         * ES6SampleBench/Basic: Removed.
517         * ES6SampleBench/Basic/ast.js: Removed.
518         * ES6SampleBench/Basic/basic-tests.yaml: Removed.
519         * ES6SampleBench/Basic/basic.js: Removed.
520         * ES6SampleBench/Basic/benchmark.js: Removed.
521         * ES6SampleBench/Basic/caseless_map.js: Removed.
522         * ES6SampleBench/Basic/lexer.js: Removed.
523         * ES6SampleBench/Basic/number.js: Removed.
524         * ES6SampleBench/Basic/parser.js: Removed.
525         * ES6SampleBench/Basic/random.js: Removed.
526         * ES6SampleBench/Basic/state.js: Removed.
527         * ES6SampleBench/Basic/stress-test.js: Removed.
528         * ES6SampleBench/Basic/test.html: Removed.
529         * ES6SampleBench/Basic/test.js: Removed.
530         * ES6SampleBench/Basic/util.js: Removed.
531         * ES6SampleBench/air_benchmark.js: Removed.
532         * ES6SampleBench/basic_benchmark.js: Removed.
533         * ES6SampleBench/cli.js: Removed.
534         * ES6SampleBench/driver.js: Removed.
535         * ES6SampleBench/glue.js: Removed.
536         * ES6SampleBench/index.html: Removed.
537         * ES6SampleBench/results.js: Removed.
538         * ES6SampleBench/stats.js: Removed.
539         * ES6SampleBench/style.css: Removed.
540
541 2017-02-05  Zalan Bujtas  <zalan@apple.com>
542
543         Simple line layout: Add performance test with varying string and font-size to minimize width-cache hit.
544         https://bugs.webkit.org/show_bug.cgi?id=167859
545         <rdar://problem/30368070>
546
547         Reviewed by Antti Koivisto.
548
549         This is in preparation for webkit.org/b/167843.
550
551         * Layout/simple-line-layout-with-varying-content.html: Added.
552
553 2017-01-16  Filip Pizlo  <fpizlo@apple.com>
554
555         Add framerate baselines to the splay-detail test
556         https://bugs.webkit.org/show_bug.cgi?id=167659
557
558         Reviewed by Geoffrey Garen.
559
560         * JetStream/Octane2/splay-detail.html:
561
562 2017-01-31  Carlos Alberto Lopez Perez  <clopez@igalia.com>
563
564         [EFL][GTK] Skip some IndexedDB tests that time out on the Perf bots.
565
566         Unreviewed performance test gardening.
567
568         * Skipped:
569
570 2017-01-30  Zalan Bujtas  <zalan@apple.com>
571
572         Simple line layout: Small tweaks to improve performance.
573         https://bugs.webkit.org/show_bug.cgi?id=167611
574         <rdar://problem/30274294>
575
576         Reviewed by Simon Fraser.
577
578         * Layout/simple-line-layout-non-repeating-text.html: Added.
579
580 2017-01-13  Said Abou-Hallawa  <sabouhallawa@apple.com>
581
582         26 MotionMark performance tests failing
583         https://bugs.webkit.org/show_bug.cgi?id=166854
584
585         Reviewed by Ryosuke Niwa.
586         
587         Skip running MotionMark on WebKit perf bots.
588
589         * Skipped:
590
591 2017-01-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
592
593         Rename the directory and the files of MotionMark from Animometer to MotionMark
594         https://bugs.webkit.org/show_bug.cgi?id=166659
595
596         Reviewed by Jon Lee.
597         
598         Rename the directory and the files of the benchmark to its new name.
599
600         * MotionMark/developer.html: Renamed from PerformanceTests/Animometer/developer.html.
601         * MotionMark/index.html: Renamed from PerformanceTests/Animometer/index.html.
602         * MotionMark/resources/debug-runner/d3.min.js: Renamed from PerformanceTests/Animometer/resources/debug-runner/d3.min.js.
603         * MotionMark/resources/debug-runner/graph.js: Renamed from PerformanceTests/Animometer/resources/debug-runner/graph.js.
604         * MotionMark/resources/debug-runner/motionmark.css: Renamed from PerformanceTests/Animometer/resources/debug-runner/animometer.css.
605         * MotionMark/resources/debug-runner/motionmark.js: Renamed from PerformanceTests/Animometer/resources/debug-runner/animometer.js.
606         * MotionMark/resources/debug-runner/tests.js: Renamed from PerformanceTests/Animometer/resources/debug-runner/tests.js.
607         * MotionMark/resources/extensions.js: Renamed from PerformanceTests/Animometer/resources/extensions.js.
608         * MotionMark/resources/runner/benchmark-runner.js: Renamed from PerformanceTests/Animometer/resources/runner/benchmark-runner.js.
609         * MotionMark/resources/runner/crystal.svg: Renamed from PerformanceTests/Animometer/resources/runner/crystal.svg.
610         * MotionMark/resources/runner/lines.svg: Renamed from PerformanceTests/Animometer/resources/runner/lines.svg.
611         * MotionMark/resources/runner/logo.svg: Renamed from PerformanceTests/Animometer/resources/runner/logo.svg.
612         * MotionMark/resources/runner/motionmark.css: Renamed from PerformanceTests/Animometer/resources/runner/animometer.css.
613         * MotionMark/resources/runner/motionmark.js: Renamed from PerformanceTests/Animometer/resources/runner/animometer.js.
614         * MotionMark/resources/runner/tests.js: Renamed from PerformanceTests/Animometer/resources/runner/tests.js.
615         * MotionMark/resources/statistics.js: Renamed from PerformanceTests/Animometer/resources/statistics.js.
616         * MotionMark/resources/strings.js: Renamed from PerformanceTests/Animometer/resources/strings.js.
617         * MotionMark/tests/3d/resources/webgl.js: Renamed from PerformanceTests/Animometer/tests/3d/resources/webgl.js.
618         * MotionMark/tests/3d/webgl.html: Renamed from PerformanceTests/Animometer/tests/3d/webgl.html.
619         * MotionMark/tests/bouncing-particles/bouncing-canvas-images.html: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/bouncing-canvas-images.html.
620         * MotionMark/tests/bouncing-particles/bouncing-canvas-shapes.html: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/bouncing-canvas-shapes.html.
621         * MotionMark/tests/bouncing-particles/bouncing-css-images.html: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/bouncing-css-images.html.
622         * MotionMark/tests/bouncing-particles/bouncing-css-shapes.html: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/bouncing-css-shapes.html.
623         * MotionMark/tests/bouncing-particles/bouncing-svg-images.html: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/bouncing-svg-images.html.
624         * MotionMark/tests/bouncing-particles/bouncing-svg-shapes.html: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/bouncing-svg-shapes.html.
625         * MotionMark/tests/bouncing-particles/bouncing-tagged-images.html: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/bouncing-tagged-images.html.
626         * MotionMark/tests/bouncing-particles/resources/bouncing-canvas-images.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-canvas-images.js.
627         * MotionMark/tests/bouncing-particles/resources/bouncing-canvas-particles.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-canvas-particles.js.
628         * MotionMark/tests/bouncing-particles/resources/bouncing-canvas-shapes.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-canvas-shapes.js.
629         * MotionMark/tests/bouncing-particles/resources/bouncing-css-images.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-css-images.js.
630         * MotionMark/tests/bouncing-particles/resources/bouncing-css-shapes.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-css-shapes.js.
631         * MotionMark/tests/bouncing-particles/resources/bouncing-svg-images.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-images.js.
632         * MotionMark/tests/bouncing-particles/resources/bouncing-svg-particles.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-particles.js.
633         * MotionMark/tests/bouncing-particles/resources/bouncing-svg-shapes.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-svg-shapes.js.
634         * MotionMark/tests/bouncing-particles/resources/bouncing-tagged-images.js: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-tagged-images.js.
635         * MotionMark/tests/bouncing-particles/resources/image1.jpg: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/image1.jpg.
636         * MotionMark/tests/bouncing-particles/resources/image2.jpg: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/image2.jpg.
637         * MotionMark/tests/bouncing-particles/resources/image3.jpg: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/image3.jpg.
638         * MotionMark/tests/bouncing-particles/resources/image4.jpg: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/image4.jpg.
639         * MotionMark/tests/bouncing-particles/resources/image5.jpg: Renamed from PerformanceTests/Animometer/tests/bouncing-particles/resources/image5.jpg.
640         * MotionMark/tests/dom/compositing-transforms.html: Renamed from PerformanceTests/Animometer/tests/dom/compositing-transforms.html.
641         * MotionMark/tests/dom/focus.html: Renamed from PerformanceTests/Animometer/tests/dom/focus.html.
642         * MotionMark/tests/dom/leaves.html: Renamed from PerformanceTests/Animometer/tests/dom/leaves.html.
643         * MotionMark/tests/dom/particles.html: Renamed from PerformanceTests/Animometer/tests/dom/particles.html.
644         * MotionMark/tests/dom/resources/compositing-transforms.js: Renamed from PerformanceTests/Animometer/tests/dom/resources/compositing-transforms.js.
645         * MotionMark/tests/dom/resources/dom-particles.js: Renamed from PerformanceTests/Animometer/tests/dom/resources/dom-particles.js.
646         * MotionMark/tests/dom/resources/focus.js: Renamed from PerformanceTests/Animometer/tests/dom/resources/focus.js.
647         * MotionMark/tests/dom/resources/leaves.js: Renamed from PerformanceTests/Animometer/tests/dom/resources/leaves.js.
648         * MotionMark/tests/master/canvas-stage.html: Renamed from PerformanceTests/Animometer/tests/master/canvas-stage.html.
649         * MotionMark/tests/master/focus.html: Renamed from PerformanceTests/Animometer/tests/master/focus.html.
650         * MotionMark/tests/master/image-data.html: Renamed from PerformanceTests/Animometer/tests/master/image-data.html.
651         * MotionMark/tests/master/leaves.html: Renamed from PerformanceTests/Animometer/tests/master/leaves.html.
652         * MotionMark/tests/master/multiply.html: Renamed from PerformanceTests/Animometer/tests/master/multiply.html.
653         * MotionMark/tests/master/resources/canvas-stage.js: Renamed from PerformanceTests/Animometer/tests/master/resources/canvas-stage.js.
654         * MotionMark/tests/master/resources/canvas-tests.js: Renamed from PerformanceTests/Animometer/tests/master/resources/canvas-tests.js.
655         * MotionMark/tests/master/resources/compass.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/compass.svg.
656         * MotionMark/tests/master/resources/compass100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/compass100.png.
657         * MotionMark/tests/master/resources/console.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/console.svg.
658         * MotionMark/tests/master/resources/console100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/console100.png.
659         * MotionMark/tests/master/resources/contribute.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/contribute.svg.
660         * MotionMark/tests/master/resources/contribute100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/contribute100.png.
661         * MotionMark/tests/master/resources/debugger.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/debugger.svg.
662         * MotionMark/tests/master/resources/debugger100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/debugger100.png.
663         * MotionMark/tests/master/resources/focus.js: Renamed from PerformanceTests/Animometer/tests/master/resources/focus.js.
664         * MotionMark/tests/master/resources/image-data.js: Renamed from PerformanceTests/Animometer/tests/master/resources/image-data.js.
665         * MotionMark/tests/master/resources/inspector.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/inspector.svg.
666         * MotionMark/tests/master/resources/inspector100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/inspector100.png.
667         * MotionMark/tests/master/resources/layout.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/layout.svg.
668         * MotionMark/tests/master/resources/layout100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/layout100.png.
669         * MotionMark/tests/master/resources/leaves.js: Renamed from PerformanceTests/Animometer/tests/master/resources/leaves.js.
670         * MotionMark/tests/master/resources/multiply.js: Renamed from PerformanceTests/Animometer/tests/master/resources/multiply.js.
671         * MotionMark/tests/master/resources/particles.js: Renamed from PerformanceTests/Animometer/tests/master/resources/particles.js.
672         * MotionMark/tests/master/resources/performance.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/performance.svg.
673         * MotionMark/tests/master/resources/performance100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/performance100.png.
674         * MotionMark/tests/master/resources/script.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/script.svg.
675         * MotionMark/tests/master/resources/script100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/script100.png.
676         * MotionMark/tests/master/resources/shortcuts.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/shortcuts.svg.
677         * MotionMark/tests/master/resources/shortcuts100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/shortcuts100.png.
678         * MotionMark/tests/master/resources/standards.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/standards.svg.
679         * MotionMark/tests/master/resources/standards100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/standards100.png.
680         * MotionMark/tests/master/resources/storage.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/storage.svg.
681         * MotionMark/tests/master/resources/storage100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/storage100.png.
682         * MotionMark/tests/master/resources/styles.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/styles.svg.
683         * MotionMark/tests/master/resources/styles100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/styles100.png.
684         * MotionMark/tests/master/resources/svg-particles.js: Renamed from PerformanceTests/Animometer/tests/master/resources/svg-particles.js.
685         * MotionMark/tests/master/resources/text.js: Renamed from PerformanceTests/Animometer/tests/master/resources/text.js.
686         * MotionMark/tests/master/resources/timeline.svg: Renamed from PerformanceTests/Animometer/tests/master/resources/timeline.svg.
687         * MotionMark/tests/master/resources/timeline100.png: Renamed from PerformanceTests/Animometer/tests/master/resources/timeline100.png.
688         * MotionMark/tests/master/svg-particles.html: Renamed from PerformanceTests/Animometer/tests/master/svg-particles.html.
689         * MotionMark/tests/master/text.html: Renamed from PerformanceTests/Animometer/tests/master/text.html.
690         * MotionMark/tests/resources/main.js: Renamed from PerformanceTests/Animometer/tests/resources/main.js.
691         * MotionMark/tests/resources/math.js: Renamed from PerformanceTests/Animometer/tests/resources/math.js.
692         * MotionMark/tests/resources/stage.css: Renamed from PerformanceTests/Animometer/tests/resources/stage.css.
693         * MotionMark/tests/resources/star.svg: Renamed from PerformanceTests/Animometer/tests/resources/star.svg.
694         * MotionMark/tests/resources/yin-yang.png: Renamed from PerformanceTests/Animometer/tests/resources/yin-yang.png.
695         * MotionMark/tests/resources/yin-yang.svg: Renamed from PerformanceTests/Animometer/tests/resources/yin-yang.svg.
696         * MotionMark/tests/simple/resources/simple-canvas-paths.js: Renamed from PerformanceTests/Animometer/tests/simple/resources/simple-canvas-paths.js.
697         * MotionMark/tests/simple/resources/simple-canvas.js: Renamed from PerformanceTests/Animometer/tests/simple/resources/simple-canvas.js.
698         * MotionMark/tests/simple/resources/tiled-canvas-image.js: Renamed from PerformanceTests/Animometer/tests/simple/resources/tiled-canvas-image.js.
699         * MotionMark/tests/simple/simple-canvas-paths.html: Renamed from PerformanceTests/Animometer/tests/simple/simple-canvas-paths.html.
700         * MotionMark/tests/simple/tiled-canvas-image.html: Renamed from PerformanceTests/Animometer/tests/simple/tiled-canvas-image.html.
701         * MotionMark/tests/template/resources/template-canvas.js: Renamed from PerformanceTests/Animometer/tests/template/resources/template-canvas.js.
702         * MotionMark/tests/template/resources/template-css.js: Renamed from PerformanceTests/Animometer/tests/template/resources/template-css.js.
703         * MotionMark/tests/template/resources/template-svg.js: Renamed from PerformanceTests/Animometer/tests/template/resources/template-svg.js.
704         * MotionMark/tests/template/template-canvas.html: Renamed from PerformanceTests/Animometer/tests/template/template-canvas.html.
705         * MotionMark/tests/template/template-css.html: Renamed from PerformanceTests/Animometer/tests/template/template-css.html.
706         * MotionMark/tests/template/template-svg.html: Renamed from PerformanceTests/Animometer/tests/template/template-svg.html.
707
708 2016-12-13  Brady Eidson  <beidson@apple.com>
709
710         Add a PerfTest targeting IDBObjectStore.get().
711         https://bugs.webkit.org/show_bug.cgi?id=165816
712
713         Reviewed by Alex Christensen.
714
715         * IndexedDB/objectstore-get.html: Added.
716
717 2016-12-13  Brady Eidson  <beidson@apple.com>
718
719         Add a PerfTest targeting IDBIndex.get().
720         https://bugs.webkit.org/show_bug.cgi?id=165803
721
722         Reviewed by Alex Christensen.
723
724         * IndexedDB/index-get.html: Added.
725
726 2016-12-12  Brady Eidson  <beidson@apple.com>
727
728         More IndexedDB perf tests.
729         https://bugs.webkit.org/show_bug.cgi?id=165634
730
731         Reviewed by Sam Weinig.
732
733         * IndexedDB/index-multientry.html:
734         * IndexedDB/large-number-of-inserts-responsiveness.html: Added.
735         * IndexedDB/large-number-of-inserts.html: Added.
736         * IndexedDB/objectstore-cursor.html: Added. Runtime cut in 1/4th compared to r209672.
737
738         * resources/runner.js:
739
740 2016-12-12  Commit Queue  <commit-queue@webkit.org>
741
742         Unreviewed, rolling out r209672.
743         https://bugs.webkit.org/show_bug.cgi?id=165766
744
745         IndexedDB/objectstore-cursor.html perf test always times out
746         (Requested by ap on #webkit).
747
748         Reverted changeset:
749
750         "More IndexedDB perf tests."
751         https://bugs.webkit.org/show_bug.cgi?id=165634
752         http://trac.webkit.org/changeset/209672
753
754 2016-12-10  Brady Eidson  <beidson@apple.com>
755
756         More IndexedDB perf tests.
757         https://bugs.webkit.org/show_bug.cgi?id=165634
758
759         Reviewed by Sam Weinig.
760
761         * IndexedDB/index-multientry.html:
762         * IndexedDB/large-number-of-inserts-responsiveness.html: Added.
763         * IndexedDB/large-number-of-inserts.html: Added.
764         * IndexedDB/objectstore-cursor.html: Added.
765         
766         * resources/runner.js: Add "track responsiveness" functionality to PerfTestRunner.
767
768 2016-12-06  Filip Pizlo  <fpizlo@apple.com>
769
770         Concurrent GC should be stable enough to land enabled
771         https://bugs.webkit.org/show_bug.cgi?id=164990
772
773         Reviewed by Geoffrey Garen.
774         
775         Made CDjs more configurable and refined the "large.js" configuration. I was using that one and
776         the new "long.js" configuration to tune concurrent eden GCs.
777         
778         Added a new way of running Splay in browser, which using chartjs to plot the execution times of
779         2000 iterations. This includes the minified chartjs.
780
781         * JetStream/Octane2/splay-detail.html: Added.
782         * JetStream/cdjs/benchmark.js:
783         (benchmarkImpl):
784         (benchmark):
785         * JetStream/cdjs/long.js: Added.
786
787 2016-12-07  Brady Eidson  <beidson@apple.com>
788
789         Add IDB perf tests stressing key size.
790         https://bugs.webkit.org/show_bug.cgi?id=165567
791
792         Reviewed by Alex Christensen.
793
794         * IndexedDB/large-array-keys.html: Added.
795         * IndexedDB/large-binary-keys.html: Added.
796         * IndexedDB/large-string-keys.html: Added.
797
798 2016-12-05  Brady Eidson  <beidson@apple.com>
799
800         Add an IndexedDB perf test to PerformanceTests.
801         https://bugs.webkit.org/show_bug.cgi?id=165430
802
803         Reviewed by Alex Christensen.
804
805         * IndexedDB/index-multientry.html: Added.
806
807 2016-12-02  Filip Pizlo  <fpizlo@apple.com>
808
809         ES6SampleBench should report an average for Steady State so that all of the numbers are comparable
810         https://bugs.webkit.org/show_bug.cgi?id=165325
811
812         Reviewed by Saam Barati.
813
814         This makes all of the numbers that ES6SampleBench reports comparable to each other: they all speak of the time
815         it took to run an iteration of something.
816
817         * ES6SampleBench/results.js:
818         (Results.prototype.reportResult):
819
820 2016-11-18  Jer Noble  <jer.noble@apple.com>
821
822         Add some performance tests for various aspects of media loading and playback.
823         https://bugs.webkit.org/show_bug.cgi?id=164977
824
825         Reviewed by Darin Adler.
826
827         Add new tests for a few aspects of media playback; namely: how quickly  media elements fire
828         the "canplaythrough" event when all data is immediately available, how quickly HLS playback
829         switches resolutions, and at what playback rate MSE-backed video can play without dropping
830         frames. Skip these tests by default, as they're not runnable on all ports, and they require
831         a webserver (run-webkit-httpd) to complete on macOS.
832
833         * Media/HLSCanPlayThrough.html: Added.
834         * Media/HLSGearChange.html: Added.
835         * Media/MSECanPlayThrough.html: Added.
836         * Media/MSEPlaybackRate.html: Added.
837         * Media/StandardCanPlayThrough.html: Added.
838         * Media/hls/1080p/iframe_index.m3u8: Added.
839         * Media/hls/1080p/prog_index.m3u8: Added.
840         * Media/hls/1080p/test.ts: Added.
841         * Media/hls/480p/iframe_index.m3u8: Added.
842         * Media/hls/480p/prog_index.m3u8: Added.
843         * Media/hls/480p/test.ts: Added.
844         * Media/hls/720p/iframe_index.m3u8: Added.
845         * Media/hls/720p/prog_index.m3u8: Added.
846         * Media/hls/720p/test.ts: Added.
847         * Media/hls/720p/test.ts.back: Added.
848         * Media/hls/index.m3u8: Added.
849         * Media/media-source-loader.js: Added.
850         (MediaSourceLoader):
851         (MediaSourceLoader.prototype.loadManifest):
852         (MediaSourceLoader.prototype.loadManifestSucceeded):
853         (MediaSourceLoader.prototype.loadManifestFailed):
854         (MediaSourceLoader.prototype.loadMediaData):
855         (MediaSourceLoader.prototype.loadMediaDataSucceeded):
856         (MediaSourceLoader.prototype.loadMediaDataFailed):
857         (MediaSourceLoader.prototype.get type):
858         (MediaSourceLoader.prototype.get duration):
859         (MediaSourceLoader.prototype.get initSegment):
860         (MediaSourceLoader.prototype.get mediaSegmentsLength):
861         (MediaSourceLoader.prototype.mediaSegments):
862         (MediaSourceLoader.prototype.get everyMediaSegment):
863         * Media/test-fragmented-video.json: Added.
864         * Media/test-fragmented-video.mp4: Added.
865         * Media/test.mp4: Added.
866         * Skipped:
867
868 2016-11-18  Filip Pizlo  <fpizlo@apple.com>
869
870         Concurrent GC should be able to run splay in debug mode and earley/raytrace in release mode with no perf regression
871         https://bugs.webkit.org/show_bug.cgi?id=164282
872
873         Reviewed by Geoffrey Garen and Oliver Hunt.
874         
875         CDjs is a fun benchmark for stressing concurrent GCs, but to really give the GC a good
876         workout you need to increase the amount of work that the test does. This adds a second
877         configuration of the benchmark that has more aircraft. It uses much more memory and causes us
878         to do more GCs and those GCs take longer.
879
880         * JetStream/cdjs/benchmark.js:
881         (benchmarkImpl):
882         (benchmark):
883         * JetStream/cdjs/large.js: Added.
884
885 2016-11-14  Filip Pizlo  <fpizlo@apple.com>
886
887         Unreviewed, revert unintended change.
888
889         * ES6SampleBench/Air/benchmark.js:
890
891 2016-10-03  Saam Barati  <sbarati@apple.com>
892
893         MapHash should speculate on the type of its child node
894         https://bugs.webkit.org/show_bug.cgi?id=161922
895
896         Reviewed by Filip Pizlo.
897
898         I gave the main generator a name so it's easier to see what
899         it is when using the sampling profiler.
900
901         * ES6SampleBench/Basic/ast.js:
902         (Basic.Program):
903
904 2016-09-19  Sergio Villar Senin  <svillar@igalia.com>
905
906         [css-grid] Remove the x2 computation of row sizes with indefinite heights
907         https://bugs.webkit.org/show_bug.cgi?id=162150
908
909         Reviewed by Darin Adler.
910
911         Added a new test case which checks the layout performance of grids inside other grids, i.e,
912         grids acting both as grid container and grid item.
913
914         * Layout/nested-grid.html: Added.
915
916 2016-09-09  Simon Fraser  <simon.fraser@apple.com>
917
918         Perf test Animation/css-accelerated-animation.html failing
919         https://bugs.webkit.org/show_bug.cgi?id=161795
920
921         Skip Animation/css-accelerated-animation.html since this only works as a MobileSafari
922         perf test.
923
924         * Skipped:
925
926 2016-09-08  Simon Fraser  <simon.fraser@apple.com>
927
928         Add a content-animation test with accelerated CSS animations
929         https://bugs.webkit.org/show_bug.cgi?id=161776
930
931         Reviewed by Dean Jackson.
932
933         Add a test that measures the frame rate of accelerated CSS animations.
934
935         This is like css-animation.html (which animates 'left' and 'top') but animates
936         transforms instead. In order to get animation in X and Y we make two nested elements
937         and set transformX() on one, and transformY() on the other.
938
939         * Animation/css-accelerated-animation.html: Added.
940
941 2016-08-23  Saam Barati  <sbarati@apple.com>
942
943         It should be easy to run ES6SampleBench from the jsc shell
944         https://bugs.webkit.org/show_bug.cgi?id=161085
945
946         Reviewed by Yusuke Suzuki.
947
948         This patch makes ES6 sample bench runnable through the `jsc` shell.
949         To do that, you need to be in the PerformanceTests/ES6SampleBench
950         directory and run `jsc cli.js`. To make this work, the benchmark
951         is now aware of being run in two modes: via the browser, and via
952         the shell. Each entry point will set a variable `isInBrowser`,
953         and the benchmark will do different things based on if that
954         variable is true or false.
955
956         * ES6SampleBench/Air/benchmark.js:
957         * ES6SampleBench/Air/stress-test.js:
958         * ES6SampleBench/Basic/benchmark.js:
959         (runBenchmark):
960         * ES6SampleBench/Basic/stress-test.js:
961         * ES6SampleBench/air_benchmark.js:
962         * ES6SampleBench/basic_benchmark.js:
963         * ES6SampleBench/cli.js: Added.
964         (return.doRun):
965         (makeBenchmarkRunner):
966         * ES6SampleBench/driver.js:
967         (Driver):
968         (Driver.prototype._recomputeSummary):
969         (Driver.prototype._iterate.window.setTimeout):
970         (Driver.prototype._iterate):
971         (Driver.prototype._updateIterations):
972         * ES6SampleBench/glue.js:
973         (reportResult):
974         * ES6SampleBench/index.html:
975         * ES6SampleBench/results.js:
976         (Results):
977         (Results.prototype.reportRunning):
978         (Results.prototype.reportDone):
979         (Results.prototype.reportError):
980         * ES6SampleBench/stats.js:
981         (Stats):
982         (Stats.prototype.toString):
983         (Stats.prototype._update):
984
985 2016-08-01  Said Abou-Hallawa  <sabouhallawa@apple.com>
986
987         Add an option to run the MotionMark tests with classic tile size (512x512)
988         https://bugs.webkit.org/show_bug.cgi?id=160371
989
990         Reviewed by Darin Adler.
991
992         Setting the body to large size (3000x3000) and overflow to scroll forces
993         the classic tile size (512x512). This option does not affect the canvas
994         tests because the canvas is displayed on one tile regardless of its size.
995
996         * Animometer/developer.html:
997         * Animometer/resources/debug-runner/animometer.css:
998         (body.showing-test-container.tiles-big):
999         (body.showing-test-container.tiles-classic):
1000         * Animometer/resources/debug-runner/animometer.js:
1001         * Animometer/resources/runner/animometer.js:
1002         (window.benchmarkController.startBenchmark):
1003
1004 2016-06-29  Filip Pizlo  <fpizlo@apple.com>
1005
1006         Generators violate bytecode liveness validation
1007         https://bugs.webkit.org/show_bug.cgi?id=159279
1008
1009         Reviewed by Yusuke Suzuki.
1010
1011         Add Basic to our test harness.
1012
1013         Also made some cosmetic changes to the benchmark harness.
1014
1015         * ES6SampleBench/Basic/basic-tests.yaml: Added.
1016         * ES6SampleBench/Basic/stress-test.js: Added.
1017         (preciseTime):
1018         * ES6SampleBench/driver.js:
1019         (Driver):
1020         (Driver.prototype.start):
1021         (Driver.prototype.reportError):
1022         * ES6SampleBench/glue.js:
1023         * ES6SampleBench/index.html:
1024
1025 2016-06-28  Filip Pizlo  <fpizlo@apple.com>
1026
1027         ES6SampleBench should have a harness
1028         https://bugs.webkit.org/show_bug.cgi?id=159246
1029
1030         Reviewed by Saam Barati.
1031         
1032         This adds a simple web harness for ES6SampleBench. It runs Air and Basic 10 times for 200
1033         iterations each and reports three metrics:
1034         
1035         First iteration: the time it takes for the first iteration to run. This is the first
1036         iteration after the benchmark is loaded into the iframe, so it's representative of what
1037         would happen if one of these workloads only ran for a short time.
1038         
1039         Worst 2%: of the last 199 iterations, the average of the worst 2% iterations. If code like
1040         any of these workloads was used in an important event handler, you'd want that code to run
1041         well in the worst case in addition to having great throughput.
1042         
1043         Steady state: the total of the last 199 iterations. This is representative of what would
1044         happen if you ran code like this for a long time.
1045         
1046         The total score is the geomean of the firstIteration/worstCase/steadyState numbers of the
1047         two benchmarks.
1048         
1049         The harness does statistics using Student's T-distribution confidence intervals.
1050
1051         * ES6SampleBench/Basic/benchmark.js:
1052         (Benchmark):
1053         * ES6SampleBench/air_benchmark.js: Added.
1054         * ES6SampleBench/basic_benchmark.js: Added.
1055         * ES6SampleBench/driver.js: Added.
1056         (Driver):
1057         (Driver.prototype.addBenchmark):
1058         (Driver.prototype.start):
1059         (Driver.prototype.reportResult):
1060         (Driver.prototype.reportError):
1061         (Driver.prototype._recomputeSummary.Geomean):
1062         (Driver.prototype._recomputeSummary.Geomean.prototype.add):
1063         (Driver.prototype._recomputeSummary.Geomean.prototype.get result):
1064         (Driver.prototype._recomputeSummary):
1065         (Driver.prototype._iterate):
1066         (Driver.prototype._updateIterations):
1067         * ES6SampleBench/glue.js: Added.
1068         * ES6SampleBench/index.html: Added.
1069         * ES6SampleBench/results.js: Added.
1070         (Results):
1071         (Results.prototype.get benchmark):
1072         (Results.prototype.reset):
1073         (Results.prototype.reportRunning):
1074         (Results.prototype.reportDone):
1075         (Results.prototype.reportResult.averageAbovePercentile):
1076         (Results.prototype.reportResult):
1077         (Results.prototype.reportError):
1078         * ES6SampleBench/stats.js: Added.
1079         (Stats):
1080         (Stats.prototype.reset):
1081         (Stats.prototype.add):
1082         (Stats.prototype.get numIterations):
1083         (Stats.prototype.valueForIteration):
1084         (Stats.get result.tDist):
1085         (Stats.prototype.get result):
1086         (Stats.prototype.toString):
1087         (Stats.prototype._update):
1088         * ES6SampleBench/style.css: Added.
1089         (body):
1090         (body, th, tr):
1091         (h1, h2, h3, h4):
1092         (h1):
1093         (h2):
1094         (h3):
1095         (hr):
1096         (address):
1097         (img):
1098         (.underline):
1099         (ol.loweralpha):
1100         (ol.upperalpha):
1101         (ol.lowerroman):
1102         (ol.upperroman):
1103         (ol.arabic):
1104         (.banner-link:link, .banner-link:visited):
1105         (:link, :visited):
1106         (h4 :link, h4 :visited, h5 :link, h5 :visited, h6 :link, h6 :visited):
1107         (.anchor:link, .anchor:visited):
1108         (* > .anchor:link, * > .anchor:visited):
1109         (span:hover .anchor):
1110         (a.forbidden, span.forbidden):
1111         (a.missing:hover):
1112         (a.closed:link, a.closed:visited, span.closed):
1113         (pre):
1114         (div.code):
1115         (div.code pre):
1116         (dt):
1117         (dd):
1118         (dd:last-child):
1119         (.site-logo):
1120         (.site-logo .tagline):
1121         (table):
1122         (#contents):
1123         (p):
1124         (p:last-child):
1125         (th):
1126         (td):
1127
1128 2016-06-28  Jon Lee  <jonlee@apple.com>
1129
1130         Update focus test
1131         https://bugs.webkit.org/show_bug.cgi?id=159242
1132         rdar://problem/27070007
1133
1134         Reviewed by Dean Jackson.
1135         Provisionally reviewed by Said Abou-Hallawa.
1136
1137         Move previous test to dom suite, and update the test for better reporting of frame rate, although
1138         it uses a different rendering path.
1139
1140         * Animometer/resources/debug-runner/tests.js: Add to dom suite.
1141         * Animometer/tests/dom/focus.html: Copied from PerformanceTests/Animometer/tests/master/focus.html.
1142         * Animometer/tests/dom/resources/focus.js: Copied from PerformanceTests/Animometer/tests/master/resources/focus.js.
1143         * Animometer/tests/master/focus.html: Remove center element.
1144         * Animometer/tests/master/resources/focus.js: Use narrower size range with smaller particles. Remove the
1145         container elements. Inline getBlurValue and getOpacityValue since they are only called once.
1146
1147 2016-06-28  Filip Pizlo  <fpizlo@apple.com>
1148
1149         Move Air.js and Basic into ES6SampleBench
1150
1151         Rubber stamped by Geoffrey Garen.
1152         
1153         We want to group our ES6 benchmarks together, and eventually, we want to give them a
1154         common harness.
1155
1156         * Air.js: Removed.
1157         * Air.js/README.md: Removed.
1158         * Air.js/airjs-tests.yaml: Removed.
1159         * Air.js/all.js: Removed.
1160         * Air.js/allocate_stack.js: Removed.
1161         * Air.js/arg.js: Removed.
1162         * Air.js/basic_block.js: Removed.
1163         * Air.js/benchmark.js: Removed.
1164         * Air.js/code.js: Removed.
1165         * Air.js/custom.js: Removed.
1166         * Air.js/frequented_block.js: Removed.
1167         * Air.js/insertion_set.js: Removed.
1168         * Air.js/inst.js: Removed.
1169         * Air.js/liveness.js: Removed.
1170         * Air.js/make_dist.sh: Removed.
1171         * Air.js/opcode.js: Removed.
1172         * Air.js/payload-airjs-ACLj8C.js: Removed.
1173         * Air.js/payload-gbemu-executeIteration.js: Removed.
1174         * Air.js/payload-imaging-gaussian-blur-gaussianBlur.js: Removed.
1175         * Air.js/payload-typescript-scanIdentifier.js: Removed.
1176         * Air.js/reg.js: Removed.
1177         * Air.js/stack_slot.js: Removed.
1178         * Air.js/stress-test.js: Removed.
1179         * Air.js/strip-hash.rb: Removed.
1180         * Air.js/symbols.js: Removed.
1181         * Air.js/test.html: Removed.
1182         * Air.js/test.js: Removed.
1183         * Air.js/tmp.js: Removed.
1184         * Air.js/tmp_base.js: Removed.
1185         * Air.js/util.js: Removed.
1186         * Basic: Removed.
1187         * Basic/ast.js: Removed.
1188         * Basic/basic.js: Removed.
1189         * Basic/benchmark.js: Removed.
1190         * Basic/caseless_map.js: Removed.
1191         * Basic/lexer.js: Removed.
1192         * Basic/number.js: Removed.
1193         * Basic/parser.js: Removed.
1194         * Basic/random.js: Removed.
1195         * Basic/state.js: Removed.
1196         * Basic/test.html: Removed.
1197         * Basic/test.js: Removed.
1198         * Basic/util.js: Removed.
1199         * ES6SampleBench: Added.
1200         * ES6SampleBench/Air: Copied from PerformanceTests/Air.js.
1201         * ES6SampleBench/Basic: Copied from PerformanceTests/Basic.
1202         * Skipped:
1203
1204 2016-06-24  Filip Pizlo  <fpizlo@apple.com>
1205
1206         Add a ES6 generator benchmark
1207         https://bugs.webkit.org/show_bug.cgi?id=159101
1208
1209         Rubber stamped by Keith Miller.
1210         
1211         This adds a Basic interpreter loosely based on ECMA-55:
1212         
1213         http://www.ecma-international.org/publications/files/ECMA-ST-WITHDRAWN/ECMA-55,%201st%20Edition,%20January%201978.pdf
1214         
1215         It includes a lexer that is a generator, a parser that uses regular expressions, and an AST
1216         walk interpreter where the walking functions for statements are generators that call each
1217         other with yield*. This enables the interpreter to look like an AST walk even though it can
1218         yield at INPUT and PRINT statements.
1219         
1220         This also uses for-of, classes, Map, and WeakMap. It also uses deprecated-but-awesome RegExp
1221         features like RegExp.lastMatch and RegExp.rightContext. I did it that way because this is
1222         how I've always written lexers in dynamic languages; see offlineasm's lex() method in
1223         parser.rb for example.
1224         
1225         The benchmark runs a handful of simple Basic programs. The longest-running one computes
1226         prime numbers.
1227         
1228         Includes a command-line and web harness. On my machine it runs in 2-3 seconds.
1229
1230         * Basic: Added.
1231         * Basic/ast.js: Added.
1232         (Basic.NumberApply):
1233         (Basic.Variable):
1234         (Basic.Const):
1235         (Basic.NumberPow):
1236         (Basic.NumberMul):
1237         (Basic.NumberDiv):
1238         (Basic.NumberNeg):
1239         (Basic.NumberAdd):
1240         (Basic.NumberSub):
1241         (Basic.StringVar):
1242         (Basic.Equals):
1243         (Basic.NotEquals):
1244         (Basic.LessThan):
1245         (Basic.GreaterThan):
1246         (Basic.LessEqual):
1247         (Basic.GreaterEqual):
1248         (Basic.GoTo):
1249         (Basic.GoSub):
1250         (Basic.Def):
1251         (Basic.Let):
1252         (Basic.If):
1253         (Basic.Return):
1254         (Basic.Stop):
1255         (Basic.On):
1256         (sideState.shouldStop):
1257         (Basic.For):
1258         (Basic.Next):
1259         (Basic.Print):
1260         (Basic.Input):
1261         (Basic.Read):
1262         (Basic.Restore):
1263         (Basic.Dim):
1264         (Basic.Randomize):
1265         (Basic.End):
1266         (Basic.Program):
1267         * Basic/basic.js: Added.
1268         (prepare):
1269         (simulate):
1270         * Basic/benchmark.js: Added.
1271         (Benchmark):
1272         (Benchmark.prototype.runIteration.expect):
1273         (Benchmark.prototype.runIteration):
1274         (runBenchmark):
1275         * Basic/caseless_map.js: Added.
1276         (CaselessMap):
1277         * Basic/lexer.js: Added.
1278         (lex.consumeWhitespace):
1279         (lex.consume):
1280         (lex):
1281         * Basic/lexer_test.js: Added.
1282         * Basic/number.js: Added.
1283         (NumberValue):
1284         (NumberValue.prototype.get value):
1285         (NumberValue.prototype.apply):
1286         (NumberValue.prototype.leftApply):
1287         (NumberValue.prototype.assign):
1288         (NumberArray.):
1289         (NumberArray):
1290         (NumberArray.prototype.apply):
1291         (NumberArray.prototype.leftApply):
1292         (NumberFunction):
1293         (NumberFunction.prototype.apply):
1294         (NumberFunction.prototype.leftApply):
1295         (NativeFunction):
1296         (NativeFunction.prototype.apply):
1297         (NativeFunction.prototype.leftApply):
1298         * Basic/parser.js: Added.
1299         (parse):
1300         (parse.pushToken):
1301         (parse.peekToken):
1302         (parse.consumeKind):
1303         (parse.consumeToken):
1304         (parse.parseVariable):
1305         (parse.parseNumericExpression.parsePrimary):
1306         (parse.parseNumericExpression.parseFactor):
1307         (parse.parseNumericExpression.parseTerm):
1308         (parse.parseNumericExpression):
1309         (parse.parseConstant):
1310         (parse.parseStringExpression):
1311         (parse.isStringExpression):
1312         (parse.parseRelationalExpression):
1313         (parse.parseNonNegativeInteger):
1314         (parse.parseGoToStatement):
1315         (parse.parseGoSubStatement):
1316         (parse.parseStatement):
1317         (parse.parseStatements):
1318         * Basic/random.js: Added.
1319         (createRNG):
1320         (createRNGWithFixedSeed):
1321         (createRNGWithRandomSeed):
1322         * Basic/state.js: Added.
1323         (State):
1324         (State.prototype.getValue):
1325         (State.prototype.getSideState):
1326         (State.prototype.abort):
1327         (State.prototype.validate):
1328         * Basic/test.html: Added.
1329         * Basic/test.js: Added.
1330         * Basic/util.js: Added.
1331         (this.performance.performance.now.currentTime):
1332         (else.this.preciseTime.currentTime):
1333         (else.currentTime):
1334         * Skipped: Make sure that we don't run Basic yet.
1335
1336 2016-06-21  Jon Lee  <jonlee@apple.com>
1337
1338         Update canvas size when benchmark begins
1339         https://bugs.webkit.org/show_bug.cgi?id=159010
1340
1341         Reviewed by Dean Jackson.
1342
1343         Previously we would evaluate the media queries and assign the canvas size to the test
1344         on body.onload. Instead, do it once the user starts the benchmark.
1345
1346         * Animometer/resources/debug-runner/animometer.js: Move benchmarkController.determineCanvasSize()
1347         to benchmarkController._startBenchmark.
1348         * Animometer/resources/runner/animometer.js: Ditto.
1349
1350 2016-06-21  Jon Lee  <jonlee@apple.com>
1351
1352         Add new timestamp option
1353         https://bugs.webkit.org/show_bug.cgi?id=159006
1354
1355         Reviewed by Dean Jackson.
1356
1357         Add a new option to take timestamps from the rAF callback.
1358
1359         * Animometer/developer.html: Added option.
1360         * Animometer/tests/resources/main.js:
1361         (Benchmark): Fall back to using the rAF timestamp if performance.now()
1362         is not available.
1363         (Benchmark._animateLoop): Update how timestamp is set. Prefer to use
1364         local var instead of accessing private var.
1365
1366 2016-06-21  Jon Lee  <jonlee@apple.com>
1367
1368         Improvements to Animometer benchmark
1369         https://bugs.webkit.org/show_bug.cgi?id=157738
1370
1371         Reviewed by Dean Jackson.
1372         Provisionally reviewed by Said Abou-Hallawa.
1373
1374         Update tests.
1375
1376         * Animometer/tests/master/text.html: Ensure only three text sizes for
1377         the three canvases.
1378         * Animometer/tests/master/focus.html: Reduce the text size to fit with smaller
1379         particle sizes.
1380         * Animometer/tests/master/resources/focus.js: Remove the quadratic distribution for
1381         particle sizes, and make it linear. Reduce the size variance. Shuffle the math to
1382         reduce some calculations per frame. Fix the placement of the particles which might
1383         otherwise be culled.
1384         * Animometer/tests/master/resources/image-data.js: Reduce the particle size
1385         to encourage larger scores.
1386
1387 2016-06-21  Jon Lee  <jonlee@apple.com>
1388
1389         Improvements to Animometer benchmark
1390         https://bugs.webkit.org/show_bug.cgi?id=157738
1391
1392         Reviewed by Dean Jackson.
1393         Provisionally reviewed by Said Abou-Hallawa.
1394
1395         Include confidence interval for the final score, and store the canvas
1396         size in the serialization so that it is accurately shown in results.
1397
1398         * Animometer/developer.html: Add a "confidence" div.
1399         * Animometer/index.html: Ditto. Convert "mean" to "confidence".
1400         * Animometer/resources/debug-runner/animometer.js: Look at options, and
1401         if the configuration is included, update the body class based on it
1402         (similar to what we do when we first load the page). That way, if you
1403         drag-and-drop previous results in, that configuration is reflected in
1404         the dashboard. Show the full confidence interval.
1405
1406         * Animometer/resources/debug-runner/animometer.css:
1407         * Animometer/resources/debug-runner/animometer.js: Style update.
1408         * Animometer/resources/runner/animometer.css:
1409
1410         * Animometer/resources/runner/animometer.js:
1411         (_processData): Propagate the confidence interval values out and calculate
1412         the lower and upper bounds. For now, shortcut the aggregate calculation,
1413         since we only go through one iteration.
1414         (this._processData.calculateScore): Propagate the confidence interval out
1415         to be next to the score. Depending on the controller these values are
1416         calculated differently.
1417         (this._processData._getResultsProperty): Convenience function.
1418         (this._processData.get score): Refactor.
1419         (this._processData.get scoreLowerBound): Get the aggregate lower bound.
1420         (this._processData.get scoreUpperBound): Get the aggregate upper bound.
1421         (window.sectionsManager.setSectionScore):
1422         (window.benchmarkController._startBenchmark): When the benchmark starts, note
1423         the canvas size and add it to options. That way it will be automatically be
1424         serialized.
1425         (window.benchmarkController.showResults): Include the maximum deviation
1426         percentage.
1427         * Animometer/resources/runner/lines.svg: Make the background line up with the
1428         skew.
1429         * Animometer/resources/runner/tests.js:
1430         (Headers.details.text): Refactor.
1431         * Animometer/resources/statistics.js:
1432         (Statistics.largestDeviationPercentage): Convenience function to calculate
1433         the deviation percentage on either end and return the largest deviation.
1434         * Animometer/resources/strings.js:
1435
1436         Allow specifying a regression profile to use instead of taking the one
1437         with the lowest error.
1438
1439         Address an issue in the focus test when the regression calculated ends
1440         up overestimating the change point, causing a cascade of tougher
1441         ramps. The reason behind this is that at max complexity of an initial
1442         ramp, the frame length is very high, and it influences the second
1443         segment of the piecewise regression strongly, causing it to be very
1444         steep. As a result, the first segment, expected to be flat, ends up
1445         covering a higher range of complexity. That makes the change point
1446         much higher than it should be. To avoid this, we will add a sanity
1447         check on the maximum value of the ramp. If the regression's projected
1448         value at the maximum complexity of the current ramp is very slow (less
1449         than 20 fps), 1) reduce the maximum complexity by 20%, and 2) do not
1450         include the regression's change point in the change point estimator.
1451         That estimator is used as the midpoint of the next ramp, and including
1452         the change point from a poor regression can bake in the error. The
1453         controller already knows how to adjust for ramps that are too easy for
1454         the system.
1455
1456         * Animometer/resources/runner/animometer.js:
1457         (this._processData.findRegression): Takes a preferred profile and gives that to
1458         Regression.
1459         (this._processData.calculateScore): With the ramp controller, take the profile
1460         of the ramp that was used the most when calculating the ramp's regression. That
1461         profile is what is used for the test's score.
1462         * Animometer/resources/statistics.js:
1463         (Regression.Utilities.createClass): Update to take an options object which can
1464         specify a profile to calculate with. Otherwise it will continue to use both and
1465         select the one with the lower error.
1466         (_calculateRegression): Fix an issue where we claim 0 error if the regression
1467         calculation fails due to divide-by-zero. Instead reject that regression calculation
1468         by giving it Number.MAX_VALUE.
1469         * Animometer/resources/strings.js: New strings for marking a regression as flat
1470         or slope.
1471         * Animometer/tests/resources/main.js:
1472         (RampController): Rename the thresholds for clarity. Add a threshold that, if
1473         exceeded, will lower the maximum complexity of the next ramp.
1474         (tune): Relax the cdf check to consider whether the interval definitely falls in
1475         the desired frame length threshold.
1476         (processSamples): Include the profile in the ramp.
1477
1478         Update ramp controller test. Increase the length of the test to 30 seconds, and extend
1479         the interval to 120 ms during sampling. Improve the estimation of the ramp parameters.
1480
1481         * Animometer/developer.html: Change default to 30 seconds, and don't show the progress bar
1482         by default.
1483         * Animometer/resources/runner/animometer.js: Change default to 30 seconds.
1484         * Animometer/tests/resources/main.js: A number of improvements to the ramp controller, in
1485         the order in which they appear in the patch:
1486
1487         - With a longer test length use longer ramps with longer intervals to get more data at each
1488         complexity. Keep the 100 ms interval length during the ramp up phase since we don't need to
1489         spend more time there to find the right order of magnitude, but increase it during the
1490         ramps to 120 ms.
1491         - The ramp linearly interpolates the complexity to render based on its timestamp, but it would
1492         never sample the minimum complexity. Instead of lerping max to min complexity from time
1493         0 to t where t is the ramp length, instead lerp from 0 to (t - intervalSampleLength) so that
1494         we can have at least one interval sample at the min complexity for that ramp.
1495         - Some regression calculations only come out with one line segment rather than the two
1496         we expect. This could be due to a noisy ramp or the ramp's range is too narrow. If that's the
1497         case, influence the minimum complexity of the next ramp towards the lowest bound of 1, so that
1498         we ensure that at least part of the ramp is covering a complexity range that the system can
1499         handle at full 60.
1500         - Remove an assignment to interpolatedFrameLength since that is never subsequently used.
1501
1502         Update the format used to serialize the results for analysis.
1503
1504         Each data point used to have named properties for fields like complexity and frame rate.
1505         In addition the serialized numbers had rounding errors that took up many characters.
1506         Update the format by introducing a new data container called SampleData, which contains a
1507         field map. The map maps a string to an array index. Each data point is an array, so, to
1508         get a stat, use the field map to get the array index into the data point. This allows future
1509         versions to track other data, and reduces the size of the output string by two-thirds.
1510
1511         * Animometer/resources/extensions.js:
1512         (Utilities.toFixedNumber): Add convenience function that truncates the number to a fixed
1513         precision, and converts it back to a number.
1514         (SampleData): New class that contains sample data and a field map that maps properties to
1515         an array index.
1516         (get length): Number of data points.
1517         (addField): Add a field to the field map.
1518         (push): Add a data point.
1519         (sort): Sort the data.
1520         (slice): Return new SampleData object with sliced data.
1521         (forEach): Iterate over the data with provided function.
1522         (createDatum):
1523         (getFieldInDatum): Returns the data point associated with the field name by looking it up
1524         in the field map in the datum provided, which can be the datum object itself (an array) or
1525         an index into the data member variable.
1526         (setFieldInDatum): Sets the data point associated with the field name.
1527         (at): Returns the data point at the provided index.
1528         (toArray): Serializes the data where the field map serves as property names for each point.
1529
1530         * Animometer/resources/debug-runner/graph.js:
1531         (updateGraphData): Remove unused _testData. Convert the data to the old array format for the
1532         graph to use, since the old format was much easier to work with when displaying the graphs.
1533         (onGraphTypeChanged): For some controllers, no alternative score or mean is provided.
1534         * Animometer/resources/runner/animometer.css:
1535         * Animometer/resources/runner/animometer.js: Refactor to use SampleData. Update JSON output
1536         to only go to 3 digits of precision for purposes of reducing the data size.
1537         * Animometer/resources/strings.js: Add new strings to put into the field maps.
1538         * Animometer/tests/resources/main.js: Refactor to use SampleData.
1539
1540         * Animometer/developer.html:
1541         * Animometer/index.html: Restructure results table for both pages. Add charset attribute to
1542         tests.js include.
1543         * Animometer/resources/debug-runner/animometer.css: Clear out styles from release runner.
1544         * Animometer/resources/debug-runner/graph.js:
1545         (onGraphTypeChanged): Update score and mean if bootstrap results are available from the
1546         controller, since not all controllers do bootstrapping.
1547         * Animometer/resources/debug-runner/tests.js: Update header text.
1548         * Animometer/resources/runner/animometer.css: Include confidence interval in results.
1549         * Animometer/resources/runner/animometer.js:
1550         (ResultsTable._addHeader): Header contents can be HTML, so use innerHTML instead.
1551         (ResultsTable._addBody): Add tbody element.
1552         (ResultsTable._addTest): Allow a data cell to invoke a JS function to get its contents.
1553         (window.benchmarkController.showResults): Add table that includes tests' confidence intervals.
1554         * Animometer/resources/runner/tests.js:
1555         (Headers.details.text): Add new details table that includes bootstrap confidence interval.
1556         The interval can be asymmetric, but for simplicity, report the maximum deviation percentage
1557         on either side of the bootstrap median.
1558         * Animometer/resources/statistics.js:
1559         (bootstrap): Include the confidence percentage in the return object.
1560
1561         Report canvas size in results.
1562
1563         * Animometer/developer.html: Add markup to indicate whether a small, medium, or large
1564         canvas was used.
1565         * Animometer/index.html: Ditto.
1566         * Animometer/resources/debug-runner/animometer.js: Call determineCanvasSize().
1567         * Animometer/resources/runner/animometer.css: Update styles to set the canvas based on the
1568         body class size.
1569         * Animometer/resources/runner/animometer.js:
1570         (window.benchmarkController.initialize): Update styles to set the canvas based on the
1571         body class size.
1572         (window.benchmarkController.determineCanvasSize): Run various media queries and set the body
1573         class based on the size of the device.
1574
1575         * Animometer/developer.html: Refactor to include the main CSS file, and redo
1576         the layout so that it doesn't rely on flexbox.
1577         * Animometer/resources/debug-runner/animometer.css:
1578         * Animometer/resources/debug-runner/animometer.js:
1579         (updateDisplay): Since various parts of the script alter the body class, we can't
1580         replace the className directly. Instead, remove all display-based values and then add
1581         the one that was selected.
1582         * Animometer/resources/debug-runner/graph.js:
1583         (updateGraphData): To set the size of the graph, use window.innerHeight.
1584         * Animometer/resources/runner/animometer.js:
1585         (window.sectionsManager.showSection): Since various parts of the script alter the body
1586         class, we can't replace the className directly. Remove all of the section classes
1587         individually and then add the one desired.
1588         * Animometer/tests/resources/stage.css: Remove -apple-system as a font to use in the
1589         stage.
1590
1591 2016-06-12  Filip Pizlo  <fpizlo@apple.com>
1592
1593         Fix round-down goof in Air.js's ShuffleCustom.forEachArg
1594         https://bugs.webkit.org/show_bug.cgi?id=158674
1595
1596         Reviewed by Michael Saboff.
1597         
1598         x / 3 * 3 is not how you round down to multiples of 3 in JavaScript. You need to do
1599         Math.floor(x / 3) * 3 instead.
1600         
1601         This is a benign change, because having extra arguments to a Shuffle is not something we
1602         actually take advantage of yet. But I think it's best to match the original C++ code's
1603         intent.
1604
1605         * Air.js/custom.js:
1606         (const.ShuffleCustom.forEachArg):
1607
1608 2016-06-11  Filip Pizlo  <fpizlo@apple.com>
1609
1610         Unreviewed, skip Air.js. It got unskipped when I renamed it from JSAir.
1611
1612         * Skipped:
1613
1614 2016-06-10  Filip Pizlo  <fpizlo@apple.com>
1615
1616         Make it easy to package Air.js
1617         https://bugs.webkit.org/show_bug.cgi?id=158652
1618
1619         Reviewed by Benjamin Poulain.
1620         
1621         If you want to give Air.js to someone, you can now do:
1622         
1623         cd PerformanceTests/Air.js
1624         ./make_dist.sh
1625         
1626         This will create Air.js.tar.gz and a directory called Air.js. If you want to send someone
1627         the benchmark, just send either of those things and tell them to look at index.html.
1628         
1629         You may have to edit make_dist.sh for wherever you have Markdown.pl. You can get that from
1630         https://daringfireball.net/projects/markdown/
1631
1632         * Air.js/make_dist.sh: Added.
1633         * Air.js/test.html:
1634
1635 2016-06-10  Filip Pizlo  <fpizlo@apple.com>
1636
1637         Unreviewed, make the link to test.html into an actual link.
1638
1639         * Air.js/README.md:
1640
1641 2016-06-10  Filip Pizlo  <fpizlo@apple.com>
1642
1643         Fix some text in Air.js/README.md
1644         https://bugs.webkit.org/show_bug.cgi?id=158650
1645
1646         Reviewed by Benjamin Poulain.
1647         
1648         I read the text again and found bugs:
1649         
1650         - We never actually say how to run the benchmark. This change adds a blurb about how to run
1651           it.
1652
1653         - We both say that allocateStack is responsible for the bulk of the running time and that
1654           we haven't measured where the bulk of the time is spent. This changes the text to say that
1655           it was a goal to make allocateStack be the hottest part of the benchmark, but that we did
1656           not measure this.
1657
1658         * Air.js/README.md:
1659
1660 2016-06-10  Filip Pizlo  <fpizlo@apple.com>
1661
1662         Air.js should have some documentation
1663         https://bugs.webkit.org/show_bug.cgi?id=158648
1664
1665         Reviewed by Keith Miller.
1666         
1667         I want to be able to point people at a document if they want to know more about this
1668         benchmark.
1669
1670         * Air.js/README.md: Added.
1671
1672 2016-06-10  Filip Pizlo  <fpizlo@apple.com>
1673
1674         Rename JSAir to Air.js.
1675
1676         Rubber stamped by Mark Lam.
1677
1678         * Air.js: Copied from PerformanceTests/JSAir.
1679         * Air.js/airjs-tests.yaml: Copied from PerformanceTests/JSAir/jsair-tests.yaml.
1680         * Air.js/benchmark.js: Copied from PerformanceTests/JSAir/benchmark.js.
1681         (Benchmark):
1682         * Air.js/jsair-tests.yaml: Removed.
1683         * Air.js/payload-airjs-ACLj8C.js: Copied from PerformanceTests/JSAir/payload-jsair-ACLj8C.js.
1684         * Air.js/payload-jsair-ACLj8C.js: Removed.
1685         * Air.js/stress-test.js: Copied from PerformanceTests/JSAir/stress-test.js.
1686         * Air.js/test.html: Copied from PerformanceTests/JSAir/test.html.
1687         * Air.js/test.js: Copied from PerformanceTests/JSAir/test.js.
1688         * JSAir: Removed.
1689         * JSAir/all.js: Removed.
1690         * JSAir/allocate_stack.js: Removed.
1691         * JSAir/arg.js: Removed.
1692         * JSAir/basic_block.js: Removed.
1693         * JSAir/benchmark.js: Removed.
1694         * JSAir/code.js: Removed.
1695         * JSAir/custom.js: Removed.
1696         * JSAir/frequented_block.js: Removed.
1697         * JSAir/insertion_set.js: Removed.
1698         * JSAir/inst.js: Removed.
1699         * JSAir/jsair-tests.yaml: Removed.
1700         * JSAir/liveness.js: Removed.
1701         * JSAir/opcode.js: Removed.
1702         * JSAir/payload-gbemu-executeIteration.js: Removed.
1703         * JSAir/payload-imaging-gaussian-blur-gaussianBlur.js: Removed.
1704         * JSAir/payload-jsair-ACLj8C.js: Removed.
1705         * JSAir/payload-typescript-scanIdentifier.js: Removed.
1706         * JSAir/reg.js: Removed.
1707         * JSAir/stack_slot.js: Removed.
1708         * JSAir/stress-test.js: Removed.
1709         * JSAir/strip-hash.rb: Removed.
1710         * JSAir/symbols.js: Removed.
1711         * JSAir/test.html: Removed.
1712         * JSAir/test.js: Removed.
1713         * JSAir/tmp.js: Removed.
1714         * JSAir/tmp_base.js: Removed.
1715         * JSAir/util.js: Removed.
1716
1717 2016-06-10  Filip Pizlo  <fpizlo@apple.com>
1718
1719         JSC Stress Test failing: jsair-tests.yaml/test.js.ftl-eager-no-cjit
1720         https://bugs.webkit.org/show_bug.cgi?id=158571
1721
1722         Reviewed by Keith Miller.
1723         
1724         Introduce a different harness for run-jsc-stress-tests, which runs for a minimum of 10
1725         iterations and then tries to do any number of "bonus" iterations until it's been running for
1726         two seconds. Since this is the sort of test that isn't really meant to stress anything in
1727         particular, I think it's OK if it is time-limited in this way. The worst case is that some
1728         of its failures will be flaky, but I think that they would have been flaky anyway given the
1729         complexity of the test.
1730
1731         * JSAir/benchmark.js:
1732         (Benchmark):
1733         (Benchmark.prototype.runIteration):
1734         (benchmark): Deleted.
1735         * JSAir/jsair-tests.yaml:
1736         * JSAir/stress-test.js: Added.
1737         (preciseTime):
1738         * JSAir/test.html:
1739         * JSAir/test.js:
1740
1741 2016-06-09  Filip Pizlo  <fpizlo@apple.com>
1742
1743         Unreviewed, teach the perf bots not to run JSAir.
1744
1745         * Skipped:
1746
1747 2016-06-08  Filip Pizlo  <fpizlo@apple.com>
1748
1749         Use more ES6 features in JSAir
1750         https://bugs.webkit.org/show_bug.cgi?id=158497
1751
1752         Reviewed by Keith Miller.
1753         
1754         This improves JSAir with the following ES6 features suggested by JoePeck:
1755         
1756         - String interpolation.
1757         - Destructuring inside PatchCustom.
1758         - Default arguments.
1759         
1760         All of these things are on hot paths.
1761         
1762         Note that I didn't use string interpolation everywhere that I could, only in those places
1763         where it made the code more readable. In Ruby, I used the style that if the interpolation
1764         expression has any non-trivial stuff (like a ternary operator, a chain of calls, or embedded
1765         strings) then it's better to use regular strcat. I think that's what I carried over to here.
1766         
1767         Note that the previous change (Add result validation to JSAir) also made the Proxy code not
1768         dead, though it's not necessarily on the hot path. The Proxy isn't called into frequently
1769         but it's used from a function that is otherwise hot, so if calling into the Proxy prevents
1770         that function from being optimized then it will hurt so good.
1771         
1772         I also reenabled tail calls in a few places.
1773         
1774         This change doesn't seem to change the performance of the benchmark for us. That's expected
1775         since these ES6 features are cheap. Note that this claim doesn't include Proxy, which was
1776         added in a separate change and that change did make the benchmark overall more expensive.
1777
1778         * JSAir/allocate_stack.js:
1779         (allocateStack):
1780         * JSAir/arg.js:
1781         (Arg.createBitImm64):
1782         (Arg.createAddr):
1783         (Arg.createStack):
1784         (Arg.logScale):
1785         (Arg.createIndex):
1786         * JSAir/basic_block.js:
1787         (BasicBlock.get headerString):
1788         (BasicBlock.prototype.get if):
1789         (BasicBlock):
1790         * JSAir/benchmark.js:
1791         (benchmark):
1792         * JSAir/code.js:
1793         (Code):
1794         (Code.prototype.addBlock):
1795         (Code.prototype.addStackSlot):
1796         (Code.prototype.newTmp):
1797         (Code.prototype.get size):
1798         (Code.prototype.get blocks):
1799         (Code.prototype.get stackSlots):
1800         (Code.prototype.tmps):
1801         (Code.prototype.get callArgAreaSize):
1802         (Code.prototype.toString):
1803         * JSAir/custom.js:
1804         (const.PatchCustom.forEachArg):
1805         * JSAir/inst.js:
1806         (Inst):
1807         * JSAir/reg.js:
1808         (Reg.prototype.toString):
1809         * JSAir/util.js:
1810         (symbolName):
1811         (lowerSymbolName):
1812
1813 2016-06-07  Filip Pizlo  <fpizlo@apple.com>
1814
1815         Add result validation to JSAir
1816         https://bugs.webkit.org/show_bug.cgi?id=158493
1817
1818         Reviewed by Saam Barati.
1819         
1820         This adds the ability to hash a Code in a way that matches the C++ code's hashing of Code.
1821         This allows us to check if the Code that JSAir sees is the code that C++ saw. We use this to
1822         check the Code before and after allocateStack, and compare against hashes we got from C++.
1823         
1824         Doing this uncovered bugs. roundUpToMultipleOf wasn't doing anything. allocateStack was not
1825         allocating things correctly because I was concatting a Set to an Array, which doesn't really
1826         work. Now these bugs are fixed.
1827         
1828         The checking step adds to the running time so I reduced the number of iterations. The
1829         benchmark spends a decent amount of its time computing Code hashes; I think it's around 1/3
1830         total. This is probably OK. It's better to verify the results even if the running time is
1831         not all in the "core" of the algorithm.
1832         
1833         Also add a run-jsc-stress-tests yaml file to allow this to run as a test.
1834
1835         * JSAir/allocate_stack.js:
1836         * JSAir/arg.js:
1837         (Arg.createImm):
1838         (Arg.createBigImm):
1839         (Arg.createBitImm):
1840         (Arg.createBitImm64):
1841         (Arg.createWidth):
1842         (Arg.createSpecial):
1843         (Arg.prototype.get kind):
1844         (Arg.prototype.get isTmp):
1845         (Arg.prototype.get isImm):
1846         (Arg.prototype.get isSomeImm):
1847         (Arg.prototype.get isSomeBigImm):
1848         (Arg.prototype.get isCondition):
1849         (Arg.prototype.get isWidth):
1850         (Arg.prototype.get isSpecial):
1851         (Arg.prototype.get isAlive):
1852         (Arg.prototype.get tmp):
1853         (Arg.prototype.get value):
1854         (Arg.prototype.get lowValue):
1855         (Arg.prototype.get highValue):
1856         (Arg.prototype.get base):
1857         (Arg.prototype.get isGP):
1858         (Arg.prototype.get isFP):
1859         (Arg.prototype.isValidForm):
1860         (Arg.prototype.get isInvertible):
1861         (Arg.kindCode):
1862         (Arg.prototype.hash):
1863         (Arg.prototype.toString):
1864         (Arg):
1865         * JSAir/basic_block.js:
1866         (BasicBlock.get successorBlocks):
1867         * JSAir/benchmark.js:
1868         (benchmark):
1869         * JSAir/code.js:
1870         (Code.prototype.setFrameSize):
1871         (Code.prototype.hash):
1872         (Code.prototype.toString):
1873         (Code):
1874         * JSAir/inst.js:
1875         (Inst.prototype.get hasNonArgEffects):
1876         (Inst.prototype.hash):
1877         (Inst.prototype.toString):
1878         (Inst):
1879         * JSAir/jsair-tests.yaml: Added.
1880         * JSAir/opcode.js:
1881         (Inst_forEachArg):
1882         (Inst_hasNonArgEffects):
1883         (opcodeCode):
1884         * JSAir/payload-gbemu-executeIteration.js:
1885         (createPayloadGbemuExecuteIteration):
1886         * JSAir/payload-imaging-gaussian-blur-gaussianBlur.js:
1887         (createPayloadImagingGaussianBlurGaussianBlur):
1888         * JSAir/payload-jsair-ACLj8C.js:
1889         (createPayloadJSAirACLj8C):
1890         * JSAir/payload-typescript-scanIdentifier.js:
1891         (createPayloadTypescriptScanIdentifier):
1892         * JSAir/reg.js:
1893         (Reg.prototype.get isReg):
1894         (Reg.prototype.hash):
1895         (Reg.prototype.toString):
1896         * JSAir/stack_slot.js:
1897         (StackSlot.prototype.setOffsetFromFP):
1898         (StackSlot.prototype.hash):
1899         (StackSlot.prototype.toString):
1900         * JSAir/symbols.js:
1901         (relCondCode):
1902         (resCondCode):
1903         (doubleCondCode):
1904         * JSAir/test.html:
1905         * JSAir/tmp.js:
1906         (Tmp.prototype.get isReg):
1907         (Tmp.prototype.hash):
1908         (Tmp.prototype.toString):
1909         * JSAir/util.js:
1910         (roundUpToMultipleOf):
1911         (symbolName):
1912
1913 2016-06-07  Filip Pizlo  <fpizlo@apple.com>
1914
1915         Implement Air::allocateStack() in ES6 to see how much of a bad idea that is
1916         https://bugs.webkit.org/show_bug.cgi?id=158318
1917
1918         Reviewed by Saam Barati.
1919         
1920         This adds a new benchmark for us to play with called JSAir. It's a complete ES6
1921         implementation of Air's allocateStack() phase along with all of Air needed to run that
1922         phase. This includes things like stack slots, registers, temporaries, basic blocks,
1923         instructions, and all of the code for iterating over, inspecting, and modifying those
1924         things.
1925         
1926         To make this work, JSC can now dump Air just before allocateStack() in the form of JS code
1927         that creates a Code object that matches exactly what C++ Air saw. This benchmark comprises
1928         four Air IRs:
1929         
1930         - Octane/gbemu's largest function, executeIteration.
1931         - Kraken/imaging-gaussian-blur's largest function in OSR entry mode, gaussuanBlur.
1932         - Octane/typescript's largest function that is actually hot, scanIdentifier.
1933         - JSAir's largest hot function, which is anonymous, so we call it by its hash (ACLj8C).
1934         
1935         This runs in about 2 seconds on my machine in JSC trunk. It includes both a commandline
1936         harness and a web harness. JSAir is almost exactly 100x slower in ES6 in WebKit than the
1937         C++ Air::allocateStack() phase on which it is based.
1938         
1939         JSAir uses the following ES6 features:
1940         
1941         - Symbol.
1942         - for-of.
1943         - arrow functions.
1944         - Map/Set.
1945         - let/const.
1946         - classes.
1947         
1948         All of these things are used in anger and should end up on the hot path. There is also code
1949         that uses Proxies, but it ends up being dead.
1950         
1951         We can improve this even more:
1952         I still need to add result validation: https://bugs.webkit.org/show_bug.cgi?id=158493
1953         I want to make it use more ES6 features: https://bugs.webkit.org/show_bug.cgi?id=158497
1954         
1955         * JSAir: Added.
1956         * JSAir/all.js: Added.
1957         * JSAir/allocate_stack.js: Added.
1958         (allocateStack.attemptAssignment):
1959         (allocateStack.assign):
1960         (allocateStack.interfere):
1961         (allocateStack.):
1962         (allocateStack):
1963         * JSAir/arg.js: Added.
1964         (Arg):
1965         (Arg.isAnyUse):
1966         (Arg.isColdUse):
1967         (Arg.isWarmUse):
1968         (Arg.cooled):
1969         (Arg.isEarlyUse):
1970         (Arg.isLateUse):
1971         (Arg.isAnyDef):
1972         (Arg.isEarlyDef):
1973         (Arg.isLateDef):
1974         (Arg.isZDef):
1975         (Arg.typeForB3Type):
1976         (Arg.widthForB3Type):
1977         (Arg.conservativeWidth):
1978         (Arg.minimumWidth):
1979         (Arg.bytes):
1980         (Arg.widthForBytes):
1981         (Arg.createTmp):
1982         (Arg.fromReg):
1983         (Arg.createImm):
1984         (Arg.createBigImm):
1985         (Arg.createBitImm):
1986         (Arg.createBitImm64):
1987         (Arg.createAddr):
1988         (Arg.createStack):
1989         (Arg.createCallArg):
1990         (Arg.createStackAddr):
1991         (Arg.isValidScale):
1992         (Arg.logScale):
1993         (Arg.createIndex):
1994         (Arg.createRelCond):
1995         (Arg.createResCond):
1996         (Arg.createDoubleCond):
1997         (Arg.createWidth):
1998         (Arg.prototype.get kind):
1999         (Arg.prototype.get isTmp):
2000         (Arg.prototype.get isImm):
2001         (Arg.prototype.get isBigImm):
2002         (Arg.prototype.get isBitImm):
2003         (Arg.prototype.get isBitImm64):
2004         (Arg.prototype.get isSomeImm):
2005         (Arg.prototype.get isAddr):
2006         (Arg.prototype.get isStack):
2007         (Arg.prototype.get isCallArg):
2008         (Arg.prototype.get isIndex):
2009         (Arg.prototype.get isMemory):
2010         (Arg.prototype.get isStackMemory):
2011         (Arg.prototype.get isRelCond):
2012         (Arg.prototype.get isResCond):
2013         (Arg.prototype.get isDoubleCond):
2014         (Arg.prototype.get isCondition):
2015         (Arg.prototype.get isWidth):
2016         (Arg.prototype.get isAlive):
2017         (Arg.prototype.get tmp):
2018         (Arg.prototype.get value):
2019         (Arg.prototype.get base):
2020         (Arg.prototype.get hasOffset):
2021         (Arg.prototype.get offset):
2022         (Arg.prototype.get stackSlot):
2023         (Arg.prototype.get index):
2024         (Arg.prototype.get scale):
2025         (Arg.prototype.get logScale):
2026         (Arg.prototype.get width):
2027         (Arg.prototype.get isGPTmp):
2028         (Arg.prototype.get isFPTmp):
2029         (Arg.prototype.get isGP):
2030         (Arg.prototype.get isFP):
2031         (Arg.prototype.get hasType):
2032         (Arg.prototype.get type):
2033         (Arg.prototype.isType):
2034         (Arg.prototype.isCompatibleType):
2035         (Arg.prototype.get isGPR):
2036         (Arg.prototype.get gpr):
2037         (Arg.prototype.get isFPR):
2038         (Arg.prototype.get fpr):
2039         (Arg.prototype.get isReg):
2040         (Arg.prototype.get reg):
2041         (Arg.isValidImmForm):
2042         (Arg.isValidBitImmForm):
2043         (Arg.isValidBitImm64Form):
2044         (Arg.isValidAddrForm):
2045         (Arg.isValidIndexForm):
2046         (Arg.prototype.isValidForm):
2047         (Arg.prototype.forEachTmpFast):
2048         (Arg.prototype.usesTmp):
2049         (Arg.prototype.forEachTmp):
2050         (Arg.prototype.is):
2051         (Arg.prototype.as):
2052         (Arg.prototype.forEachFast):
2053         (Arg.prototype.forEach):
2054         (Arg.extract):
2055         (Arg.forEachFast):
2056         (Arg.forEach):
2057         (Arg.prototype.get condition):
2058         (Arg.prototype.get isInvertible):
2059         (Arg.prototype.toString):
2060         * JSAir/basic_block.js: Added.
2061         (BasicBlock):
2062         (BasicBlock.prototype.get index):
2063         (BasicBlock.prototype.get size):
2064         (BasicBlock.prototype.Symbol.iterator):
2065         (BasicBlock.prototype.at):
2066         (BasicBlock.get last):
2067         (BasicBlock.get insts):
2068         (BasicBlock.get numSuccessors):
2069         (BasicBlock.get successors):
2070         (BasicBlock.get successorBlocks.):
2071         (BasicBlock.get successorBlocks):
2072         (BasicBlock.set get numPredecessors):
2073         (BasicBlock.get predecessors):
2074         (BasicBlock.get frequency):
2075         (BasicBlock.get headerString):
2076         (BasicBlock.get footerString):
2077         * JSAir/benchmark.js: Added.
2078         (benchmark):
2079         * JSAir/code.js: Added.
2080         (Code):
2081         (Code.prototype.addBlock):
2082         (Code.prototype.addStackSlot):
2083         (Code.prototype.newTmp):
2084         (Code.prototype.get size):
2085         (Code.prototype.at):
2086         (Code.prototype.Symbol.iterator):
2087         (Code.prototype.get blocks):
2088         (Code.prototype.get stackSlots):
2089         (Code.prototype.tmps):
2090         (Code.prototype.get callArgAreaSize):
2091         (Code.prototype.requestCallArgAreaSize):
2092         (Code.prototype.get frameSize):
2093         (Code.prototype.setFrameSize):
2094         (Code.prototype.toString):
2095         * JSAir/custom.js: Added.
2096         (const.ShuffleCustom.forEachArg):
2097         (const.ShuffleCustom.hasNonArgNonControlEffects):
2098         (const.PatchCustom.forEachArg):
2099         (const.PatchCustom.hasNonArgNonControlEffects):
2100         (const.CCallCustom.forEachArg):
2101         (const.CCallCustom.hasNonArgNonControlEffects):
2102         (const.ColdCCallCustom.forEachArg):
2103         (const.ColdCCallCustom.hasNonArgNonControlEffects):
2104         * JSAir/frequented_block.js: Added.
2105         (FrequentedBlock):
2106         (FrequentedBlock.prototype.toString):
2107         * JSAir/insertion_set.js: Added.
2108         (Insertion):
2109         (Insertion.prototype.get index):
2110         (Insertion.prototype.get element):
2111         (Insertion.prototype.lessThan):
2112         (InsertionSet):
2113         (InsertionSet.prototype.appendInsertion):
2114         (InsertionSet.prototype.append):
2115         (InsertionSet.prototype.execute):
2116         * JSAir/inst.js: Added.
2117         (Inst):
2118         (Inst.prototype.append):
2119         (Inst.prototype.clear):
2120         (Inst.prototype.get opcode):
2121         (Inst.prototype.get args):
2122         (Inst.prototype.visitArg):
2123         (Inst.prototype.forEachTmpFast):
2124         (Inst.prototype.forEachArg):
2125         (Inst.prototype.forEachTmp):
2126         (Inst.prototype.forEach):
2127         (Inst.forEachDef):
2128         (Inst.forEachDefWithExtraClobberedRegs):
2129         (Inst.prototype.get hasNonArgEffects):
2130         (Inst.prototype.toString):
2131         * JSAir/liveness.js: Added.
2132         (Liveness):
2133         (Liveness.prototype.get thing):
2134         (Liveness.prototype.get code):
2135         (Liveness.prototype.get liveAtHead):
2136         (Liveness.prototype.get liveAtTail):
2137         (Liveness.prototype.localCalc.LocalCalc):
2138         (Liveness.prototype.localCalc.LocalCalc.prototype.get liveSet):
2139         (Liveness.prototype.localCalc.LocalCalc.prototype.execute):
2140         (Liveness.prototype.localCalc):
2141         * JSAir/opcode.js: Added.
2142         (Inst_forEachArg):
2143         (Inst_hasNonArgEffects):
2144         * JSAir/payload-gbemu-executeIteration.js: Added.
2145         (createPayloadGbemuExecuteIteration):
2146         * JSAir/payload-imaging-gaussian-blur-gaussianBlur.js: Added.
2147         (createPayloadImagingGaussianBlurGaussianBlur):
2148         * JSAir/payload-jsair-ACLj8C.js: Added.
2149         (createPayloadJSAirACLj8C):
2150         * JSAir/payload-typescript-scanIdentifier.js: Added.
2151         (createPayloadTypescriptScanIdentifier):
2152         * JSAir/reg.js: Added.
2153         (Reg):
2154         (Reg.fromReg):
2155         (Reg.prototype.get index):
2156         (Reg.prototype.get type):
2157         (Reg.prototype.get name):
2158         (Reg.prototype.get isCalleeSave):
2159         (Reg.prototype.get isReg):
2160         (Reg.prototype.toString):
2161         (Reg.extract):
2162         (Reg.forEachFast):
2163         (Reg.forEach):
2164         (newGPR):
2165         (Reg.gprs.Reg.fprs.Reg.calleeSaveGPRs.Reg.calleeSaveFPRs.Reg.calleeSaves):
2166         * JSAir/stack_slot.js: Added.
2167         (StackSlot):
2168         (StackSlot.prototype.get byteSize):
2169         (StackSlot.prototype.get kind):
2170         (StackSlot.prototype.get isLocked):
2171         (StackSlot.prototype.get isSpill):
2172         (StackSlot.prototype.get index):
2173         (StackSlot.prototype.ensureSize):
2174         (StackSlot.prototype.get alignment):
2175         (StackSlot.prototype.get offsetFromFP):
2176         (StackSlot.prototype.setOffsetFromFP):
2177         (StackSlot.prototype.toString):
2178         (StackSlot.extract):
2179         (StackSlot.forEachFast):
2180         (StackSlot.forEach):
2181         * JSAir/symbols.js: Added.
2182         * JSAir/test.html: Added.
2183         * JSAir/test.js: Added.
2184         * JSAir/tmp.js: Added.
2185         (Tmp):
2186         (Tmp.fromReg):
2187         (Tmp.prototype.get index):
2188         (Tmp.prototype.get type):
2189         (Tmp.prototype.get isReg):
2190         (Tmp.prototype.toString):
2191         (Tmp.extract):
2192         (Tmp.forEachFast):
2193         (Tmp.forEach):
2194         * JSAir/tmp_base.js: Added.
2195         (TmpBase.prototype.get isGP):
2196         (TmpBase.prototype.get isFP):
2197         (TmpBase.prototype.get isGPR):
2198         (TmpBase.prototype.get isFPR):
2199         (TmpBase.prototype.get reg):
2200         (TmpBase.prototype.get gpr):
2201         (TmpBase.prototype.get fpr):
2202         (TmpBase):
2203         * JSAir/util.js: Added.
2204         (isRepresentableAsInt32):
2205         (addIndexed):
2206         (roundUpToMultipleOf):
2207         (symbolName):
2208         (mergeIntoSet):
2209         (nonEmptyRangesOverlap):
2210         (rangesOverlap):
2211         (removeAllMatching):
2212         (swap):
2213         (bubble):
2214         (bubbleSort):
2215         (currentTime):
2216         (else.currentTime):
2217
2218 2016-05-26  Yusuke Suzuki  <utatane.tea@gmail.com>
2219
2220         [JSC] Allow JSBench to use precise time
2221         https://bugs.webkit.org/show_bug.cgi?id=158050
2222
2223         Reviewed by Geoffrey Garen.
2224
2225         * JSBench/amazon-chrome-win/urem.js:
2226         (else.window.performance.window.performance.now.currentTimeInMS):
2227         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2228         (else.else.currentTimeInMS):
2229         (onload.cb):
2230         (onload):
2231         * JSBench/amazon-chrome/urem.js:
2232         (else.window.performance.window.performance.now.currentTimeInMS):
2233         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2234         (else.else.currentTimeInMS):
2235         (onload.cb):
2236         (onload):
2237         * JSBench/amazon-firefox-win/urm.js:
2238         (else.window.performance.window.performance.now.currentTimeInMS):
2239         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2240         (else.else.currentTimeInMS):
2241         (onload.cb):
2242         (onload):
2243         * JSBench/amazon-firefox/urm.js:
2244         (else.window.performance.window.performance.now.currentTimeInMS):
2245         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2246         (else.else.currentTimeInMS):
2247         (onload.cb):
2248         (onload):
2249         * JSBench/amazon-safari/urem.js:
2250         (else.window.performance.window.performance.now.currentTimeInMS):
2251         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2252         (else.else.currentTimeInMS):
2253         (onload.cb):
2254         (onload):
2255         * JSBench/facebook-chrome-win/urem.js:
2256         (else.window.performance.window.performance.now.currentTimeInMS):
2257         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2258         (else.else.currentTimeInMS):
2259         (onload.cb):
2260         (onload):
2261         * JSBench/facebook-chrome/urem.js:
2262         (else.window.performance.window.performance.now.currentTimeInMS):
2263         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2264         (else.else.currentTimeInMS):
2265         (onload.cb):
2266         (onload):
2267         * JSBench/facebook-firefox-win/urem.js:
2268         (else.window.performance.window.performance.now.currentTimeInMS):
2269         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2270         (else.else.currentTimeInMS):
2271         (onload.cb):
2272         (onload):
2273         * JSBench/facebook-firefox/urem.js:
2274         (else.window.performance.window.performance.now.currentTimeInMS):
2275         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2276         (else.else.currentTimeInMS):
2277         (onload.cb):
2278         (onload):
2279         * JSBench/facebook-safari/urem.js:
2280         (else.window.performance.window.performance.now.currentTimeInMS):
2281         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2282         (else.else.currentTimeInMS):
2283         (onload.cb):
2284         (onload):
2285         * JSBench/google-chrome-win/urem.js:
2286         (else.window.performance.window.performance.now.currentTimeInMS):
2287         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2288         (else.else.currentTimeInMS):
2289         (onload.cb):
2290         (onload):
2291         * JSBench/google-chrome/urem.js:
2292         (else.window.performance.window.performance.now.currentTimeInMS):
2293         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2294         (else.else.currentTimeInMS):
2295         (onload.cb):
2296         (onload):
2297         * JSBench/google-firefox-win/urem.js:
2298         (else.window.performance.window.performance.now.currentTimeInMS):
2299         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2300         (else.else.currentTimeInMS):
2301         (onload.cb):
2302         (onload):
2303         * JSBench/google-firefox/uem.js:
2304         (else.window.performance.window.performance.now.currentTimeInMS):
2305         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2306         (else.else.currentTimeInMS):
2307         (onload.cb):
2308         (onload):
2309         * JSBench/google-safari/urem.js:
2310         (else.window.performance.window.performance.now.currentTimeInMS):
2311         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2312         (else.else.currentTimeInMS):
2313         (onload.cb):
2314         (onload):
2315         * JSBench/harness.js:
2316         (runBenchmark.window.currentTimeInMS):
2317         (runBenchmark.else.window.currentTimeInMS):
2318         * JSBench/twitter-chrome-win/rem.js:
2319         (else.window.performance.window.performance.now.currentTimeInMS):
2320         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2321         (else.else.currentTimeInMS):
2322         (onload.cb):
2323         (onload):
2324         * JSBench/twitter-chrome/urem.js:
2325         (else.window.performance.window.performance.now.currentTimeInMS):
2326         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2327         (else.else.currentTimeInMS):
2328         (onload.cb):
2329         (onload):
2330         * JSBench/twitter-firefox-win/urem.js:
2331         (else.window.performance.window.performance.now.currentTimeInMS):
2332         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2333         (else.else.currentTimeInMS):
2334         (onload.cb):
2335         (onload):
2336         * JSBench/twitter-firefox/urem.js:
2337         (else.window.performance.window.performance.now.currentTimeInMS):
2338         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2339         (else.else.currentTimeInMS):
2340         (onload.cb):
2341         (onload):
2342         * JSBench/twitter-safari/urem.js:
2343         (else.window.performance.window.performance.now.currentTimeInMS):
2344         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2345         (else.else.currentTimeInMS):
2346         (onload.cb):
2347         (onload):
2348         * JSBench/yahoo-chrome-win/urem.js:
2349         (else.window.performance.window.performance.now.currentTimeInMS):
2350         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2351         (else.else.currentTimeInMS):
2352         (onload.cb):
2353         (onload):
2354         * JSBench/yahoo-chrome/urem.js:
2355         (else.window.performance.window.performance.now.currentTimeInMS):
2356         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2357         (else.else.currentTimeInMS):
2358         (onload.cb):
2359         (onload):
2360         * JSBench/yahoo-firefox-win/urem.js:
2361         (else.window.performance.window.performance.now.currentTimeInMS):
2362         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2363         (else.else.currentTimeInMS):
2364         (onload.cb):
2365         (onload):
2366         * JSBench/yahoo-firefox/urem.js:
2367         (else.window.performance.window.performance.now.currentTimeInMS):
2368         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2369         (else.else.currentTimeInMS):
2370         (onload.cb):
2371         (onload):
2372         * JSBench/yahoo-safari/urem.js:
2373         (else.window.performance.window.performance.now.currentTimeInMS):
2374         (else.else.typeof.preciseTime.string_appeared_here.currentTimeInMS):
2375         (else.else.currentTimeInMS):
2376         (onload.cb):
2377         (onload):
2378
2379 2016-05-25  Geoffrey Garen  <ggaren@apple.com>
2380
2381         replaceable own properties seem to ignore replacement after property caching
2382         https://bugs.webkit.org/show_bug.cgi?id=158091
2383
2384         Reviewed by Darin Adler.
2385
2386         * MallocBench/MallocBench.xcodeproj/project.pbxproj:
2387         * MallocBench/MallocBench/Benchmark.cpp:
2388         * MallocBench/MallocBench/Interpreter.cpp:
2389         (Interpreter::doMallocOp):
2390         * MallocBench/MallocBench/Interpreter.h:
2391         * MallocBench/MallocBench/fastMallocLog.63316.ops: Added.
2392         * MallocBench/MallocBench/jetstream.cpp: Added.
2393         (benchmark_jetstream):
2394         * MallocBench/MallocBench/jetstream.h: Added.
2395
2396 2016-05-25  Keith Miller  <keith_miller@apple.com>
2397
2398         Unreviewed, add JSBench to the skipped list for now since it doesn't
2399         work currently.
2400
2401         * Skipped:
2402
2403 2016-05-17  Keith Miller  <keith_miller@apple.com>
2404         We should have JSBench in PerformanceTests
2405         https://bugs.webkit.org/show_bug.cgi?id=157952
2406
2407         Rubber-stamped by Saam Barati.
2408
2409         There are some slight changes to the layout of the test directory
2410         to make it work nicely with run-jsc-benchmarks. Before JSBench
2411         had each of the browser specific sub-tests in a sub-directory.
2412         These have been flattened e.g. amazon/safari/ has become
2413         amazon-safari/.
2414
2415         * JSBench/amazon-chrome-win/urem.html: Added.
2416         * JSBench/amazon-chrome-win/urem.js: Added.
2417         * JSBench/amazon-chrome/urem.html: Added.
2418         * JSBench/amazon-chrome/urem.js: Added.
2419         * JSBench/amazon-firefox-win/urm.html: Added.
2420         * JSBench/amazon-firefox-win/urm.js: Added.
2421         * JSBench/amazon-firefox/urm.html: Added.
2422         * JSBench/amazon-firefox/urm.js: Added.
2423         * JSBench/amazon-safari/urem.html: Added.
2424         * JSBench/amazon-safari/urem.js: Added.
2425         * JSBench/browsercheck.js: Added.
2426         * JSBench/facebook-chrome-win/urem.html: Added.
2427         * JSBench/facebook-chrome-win/urem.js: Added.
2428         * JSBench/facebook-chrome/urem.html: Added.
2429         * JSBench/facebook-chrome/urem.js: Added.
2430         * JSBench/facebook-firefox-win/urem.html: Added.
2431         * JSBench/facebook-firefox-win/urem.js: Added.
2432         * JSBench/facebook-firefox/urem.html: Added.
2433         * JSBench/facebook-firefox/urem.js: Added.
2434         * JSBench/facebook-safari/urem.html: Added.
2435         * JSBench/facebook-safari/urem.js: Added.
2436         * JSBench/google-chrome-win/urem.html: Added.
2437         * JSBench/google-chrome-win/urem.js: Added.
2438         * JSBench/google-chrome/urem.html: Added.
2439         * JSBench/google-chrome/urem.js: Added.
2440         * JSBench/google-firefox-win/urem.html: Added.
2441         * JSBench/google-firefox-win/urem.js: Added.
2442         * JSBench/google-firefox/uem.html: Added.
2443         * JSBench/google-firefox/uem.js: Added.
2444         * JSBench/google-safari/urem.html: Added.
2445         * JSBench/google-safari/urem.js: Added.
2446         * JSBench/harness.html: Added.
2447         * JSBench/harness.js: Added.
2448         * JSBench/harness.py: Added.
2449         * JSBench/index.html: Added.
2450         * JSBench/reload.html: Added.
2451         * JSBench/twitter-chrome-win/rem.html: Added.
2452         * JSBench/twitter-chrome-win/rem.js: Added.
2453         * JSBench/twitter-chrome/urem.html: Added.
2454         * JSBench/twitter-chrome/urem.js: Added.
2455         * JSBench/twitter-firefox-win/urem.html: Added.
2456         * JSBench/twitter-firefox-win/urem.js: Added.
2457         * JSBench/twitter-firefox/urem.html: Added.
2458         * JSBench/twitter-firefox/urem.js: Added.
2459         * JSBench/twitter-safari/urem.html: Added.
2460         * JSBench/twitter-safari/urem.js: Added.
2461         * JSBench/yahoo-chrome-win/urem.html: Added.
2462         * JSBench/yahoo-chrome-win/urem.js: Added.
2463         * JSBench/yahoo-chrome/urem.html: Added.
2464         * JSBench/yahoo-chrome/urem.js: Added.
2465         * JSBench/yahoo-firefox-win/urem.html: Added.
2466         * JSBench/yahoo-firefox-win/urem.js: Added.
2467         * JSBench/yahoo-firefox/urem.html: Added.
2468         * JSBench/yahoo-firefox/urem.js: Added.
2469         * JSBench/yahoo-safari/urem.html: Added.
2470         * JSBench/yahoo-safari/urem.js: Added.
2471
2472 2016-05-20  Ryosuke Niwa  <rniwa@webkit.org>
2473
2474         run-benchmark's results should contain Animometer's debug output
2475         https://bugs.webkit.org/show_bug.cgi?id=157941
2476
2477         Reviewed by Stephanie Lewis.
2478
2479         Made developer.html support the JSON generated by run-benchmark which stores everything under debugOutput.
2480
2481         * Animometer/resources/debug-runner/animometer.js:
2482         (Utilities.initialize): Unwrap debugOutput in the case run-benchmark's result JSON is used.
2483
2484 2016-05-18  Timothy Hatcher  <timothy@apple.com>
2485
2486         Make Animometer work in all browsers
2487         https://bugs.webkit.org/show_bug.cgi?id=157855
2488         rdar://problem/26338521
2489
2490         Reviewed by Jon Lee.
2491
2492         * Animometer/resources/runner/logo.svg: Use a symbol instead
2493         of putting the id on the root svg. This works in all browsers.
2494
2495 2016-05-07  Timothy Hatcher  <timothy@apple.com>
2496
2497         Update Animometer design
2498         https://bugs.webkit.org/show_bug.cgi?id=157449
2499
2500         Reviewed by Darin Adler.
2501
2502         * Animometer/developer.html: Stop including runner/animometer.css.
2503         * Animometer/index.html: Udpated elements to fit new styles.
2504
2505         * Animometer/resources/debug-runner/animometer.css:
2506         Copy the old runner/animometer.css to here so the debug runner is unaffected.
2507
2508         * Animometer/resources/runner/animometer.css:
2509         New styles for the design. Drop flex box for broad browser support.
2510
2511         * Animometer/resources/runner/animometer.js:
2512         (ResultsTable.clear): Use textContent.
2513         (window.sectionsManager.showSection): Add class to the body.
2514         (window.sectionsManager.setSectionScore): Use textContent, not innerHTML.
2515
2516         * Animometer/resources/runner/crystal.svg: Added.
2517         * Animometer/resources/runner/lines.svg: Added.
2518         * Animometer/resources/runner/logo.svg: Added.
2519
2520         * Animometer/resources/runner/tests.js: Shorten test name and title case them.
2521
2522 2016-05-06  Manuel Rego Casasnovas  <rego@igalia.com>
2523
2524         [css-grid] Unprefix CSS Grid Layout properties
2525         https://bugs.webkit.org/show_bug.cgi?id=157137
2526
2527         Reviewed by Simon Fraser.
2528
2529         Remove "-webkit" prefix from all the grid layout properties,
2530         including the display value.
2531         Update the source code to remove the prefix where it was used too.
2532
2533         * Layout/auto-grid-lots-of-data.html:
2534         * Layout/fixed-grid-lots-of-data.html:
2535         * Layout/fixed-grid-lots-of-stretched-data.html:
2536
2537 2016-04-25  Geoffrey Garen  <ggaren@apple.com>
2538
2539         bmalloc: Misc improvements to MallocBench
2540         https://bugs.webkit.org/show_bug.cgi?id=157004
2541
2542         Reviewed by Darin Adler.
2543
2544         * MallocBench/run-malloc-benchmarks: Added --memory and --memory_warning
2545         modes for focused memory testing.
2546
2547         * MallocBench/MallocBench/Benchmark.cpp:
2548         (Benchmark::printReport): Clarified output.
2549
2550         (Benchmark::currentMemoryBytes): Added compressed memory because top
2551         does the same. (It always happens to zero in the benchmarks we run. But
2552         this is good for sanity.)
2553
2554         * MallocBench/MallocBench/CommandLine.cpp: Moved up to 8 runs to reduce
2555         variance.
2556
2557         * MallocBench/MallocBench/alloc_free.cpp:
2558         (benchmark_alloc_free): Cycle a single allocation in order to stress
2559         the effect of merging on calls to madvise.
2560
2561         * MallocBench/MallocBench/big.cpp:
2562         (benchmark_big): Graduated to 8kB-128kB because medium tests up to 8 and
2563         our large allocator doesn't kick in until 64kB.
2564
2565         * MallocBench/MallocBench/medium.cpp:
2566         (benchmark_medium): Test all the way down to 1kB because our large
2567         allocator used to service 1kB allocations and 1kB is an interesting
2568         middle size where memory is unusually large but allocation throughput
2569         still matters.
2570
2571         * MallocBench/MallocBench/stress.cpp:
2572         (benchmark_stress): Reduced the churn count to match stress_aligned
2573         because this test was taking too long to complete.
2574
2575         * MallocBench/MallocBench/stress_aligned.cpp:
2576         (benchmark_stress_aligned): Our new large allocator can handle even
2577         more absurdly large values.
2578
2579 2016-04-25  Simon Fraser  <simon.fraser@apple.com>
2580
2581         Add a content animation test that uses SVG animation.
2582         https://bugs.webkit.org/show_bug.cgi?id=156827
2583
2584         * Animation/svg-animation.html: Added.
2585         * Skipped:
2586
2587 2016-04-22  Simon Fraser  <simon.fraser@apple.com>
2588
2589         Skip two content animation tests which are only meant for iOS testing.
2590
2591         * Animation/css-animation.html: Added.
2592         * Animation/raf-animation.html: Added.
2593
2594         * Skipped:
2595
2596 2016-04-20  Simon Fraser  <simon.fraser@apple.com>
2597
2598         Add content animation tests to benchmark_runner, and allow the runner to collect device data as part of the results
2599         https://bugs.webkit.org/show_bug.cgi?id=156827
2600
2601         Add two files missing from the previous commit.
2602
2603         * Animation/css-animation.html: Added.
2604         * Animation/raf-animation.html: Added.
2605
2606 2016-04-20  Simon Fraser  <simon.fraser@apple.com>
2607
2608         Add content animation tests to benchmark_runner, and allow the runner to collect device data as part of the results
2609         https://bugs.webkit.org/show_bug.cgi?id=156827
2610
2611         Reviewed by Stephanie Lewis.
2612
2613         Two new files for the content-animation suite.
2614
2615         After patching for use in the benchmark, these tests are a little different to other benchmarks.
2616         The test content itself does not collect performance data; the tests spit out a boilerplate JSON
2617         result with a placeholder for framerate, which is collected in native code.
2618
2619         When run as a benchmark, test completion involves a couple of bounces between the test and MobileSafari.
2620         Test completion is initiated by a setTimeout() in the test, at which point location.hash is set to "#done".
2621         MobileSafari detects that, and asynchronously dumps performance data. Once this is complete, MobileSafari
2622         changes the URL has to "#submit", which triggers the XHR to the test relay that indicates the test is
2623         complete.
2624
2625         * Animation/css-animation.html: Added.
2626         * Animation/raf-animation.html: Added.
2627
2628 2016-04-15  Jon Lee  <jonlee@apple.com>
2629
2630         Animometer test could report a NaN
2631         https://bugs.webkit.org/show_bug.cgi?id=156646
2632
2633         Reviewed by Darin Adler.
2634         Provisionally reviewed by Said Abou-Hallawa.
2635
2636         * Animometer/tests/resources/main.js:
2637         (didFinishInterval): The ramp controller has a first phase where it ramps up the complexity and
2638         reacts based on how well the system handles the load. The assumption was that it would handle at least
2639         1 particle easily. That is not always the case. As a result, an interpolation calculation could
2640         end up setting an upper bound of NaN.
2641
2642         This occurs because we never get out of the first tier, so this._lastTierComplexity is undefined.
2643         Now that we guarantee a minimum complexity of 1, modify the conditional to check for this._lastTierComplexity
2644         before interpolating the upper bound of the first ramp. In the case where the system struggles with
2645         1 particle, set it to currentComplexity.
2646
2647 2016-04-09  Jon Lee  <jonlee@apple.com>
2648
2649         Update Animometer to accommodate different screens
2650         https://bugs.webkit.org/show_bug.cgi?id=156449
2651
2652         Reviewed by Darin Adler.
2653         Provisionally reviewed by Said Abou-Hallawa.
2654
2655         * Animometer/index.html: Wrap button in a container to add padding at the bottom.
2656         * Animometer/resources/debug-runner/animometer.css:
2657         (@media screen and (min-device-width: 1800px)): Deleted.
2658         (@media screen and (min-width: 1800px)): Cannot use min-device-width since it may match incorrectly.
2659         (screen and (max-device-height: 414px) and (orientation: landscape)): Some devices swap device width
2660         and height with orientation change.
2661         * Animometer/resources/runner/animometer.css: Similar.
2662         (screen and (min-device-width: 1024px) and (orientation: landscape)):
2663         (screen and (max-device-height: 414px) and (orientation: landscape)):
2664         (.frame-container): On smaller iPhones, adding 1px prevents the navigation bars from appearing.
2665         (@media screen and (min-device-width: 768px) and (max-device-width: 1024px)): Deleted.
2666         (@media (min-device-height: 768px) and (max-device-height: 1024px)): Target iPad Airs and similar.
2667         (@media screen and (min-device-width: 1024px) and (max-device-width: 1366px)): Deleted.
2668         (@media screen and (max-device-width: 1024px) and (min-device-height: 1366px)): Target iPad Pro.
2669         (#results footer): Add padding below the button for testing again.
2670         * Animometer/tests/master/multiply.html: Remove the center text.
2671         * Animometer/tests/master/resources/text.js: Update the test so that in every frame the text moves.
2672         * Animometer/tests/master/text.html: Update the text sizing depending on the size of the device.
2673
2674 2016-04-08  Jon Lee  <jonlee@apple.com>
2675
2676         Have Animometer benchmark always start with complexity of 1
2677         https://bugs.webkit.org/show_bug.cgi?id=156432
2678
2679         Reviewed by Ryosuke Niwa.
2680
2681         * Animometer/tests/resources/main.js: Update the default Controller and RampController to
2682         set its minimum complexities to 1 instead of 0.
2683
2684 2016-04-08  Jon Lee  <jonlee@apple.com>
2685
2686         Fix SVG benchmark test
2687         https://bugs.webkit.org/show_bug.cgi?id=156410
2688
2689         Reviewed by Dean Jackson.
2690
2691         * Animometer/resources/extensions.js: Update Point.zero to be a static Point.
2692         * Animometer/tests/simple/resources/tiled-canvas-image.js:
2693         (Stage.call._setupTiles): Refactor.
2694         * Animometer/tests/master/resources/particles.js:
2695         (Particle.prototype.reset): Use Point.center.
2696         (complexity): We are not using a gradient background anymore, so remove the +1.
2697         * Animometer/tests/master/resources/svg-particles.js: Update to use SVG transform
2698         instead of CSS transform.
2699
2700 2016-04-06  Jon Lee  <jonlee@apple.com>
2701
2702         Update master benchmark with SVG test
2703         https://bugs.webkit.org/show_bug.cgi?id=156273
2704
2705         Reviewed by Dean Jackson.
2706         Provisionally reviewed by Said Abou-Hallawa.
2707
2708         Switch masks tests for SVG path test.
2709
2710         * Animometer/resources/debug-runner/tests.js: Move mask test here.
2711         * Animometer/resources/runner/tests.js: Add SVG test here.
2712         * Animometer/tests/dom/particles.html: Renamed from PerformanceTests/Animometer/tests/master/particles.html.
2713         * Animometer/tests/dom/resources/dom-particles.js: Renamed from PerformanceTests/Animometer/tests/master/resources/dom-particles.js.
2714
2715         * Animometer/tests/master/resources/particles.js: Add minPosition for bounds checking. Prevents particle from being
2716         partially obscured.
2717         * Animometer/tests/master/resources/svg-particles.js: Added.
2718         (Particle): The particle is either a path object or a rect using a path as a clip. The
2719         same path is used either way. For each particle create a linear gradient with a random
2720         rotation.
2721         (SVGParticlesStage): Look in #shapes to see how many different kinds of paths are available.
2722         This makes the test more generic in case other shapes need to be tested.
2723         * Animometer/tests/master/svg-particles.html: Added. Have two defs, one that houses each
2724         particle's gradient, and one that holds the shape templates.
2725
2726 2016-03-27  Hunseop Jeong  <hs85.jeong@samsung.com>
2727
2728         [EFL] REGRESSION(r188793): It made 200 layout tests and Bindings/event-target-wrapper.html performance test fail
2729         https://bugs.webkit.org/show_bug.cgi?id=148470 
2730
2731         Reviewed by Darin Adler.
2732
2733         * Skipped: Unskip the Bindings/event-target-wrapper test.
2734
2735 2016-03-23  Jon Lee  <jonlee@apple.com>
2736
2737         Update focus and leaves tests
2738         https://bugs.webkit.org/show_bug.cgi?id=155825
2739
2740         Reviewed by Simon Fraser.
2741
2742         Particles would improperly disappear, before they were fully off stage. Update the calculation.
2743         * Animometer/tests/dom/resources/leaves.js:
2744         * Animometer/tests/master/resources/leaves.js:
2745
2746         * Animometer/tests/master/focus.html: Update the center element styling.
2747         * Animometer/tests/master/resources/focus.js:
2748         (FocusElement.Utilities.createClass): Give enough space in the container for each particle for the blur
2749         to spread. It should be about 3x more space than the blur radius on each side.
2750         (Stage.call.initialize): Ditto for the center element.
2751
2752 2016-03-23  Jon Lee  <jonlee@apple.com>
2753
2754         Update support for other platforms
2755         https://bugs.webkit.org/show_bug.cgi?id=155824
2756
2757         Reviewed by Simon Fraser.
2758
2759         * Animometer/resources/debug-runner/animometer.css: Remove extraneous media query. All of it should
2760         be handled in the release stylesheet.
2761         * Animometer/resources/debug-runner/animometer.js: Add support for browsers that return an HTMLCollection
2762         when retrieving radio elements with a name, instead of the selected value.
2763         * Animometer/resources/runner/animometer.css: Adjust the queries for devices of varying widths.
2764         (.frame-container): Move overflow:hidden to #stage.
2765         * Animometer/tests/master/resources/stage.css: Consolidate into tests/resources/stage.css.
2766         * Animometer/tests/resources/stage.css:
2767         (body): Remove overflow:hidden.
2768         (#stage): Set overflow:hidden here.
2769         (#center-text): Moved from master/resources/stage.css.
2770
2771         Update stylesheet hrefs.
2772         * Animometer/tests/master/canvas-stage.html:
2773         * Animometer/tests/master/focus.html:
2774         * Animometer/tests/master/leaves.html:
2775         * Animometer/tests/master/multiply.html:
2776         * Animometer/tests/master/particles.html:
2777         * Animometer/tests/master/text.html: Adjust text size to fit in the device screen.
2778
2779 2016-03-23  Jon Lee  <jonlee@apple.com>
2780
2781         Make the benchmark require device to be in landscape orientation
2782         https://bugs.webkit.org/show_bug.cgi?id=155822
2783         rdar://problem/25258650
2784
2785         Reviewed by Ryosuke Niwa.
2786
2787         Check that the device is in landscape orientation. If not, disable the button to start it,
2788         and show a warning message.
2789
2790         * Animometer/developer.html: Add a message about how the browser should be set up. Include a
2791         warning message that appears if the orientation is incorrect on mobile devices.
2792         * Animometer/index.html: Ditto.
2793
2794         * Animometer/resources/debug-runner/animometer.css: Migrate the .hidden rule into the release
2795         stylesheet. Update the style to accommodate the new UI.
2796         * Animometer/resources/runner/animometer.css:
2797
2798         * Animometer/resources/runner/animometer.js:
2799         (window.benchmarkController.initialize): Add the orientation listener is needed.
2800         (window.benchmarkController.addOrientationListenerIfNecessary): Only mobile devices need this. Check
2801         to see for support of window.orientation.
2802         (window.benchmarkController._orientationChanged): Toggle the warning based on whether we match the
2803         landscape query. Set a state variable, which is needed for the debug harness. Call updateStartButtonState.
2804         (window.benchmarkController.updateStartButtonState):
2805         * Animometer/resources/debug-runner/animometer.js: Change _updateStartButtonState to return
2806         a boolean about whether at least one test is selected. That will be used in
2807         benchmarkController.updateStartButtonState(). Move the load event listener to the release version.
2808         (window.benchmarkController.updateStartButtonState): Override the release version, and also check
2809         that at least one test is selected.
2810
2811 2016-03-22  Geoffrey Garen  <ggaren@apple.com>
2812
2813         MallocBench: consolidate regression testing for aligned allocation
2814         https://bugs.webkit.org/show_bug.cgi?id=155762
2815
2816         Reviewed by Michael Saboff.
2817
2818         * MallocBench/MallocBench.xcodeproj/project.pbxproj:
2819         * MallocBench/MallocBench/Benchmark.cpp:
2820         * MallocBench/MallocBench/memalign.cpp: Removed.
2821         * MallocBench/MallocBench/memalign.h: Removed. The stress_aligned test
2822         covers this and much more.
2823
2824         * MallocBench/MallocBench/stress_aligned.cpp:
2825         (benchmark_stress_aligned): Include specific tests for extreme sizes
2826         and alignments.
2827
2828 2016-03-21  Jon Lee  <jonlee@apple.com>
2829
2830         Update benchmark tests
2831         https://bugs.webkit.org/show_bug.cgi?id=155723
2832
2833         Reviewed by Darin Adler.
2834         Provisionally reviewed by Said Abou-Hallawa.
2835
2836         Add quadratic and bezier segments to the canvas path test.
2837
2838         * Animometer/resources/runner/tests.js: Some of the query strings are unnecessary.
2839         Rename the test.
2840         * Animometer/tests/master/resources/canvas-stage.js:
2841         (tune): Update to be able to take an array of possible constructors. Choose one randomly.
2842         * Animometer/tests/master/resources/canvas-tests.js:
2843         (CanvasLinePoint.Utilities.createClass): Move the point selection out to a separate
2844         function called randomPoint() for reuse. Move X_LOOPS, Y_LOOPS, and offsets into the
2845         class definition.
2846         (randomPoint): Scale the grid down a little bit so that the lines along the edge of the
2847         canvas are not cut off when the stroke size is thick.
2848         (CanvasQuadraticSegment): Added.
2849         (CanvasBezierSegment): Added.
2850         (SimpleCanvasStage): Pass in an array of the different segment types. Since line segments
2851         are short compared to the curved ones, make it twice as likely to render a line segment.
2852         (SimpleCanvasStage.animate): Update the drawing code so that we render all line segments.
2853
2854         Add a helper method that selects a random element from an array.
2855
2856         * Animometer/tests/resources/main.js:
2857         (Stage.randomElementInArray): Select a random element from the provided array.
2858
2859         * Animometer/tests/bouncing-particles/resources/bouncing-tagged-images.js: Refactor.
2860         * Animometer/tests/dom/resources/leaves.js: Ditto.
2861         * Animometer/tests/master/resources/dom-particles.js: Ditto.
2862         * Animometer/tests/master/resources/image-data.js: Ditto.
2863         * Animometer/tests/master/resources/leaves.js: Ditto.
2864         * Animometer/tests/simple/resources/simple-canvas-paths.js: Ditto.
2865
2866         Add canvas tests that includes all stroke and fill paths. This makes it possible to avoid having to
2867         include the full simple canvas suite for perf testing.
2868
2869         * Animometer/resources/debug-runner/tests.js: Add new tests. Move the canvas test into the Canvas
2870         suite.
2871         * Animometer/tests/simple/resources/simple-canvas-paths.js: Add a CanvasStroke and CanvasFill particle
2872         that random selects an object to render.
2873
2874         * Animometer/resources/debug-runner/tests.js: Move 3D suite before basic canvas suite.
2875         When updating the perf bot script, we will include the suites up to this one, but exclude
2876         the basic canvas suite.
2877
2878         Move compositing transforms test to HTML suite and remove the empty Miscellaneous suite.
2879
2880         * Animometer/resources/debug-runner/tests.js:
2881         * Animometer/tests/dom/compositing-transforms.html: Renamed from PerformanceTests/Animometer/tests/misc/compositing-transforms.html.
2882         * Animometer/tests/dom/resources/compositing-transforms.js: Renamed from PerformanceTests/Animometer/tests/misc/resources/compositing-transforms.js.
2883
2884         Clean up miscellaneous test suite. Add a canvas ellipse test, and remove the other
2885         canvas tests.
2886
2887         * Animometer/resources/debug-runner/tests.js: Add ellipse tests to the simple suite.
2888         * Animometer/tests/misc/canvas-electrons.html: Removed.
2889         * Animometer/tests/misc/canvas-stars.html: Removed.
2890         * Animometer/tests/misc/resources/canvas-electrons.js: Removed.
2891         * Animometer/tests/misc/resources/canvas-stars.js: Removed.
2892         * Animometer/tests/simple/resources/simple-canvas-paths.js: Add ellipse primitives.
2893
2894         Merge text tests together into one.
2895
2896         * Animometer/resources/runner/tests.js: Remove international.html.
2897         * Animometer/tests/master/international.html: Removed.
2898         * Animometer/tests/master/resources/text.js:
2899         (animate): Update styling. Manually calculate gradients for the shadow particles.
2900         Reduce the step size for y direction to avoid cutting text off at the margins. Increase
2901         step for x since there will be a little more room.
2902         * Animometer/tests/master/text.html: Add more translations and lay it out in a table.
2903
2904 2016-03-20  Jon Lee  <jonlee@apple.com>
2905
2906         Add a link to show debug data
2907         https://bugs.webkit.org/show_bug.cgi?id=155724
2908
2909         Reviewed by Simon Fraser.
2910
2911         * Animometer/developer.html: Attach the onclick handler to the score.
2912         * Animometer/index.html: Ditto.
2913
2914 2016-03-18  Dean Jackson  <dino@apple.com>
2915
2916         Add a basic WebGL test to Animometer
2917         https://bugs.webkit.org/show_bug.cgi?id=155475
2918         <rdar://problem/25156860>
2919
2920         Reviewed by Simon Fraser and Jon Lee.
2921
2922         Add a pretty simple WebGL test to Animometer
2923         which tries to draw a number of animated triangles.
2924         The result still needs a bit of tuning.
2925
2926         * Animometer/resources/debug-runner/tests.js: Add a new
2927         Suite for "3D" tests.
2928         * Animometer/tests/3d/resources/webgl.js: Added.
2929         * Animometer/tests/3d/webgl.html: Added.
2930
2931 2016-03-18  Jon Lee  <jonlee@apple.com>
2932
2933         Add support for statically linking to a specific test
2934         https://bugs.webkit.org/show_bug.cgi?id=155631
2935
2936         Rubber-stamped by Darin Adler.
2937
2938         * Animometer/developer.html: Update to call restartBenchmark instead so that it works for
2939         both the preset and the manually set test sessions.
2940         * Animometer/resources/debug-runner/animometer.css:
2941         (.tree .link): Style the "link" UI.
2942         * Animometer/resources/debug-runner/animometer.js: Move updateDisplay from suitesManager
2943         to optionsManager since this is a visual option and has nothing to do with the suites
2944         settings. Update the construction of the test UI by including a "link" after each test.
2945         Clicking on that link brings up a JS prompt with a URL and a query string with the current
2946         parameters of the controller, and selected test. Pasting this URL into the location bar will
2947         automatically start running the selected test.
2948         (suitesManager.suitesFromQueryString): Iterate through the Suites and tests and find the one
2949         that matches the provided parameters. Returns an object similar to the form in
2950         suitesManager.updateLocalStorageFromUI.
2951         (benchmarkController.initialize): After settings up the events and options, try parsing the
2952         query string and running the benchmark immediately. Otherwise, fall back to the form.
2953         (benchmarkController.startBenchmark): Store the options and suites into member variables for
2954         reuse in restartBenchmark.
2955         (benchmarkController.startBenchmarkImmediatelyIfEncoded): Convert the query string to an object.
2956         If that's successful, find the suite and test referenced in the query string. Start the benchmark if
2957         the search for the test succeeded.
2958         * Animometer/resources/extensions.js:
2959         (Utilities.stripNonASCIICharacters): Helper method to convert the name of the suite and test
2960         into a query-string-friendly version.
2961         (Utilities.convertObjectToQueryString): Helper method to convert an object to query string
2962         format.
2963         (Utilities.convertQueryStringToObject): Helper method to convert query string into an object
2964         with properties and values.
2965
2966 2016-03-16  Jon Lee  <jonlee@apple.com>
2967
2968         Add a new benchmark test
2969         https://bugs.webkit.org/show_bug.cgi?id=155570
2970
2971         Reviewed by Simon Fraser.
2972
2973         New Leaves test includes various image sizes and opacity.
2974
2975         * Animometer/resources/debug-runner/tests.js: Add it to the HTML test suite.
2976         * Animometer/tests/dom/leaves.html: Added.
2977         * Animometer/tests/dom/resources/leaves.js: Added. Override the
2978         (Particle.call.reset): Uses a range of sizes, and opacity.
2979         (Particle.call.animate): Opacity goes up then down. When it hits 0, reset the particle.
2980         (Particle.call.move): Set transform and opacity.
2981         * Animometer/tests/master/resources/leaves.js: Get rid of the closure so that it
2982         can be used in this test. Update the relative path so that it works in both the master
2983         and dom test suite.
2984
2985 2016-03-15  Simon Fraser  <simon.fraser@apple.com>
2986
2987         Add developer Animometer test that bounces P3-tagged images
2988         https://bugs.webkit.org/show_bug.cgi?id=155511
2989
2990         Reviewed by Tim Horton.
2991         
2992         Add a test for rendering performance of tagged images. The 5 images are tagged
2993         with the Display P3 colorspace.
2994
2995         * Animometer/resources/debug-runner/tests.js:
2996         * Animometer/tests/bouncing-particles/bouncing-tagged-images.html: Added.
2997         * Animometer/tests/bouncing-particles/resources/bouncing-tagged-images.js: Added.
2998         * Animometer/tests/bouncing-particles/resources/image1.jpg: Added.
2999         * Animometer/tests/bouncing-particles/resources/image2.jpg: Added.
3000         * Animometer/tests/bouncing-particles/resources/image3.jpg: Added.
3001         * Animometer/tests/bouncing-particles/resources/image4.jpg: Added.
3002         * Animometer/tests/bouncing-particles/resources/image5.jpg: Added.
3003
3004 2016-03-09  Jon Lee  <jonlee@apple.com>
3005
3006         Enhance existing Animometer tests
3007         https://bugs.webkit.org/show_bug.cgi?id=155261
3008
3009         Reviewed by Simon Fraser.
3010
3011         * Animometer/tests/master/resources/canvas-tests.js: Add a gradient to
3012         the filled circles. To expose more of the gradient, add another circle.
3013         (SimpleCanvasStage.call.animate): For each frame, create a gradient with
3014         undulating stop points and colors. Fill the circles twice; once with
3015         the solid color, and once with the gradient.
3016
3017         * Animometer/tests/master/resources/dom-particles.js: Refactor the
3018         emission variables into a separate stage for this test. Add a colorOffset
3019         variable to make the colors of each particle slightly different, since
3020         the ramp controller can add large numbers of particles all at once, which
3021         would otherwise get all the same color.
3022         * Animometer/tests/master/resources/particles.js:
3023         (initialize): Remove the code specific to the SVG mask test.
3024
3025         * Animometer/tests/master/resources/image-data.js:
3026         (initialize): Remove unused local variable.
3027         * Animometer/tests/master/resources/multiply.js:
3028         (initialize): Make the test harder by adding more total particles.
3029
3030 2016-03-09  Jon Lee  <jonlee@apple.com>
3031
3032         Add text tests
3033         https://bugs.webkit.org/show_bug.cgi?id=155257
3034
3035         Reviewed by Simon Fraser.
3036
3037         * Animometer/resources/extensions.js:
3038         (UnitBezier.Utilities.createClass): Add a class that computes Bezier points
3039         assuming that two of the control points are at (0,0) and (1,1). Taken from
3040         WebCore/platform/graphics/UnitBezier.h
3041         * Animometer/resources/runner/tests.js: Add a test for English text and one
3042         for international text.
3043         * Animometer/tests/master/international.html: Added.
3044         * Animometer/tests/master/resources/text.js: Added. The test assumes there is
3045         #template div which it will copy. The copies are placed behind the template, and
3046         are set with different colors each frame. They are moved around with CSS transform.
3047         * Animometer/tests/master/text.html: Added.
3048
3049         Remove the other text tests, since these ones cover the same techniques.
3050         * Animometer/tests/text/layering-text.html: Removed.
3051         * Animometer/tests/text/resources/layering-text.js: Removed.
3052         * Animometer/tests/text/resources/text-boxes.js: Removed.
3053         * Animometer/tests/text/text-boxes.html: Removed.
3054         * Animometer/resources/debug-runner/tests.js:
3055
3056 2016-03-09  Jon Lee  <jonlee@apple.com>
3057
3058         Add a new image test
3059         https://bugs.webkit.org/show_bug.cgi?id=155232
3060
3061         Reviewed by Dean Jackson.
3062         Provisionally reviewed by Said Abou-Hallawa.
3063
3064         The image test renders PNGs and moves them with translate and rotate
3065         transforms. Each particle has a lifetime, and when the lifetime ends or
3066         the particle goes offscreen, it resets itself somewhere on the stage.
3067
3068         * Animometer/resources/debug-runner/tests.js: Remove the CSS bouncing PNG
3069         images test, because this one tests the same technique.
3070         * Animometer/resources/runner/tests.js: Added here as "Leaves".
3071         * Animometer/tests/master/leaves.html: Added.
3072         * Animometer/tests/master/resources/particles.js: Refactor out the parts
3073         specific to the DOM particles test. Consequently make velocity a public
3074         member.
3075         (initialize): The options parameter is never used, so remove it.
3076         (animate): Remove unused local variable.
3077         * Animometer/tests/master/resources/leaves.js: Maintains a focal point that
3078         moves back and forth across the canvas. That point affects the velocity
3079         of the particles. When the focal point is on the leftmost side, it is
3080         between [-6, -2], and set in reset(). When the focal point is on the rightmost
3081         side, it will be from [2, 6].
3082         * Animometer/tests/master/resources/dom-particles.js: Move JS specific to
3083         this test here from particles.js.
3084
3085         New images.
3086         * Animometer/tests/master/resources/compass100.png: Added.
3087         * Animometer/tests/master/resources/console100.png: Added.
3088         * Animometer/tests/master/resources/contribute100.png: Added.
3089         * Animometer/tests/master/resources/debugger100.png: Added.
3090         * Animometer/tests/master/resources/inspector100.png: Added.
3091         * Animometer/tests/master/resources/layout100.png: Added.
3092         * Animometer/tests/master/resources/performance100.png: Added.
3093         * Animometer/tests/master/resources/script100.png: Added.
3094         * Animometer/tests/master/resources/shortcuts100.png: Added.
3095         * Animometer/tests/master/resources/standards100.png: Added.
3096         * Animometer/tests/master/resources/storage100.png: Added.
3097         * Animometer/tests/master/resources/styles100.png: Added.
3098         * Animometer/tests/master/resources/timeline100.png: Added.
3099
3100 2016-03-03  Jon Lee  <jonlee@apple.com>
3101
3102         Add ability to retrieve raw data from release harness
3103         https://bugs.webkit.org/show_bug.cgi?id=155026
3104
3105         Reviewed by Simon Fraser.
3106
3107         * Animometer/developer.html: Remove the special UI in the debug
3108         harness.
3109         * Animometer/resources/runner/animometer.css: Add styles for the
3110         overlay.
3111         * Animometer/resources/runner/animometer.js: Let 'j' show the JSON
3112         results, but only if the overlay doesn't exist. Add 'esc' key to dismiss
3113         the overlay.
3114         (window.benchmarkController.selectResults): Cycle the cases around
3115         so that the first 's' press selects both the benchmark score and
3116         the individual test scores.
3117         * Animometer/resources/debug-runner/animometer.css: Remove
3118         unneeded rules.
3119         * Animometer/resources/debug-runner/animometer.js: Make the same
3120         call to handleKeyPress.
3121
3122 2016-03-03  Jon Lee  <jonlee@apple.com>
3123
3124         Make sure multiply test particles have at least some opacity
3125         https://bugs.webkit.org/show_bug.cgi?id=155027
3126
3127         Reviewed by Simon Fraser.
3128
3129         * Animometer/tests/master/resources/multiply.js:
3130         (initialize): Have the elements spin a little faster to make it
3131         more obvious when the system is being stressed.
3132         (_addTile):
3133         (animate): Make sure each element being animated has at least 1%
3134         opacity.
3135
3136 2016-03-03  Jon Lee  <jonlee@apple.com>
3137
3138         Update image test
3139         https://bugs.webkit.org/show_bug.cgi?id=154962
3140
3141         Rubber-stamped by Darin Adler.
3142
3143         * Animometer/tests/master/image-data.html: Make each canvas have a compositing layer.
3144         * Animometer/tests/master/resources/image-data.js:
3145         (initialize): Update to load multiple images serially.
3146         (_loadImage):
3147         (tune): Use display instead of visibility. When showing an element anew, move it somewhere else.
3148         (_createTestElement): Set up the element, refactor out placement of element to _refreshElement.
3149         (_refreshElement): Place element in a tile grid.
3150         (animate):
3151         (_getRandomNeighboringPixelIndex): Use a more conservative distribution to make the effect last a little longer.
3152         * Animometer/tests/master/resources/compass.svg: Added.
3153         * Animometer/tests/master/resources/console.svg: Added.
3154         * Animometer/tests/master/resources/contribute.svg: Added.
3155         * Animometer/tests/master/resources/debugger.svg: Added.
3156         * Animometer/tests/master/resources/inspector.svg: Added.
3157         * Animometer/tests/master/resources/layout.svg: Added.
3158         * Animometer/tests/master/resources/performance.svg: Added.
3159         * Animometer/tests/master/resources/script.svg: Added.
3160         * Animometer/tests/master/resources/shortcuts.svg: Added.
3161         * Animometer/tests/master/resources/standards.svg: Added.
3162         * Animometer/tests/master/resources/storage.svg: Added.
3163         * Animometer/tests/master/resources/styles.svg: Added.
3164         * Animometer/tests/master/resources/timeline.svg: Added.
3165
3166 2016-03-02  Jon Lee  <jonlee@apple.com>
3167
3168         Add some new controllers, and refine tests
3169         https://bugs.webkit.org/show_bug.cgi?id=154914
3170
3171         Reviewed by Simon Fraser.
3172
3173         Improve tests.
3174
3175         * Animometer/tests/master/focus.html: Move each particle into a layer. Put the particle
3176         in a container element. Expand the container element by the max blur radius, and clip
3177         overflow. This way, when the blur is applied, it avoids causing layer resizes.
3178         * Animometer/tests/master/resources/focus.js:
3179         (FocusElement.Utilities.createClass): Create a container element, and put the particle
3180         inside.
3181         (hide): Set display:none.
3182         (show): Set display:block.
3183         (animate): Apply filters to the container element.
3184         (FocusStage.call.initialize): Instead of inserting and removing elements from the DOM,
3185         keep them in the stage, but set the display style instead. Use this._offsetIndex to
3186         keep track of which elements are displayed.
3187         (FocusStage.call.animate): Move some calculations around to avoid doing unneeded math.
3188         (FocusStage.call.getBlurValue): Make sure elements are always blurred.
3189         (FocusStage.call.getOpacityValue): Make sure elements have some opacity.
3190         * Animometer/tests/master/resources/multiply.js: Have the particles on the edge of the
3191         stage appear less black when the complexity gets large enough.
3192         (tune): Have this._distanceFactor calculate the factor. Avoid calculating square root each
3193         frame.
3194
3195 2016-03-02  Jon Lee  <jonlee@apple.com>
3196
3197         Add some new controllers, and refine tests
3198         https://bugs.webkit.org/show_bug.cgi?id=154914
3199
3200         Reviewed by Simon Fraser.
3201
3202         Add a controller that centers around 30 fps instead of 60 fps.
3203
3204         * Animometer/developer.html: Add a new option.
3205         * Animometer/resources/debug-runner/animometer.js:
3206         * Animometer/resources/runner/animometer.js:
3207         (this._processData.findRegression): When calculating the complexity-frameLength regression,
3208         check the controller, and use a 30 fps baseline if needed.
3209         * Animometer/resources/statistics.js:
3210         (Regression.Utilities.createClass): Update to allow clients to specify the baseline
3211         frame length.
3212         * Animometer/tests/resources/main.js:
3213         (tune): Override some of the constants in RampController. Move those constants out for
3214         easier reading.
3215
3216         Add a fixed controller, with no step.
3217
3218         * Animometer/developer.html: Add a controller that takes no step.
3219         * Animometer/resources/debug-runner/animometer.js:
3220         * Animometer/tests/resources/main.js:
3221         (Rotater.Utilities.createClass):
3222
3223         Switch to ramp controller as default.
3224
3225         * Animometer/developer.html: Increase the test length to 20 seconds.
3226         * Animometer/resources/debug-runner/animometer.js: Rename the "adjustment" field to "controller"
3227         since that is a more accurate description.
3228         * Animometer/resources/debug-runner/graph.js:
3229         * Animometer/resources/runner/animometer.js: Update preferences for release suite.
3230
3231 2016-02-26  Jon Lee  <jonlee@apple.com>
3232
3233         Address Dean's comments in 154673.
3234
3235         * Animometer/developer.html:
3236         * Animometer/resources/debug-runner/animometer.js:
3237         * Animometer/resources/debug-runner/graph.js:
3238
3239 2016-02-25  Jon Lee  <jonlee@apple.com>
3240
3241         Update animation benchmark and tests
3242         https://bugs.webkit.org/show_bug.cgi?id=154673
3243
3244         Reviewed by Dean Jackson.
3245
3246         Update test visuals.
3247
3248         * Animometer/tests/master/resources/canvas-tests.js:
3249         (CanvasLineSegment.Utilities.createClass): Line segments near the edge of the stage get clipped.
3250         Update circle position and radius to minimize impact.
3251         * Animometer/tests/master/resources/particles.js: Get rid of rotating gradient background, and
3252         have 3 locations for emitting particles.
3253         * Animometer/tests/master/resources/multiply.js: Update distance metric so that fringe tiles get
3254         more color.
3255         (initialize): Fix some of the math for laying out the tiles.
3256         (animate): When a tile isn't used, set visibility: hidden.
3257
3258 2016-02-24  Jon Lee  <jonlee@apple.com>
3259
3260         Update animation benchmark and tests
3261         https://bugs.webkit.org/show_bug.cgi?id=154673
3262
3263         Reviewed by Dean Jackson.
3264
3265         Update the ramp controller.
3266
3267         The controller refines the complexity interval to test across.
3268
3269         * Animometer/resources/statistics.js: Add functions that estimate cumulative distribution function.
3270         (Regression): For the flat regression, force the first segment to be at 60 fps.
3271         (valueAt): Add convenience function to return interpolated value based on the regression used.
3272         (_calculateRegression): Include the number of points included for both segments, and the piecewise
3273         errors.
3274         * Animometer/tests/resources/math.js: Make the Kalman estimator subclass Experiment, and allow it
3275         to be reset.
3276
3277         * Animometer/tests/resources/main.js: Initialize the tier such that it starts at 10^0 = 1.
3278         Increase the number of ramps. Maintain three FPS thresholds-- the frame rate of interest, a limit
3279         on the lowest FPS we care to go for later interpolation, and a minimum FPS threshold we want to
3280         aim for each ramp. Also keep three estimators: a running average of the change point, a minimum
3281         boundary for each ramp, and an estimator for all the frames within an interval. The first two
3282         are used to determine the parameters of the next ramp, and the latter allows us to refine the
3283         parameters.
3284         (update): During the tier phase, it is possible that the highest complexity possible for a test
3285         won't stress the system enough to trigger stopping the tier phase and transitioning to the ramps.
3286         If the complexity doesn't change when going to the next tier, we've maxed the test out, and move
3287         on. When the tier phase completed, turn off Controller.frameLengthEstimator, which estimates the
3288         FPS at each tier.
3289         (tune): At each interval, look at the confidence distribution of being on the 60 FPS side or the
3290         slow side. If the slowest FPS we achieve at the ramp's maximum complexity is not at least
3291         _fpsRampSlowThreshold, then increase the maximum complexity. If we ever achieve 60 FPS, increase
3292         the ramp's minimum complexity to that level. If, at an even lower complexity, a glitch causes the
3293         FPS to drop, we reset the minimum complexity.
3294
3295         Have the bootstrap calculation occur between tests. Clean up harness.
3296
3297         * Animometer/resources/debug-runner/animometer.js: Run bootstrap after a test has
3298         completed to avoid doing all of it at the end before showing the results. Clean up
3299         parameters being passed around.
3300         * Animometer/resources/debug-runner/tests.js:
3301         (text):
3302         * Animometer/resources/runner/animometer.js:
3303         (this._processData.calculateScore): Save the results to the same object holding the data.
3304         (this._processData._processData): In the case where a file is dragged, calculate the score
3305         serially. Grab the results object and move it to the results variable and remove it from
3306         the data object. This avoids serializing the results into the JSON.
3307         (this._processData.findRegression): Include the samples used for bootstrapping. Reduce the
3308         resample size to shorten the wait.
3309         * Animometer/resources/runner/benchmark-runner.js:
3310         * Animometer/resources/statistics.js:
3311         (bootstrap): Update how bootstrapData is sorted. In some regression results the mix of
3312         floats and integers causes an alphabetical sort to occur.
3313         * Animometer/resources/strings.js:
3314
3315         Add meta charset so that encodings between harness and test match.
3316
3317         * Animometer/tests/bouncing-particles/bouncing-canvas-images.html:
3318         * Animometer/tests/bouncing-particles/bouncing-canvas-shapes.html:
3319         * Animometer/tests/bouncing-particles/bouncing-css-images.html:
3320         * Animometer/tests/bouncing-particles/bouncing-css-shapes.html:
3321         * Animometer/tests/bouncing-particles/bouncing-svg-images.html:
3322         * Animometer/tests/bouncing-particles/bouncing-svg-shapes.html:
3323         * Animometer/tests/master/canvas-stage.html:
3324         * Animometer/tests/master/focus.html:
3325         * Animometer/tests/master/image-data.html:
3326         * Animometer/tests/master/multiply.html:
3327         * Animometer/tests/master/particles.html:
3328         * Animometer/tests/misc/canvas-electrons.html:
3329         * Animometer/tests/misc/canvas-stars.html:
3330         * Animometer/tests/misc/compositing-transforms.html:
3331         * Animometer/tests/simple/simple-canvas-paths.html:
3332         * Animometer/tests/simple/tiled-canvas-image.html:
3333         * Animometer/tests/template/template-canvas.html:
3334         * Animometer/tests/template/template-css.html:
3335         * Animometer/tests/template/template-svg.html:
3336         * Animometer/tests/text/layering-text.html:
3337         * Animometer/tests/text/text-boxes.html:
3338
3339         Update test harness reporting.
3340
3341         * Animometer/developer.html: Add missing meta charset.
3342         * Animometer/index.html: Remove unnecessary utf-8 declaration.
3343         * Animometer/resources/debug-runner/animometer.css: Add convenience classes for
3344         formatting the results table.
3345         * Animometer/resources/debug-runner/animometer.js: Adjust which stats are shown.
3346         * Animometer/resources/debug-runner/tests.js: Display bootstrapping statistics.
3347         * Animometer/resources/strings.js: Move strings not used by the release harness.
3348
3349         Switch to a pseudo-random number generator.
3350
3351         * Animometer/resources/statistics.js: Add a Pseudo class, with a simple
3352         pseudo-random number generator.
3353         (_calculateRegression): Reset the generator before running bootstrap.
3354         (bootstrap): Deleted.
3355
3356         Replace Math.random with Pseudo.random.
3357         * Animometer/tests/master/resources/canvas-tests.js:
3358         * Animometer/tests/master/resources/focus.js:
3359         * Animometer/tests/master/resources/particles.js:
3360         * Animometer/tests/resources/main.js:
3361
3362         Use bootstrapping to get confidence interval in the breakpoint.
3363
3364         For the ramp controller, calculate the piecewise regression, and then use
3365         bootstrapping in order to find the 95% confidence interval. Use the raw data.
3366
3367         * Animometer/developer.html: Default to the complexity graph. Add a legend
3368         checkbox to toggle visibility of the bootstrap score and histogram.
3369         * Animometer/resources/debug-runner/animometer.css: Make some more space to show
3370         the old raw and average scores in the legend. Add new styles for the data.
3371         * Animometer/resources/debug-runner/graph.js:
3372         (_addRegressionLine): Allow passing an array for the variance bar tied to the
3373         regression line. Now |stdev| is |range|.
3374         (createComplexityGraph): Add bootstrap median, and overlay a histogram of
3375         the bootstrap samples. Switch raw samples from circles to X's.
3376         (onComplexityGraphOptionsChanged): Allow toggling of the bootstrap data.
3377         (onGraphTypeChanged): Move the regressions for the raw and average samples to the
3378         legend. In the subtitle use the bootstrap median, and include the 95% confidence
3379         interval.
3380         * Animometer/resources/runner/animometer.js:
3381         (this._processData.findRegression): Factor out the code that determines which
3382         samples to include when calculating the piecewise regression. For series that have
3383         many samples, or a wider range of recorded complexities, throw away the 2.5%
3384         lowest and highest samples before calculating the regression. Keep all samples
3385         if the number of samples to regress is small or the range of complexities is
3386         narrow.
3387         (this._processData._calculateScore): Factor out regression calculation to
3388         findRegression(). Bootstrap the change point of the regression. The score is the
3389         median.
3390         * Animometer/resources/statistics.js:
3391         (_calculateRegression): Correct an issue in the calculation of the regression, where
3392         the denominator can be 0.
3393         (bootstrap): Template for bootstrapping. Create a bootstrap sample array, Create
3394         re-samples by random selection with replacement. Return the 95% confidence samples,
3395         the bootstrap median, mean, and the data itself.
3396         * Animometer/resources/strings.js: Add bootstrap.
3397         * Animometer/tests/resources/main.js:
3398         (processSamples): Don't prematurely cut the sample data.
3399
3400         Fix graph drawing.
3401
3402         * Animometer/resources/debug-runner/animometer.js: Add spacing in the JSON output.
3403         Multiple tests output a lot of JSON and can hang when selecting JSON with no whitespace.
3404         * Animometer/resources/debug-runner/animometer.css:
3405         (#complexity-graph .series.raw circle): Update the color.
3406         * Animometer/resources/debug-runner/graph.js: Use the FPS axis instead of the
3407         complexity axis, which can vary in domain. For determining the complexity domain,
3408         only use samples after samplingTimeOffset.
3409
3410         Allow dropping results JSON.
3411
3412         * Animometer/developer.html: Add a button.
3413         * Animometer/resources/debug-runner/animometer.css:
3414         * Animometer/resources/debug-runner/animometer.js: Read the data and go straight
3415         to the dashboard. With JSON output, write out only the options and the raw data.
3416
3417         Teach the harness to evaluate the samples and determine the test score.
3418
3419         This will allow us to update how the score is calculated separately from the samples recorded.
3420         This also prepares the harness to be able to accept JSON of prior runs.
3421
3422         * Animometer/resources/strings.js: Clean up and remove unneeded strings and reduce some of the
3423         hierarchy.
3424         * Animometer/resources/debug-runner/tests.js: Update to use the new strings.
3425
3426         * Animometer/tests/resources/main.js: Allow all controllers to show a complexity-FPS graph.
3427         (_processComplexitySamples): Factor out some of the sample processing done in the ramp
3428         controller for the benefit of the other controllers. |complexitySamples| contains a list of
3429         samples. Sort the samples by complexity. Optionally remove the top x% of samples.
3430         Group them, and calculate distribution of samples within the same complexity, and add those as
3431         new entries into |complexityAverageSamples|.
3432         (Controller.processSamples): Move the code responsible for determining the complexity and FPS
3433         scores out to ResultsDashboard. The structure of the data returned by the controller is:
3434
3435         {
3436             controller: [time-regression, time-regression, ...], // optional, data specific to controller
3437             marks: [...],
3438             samples: {                    // all of the sample data
3439                 controller: [...],
3440                 complexity: [...],        // processed from controller samples
3441                 complexityAverage: [...], // processed from complexity samples
3442             }
3443         }
3444
3445         (AdaptiveController.processSamples): Adding the target frame length is no longer necessary; we
3446         now pass the test options to the graph.
3447         (Regression): Move to statistics.js.
3448         * Animometer/resources/statistics.js: Move Regression to here. Add a check if the sampling range
3449         only contains one sample, since we cannot calculate a regression from one sample point.
3450
3451         Teach the test harness to evaluate the data.
3452         * Animometer/resources/runner/animometer.js:
3453         (ResultsDashboard): Store the options used to run the test and the computed results/score separately
3454         from the data. The results are stored as:
3455
3456         {
3457             score: /* geomean of iteration score */,
3458             iterationsResults: [
3459                 {
3460                     score: /* geomean of tests */,
3461                     testsResults: {
3462                         suiteName: {
3463                             testName: {
3464                                 controller: {
3465                                     average:
3466                                     concern:
3467                                     stdev:
3468                                     percent:
3469                                 },
3470                                 frameLength: { ... },
3471                                 complexity: {
3472                                     complexity:
3473                                     stdev:
3474                                     segment1:
3475                                     segment2:
3476                                 },
3477                                 complexityAverage: { ... }
3478                             },
3479                             testName: { ... },
3480                         },
3481                         ... next suite ...
3482                     }
3483                 },
3484                 { ...next iteration... }
3485             ]
3486         }
3487
3488         * Animometer/resources/debug-runner/animometer.js: Pass options around instead of relying
3489         on what was selected in the form. This will later allow for dropping previous results, and
3490         using those runs' options when calculating scores.
3491         (ResultsTable._addGraphButton): Simplify button action by using attached test data.
3492         * Animometer/resources/debug-runner/graph.js: Refactor to use the data.
3493
3494         Consolidate JS files, and move statistics out to a separate JS.
3495
3496         Preparation for having the Controller only handle recording and storage of the samples,
3497         and leave the evaluation of the test score out to the harness. Move Experiment to
3498         a new statistics.js, where Regression will also eventually go. Get rid of algorithm.js
3499         and move it to utilities.js since the Heap is used only for Experiments.
3500
3501         * Animometer/tests/resources/algorithm.js: Removed. Heap is in utilities.js.
3502         * Animometer/tests/resources/sampler.js: Removed. Experiment is in statistics.js,
3503         Sampler in main.js.
3504         * Animometer/tests/resources/main.js: Move Sampler here.
3505         * Animometer/resources/statistics.js: Added. Move Statistics and Experiment here.
3506         * Animometer/resources/extensions.js: Move Heap here. Attach static method to create
3507         a max or min heap to Heap, instead of a new Algorithm object.
3508
3509         Update JS files.
3510         * Animometer/developer.html:
3511         * Animometer/index.html:
3512         * Animometer/tests/bouncing-particles/bouncing-canvas-images.html:
3513         * Animometer/tests/bouncing-particles/bouncing-canvas-shapes.html:
3514         * Animometer/tests/bouncing-particles/bouncing-css-images.html:
3515         * Animometer/tests/bouncing-particles/bouncing-css-shapes.html:
3516         * Animometer/tests/bouncing-particles/bouncing-svg-images.html:
3517         * Animometer/tests/bouncing-particles/bouncing-svg-shapes.html:
3518         * Animometer/tests/master/canvas-stage.html:
3519         * Animometer/tests/master/focus.html:
3520         * Animometer/tests/master/image-data.html:
3521         * Animometer/tests/master/multiply.html:
3522         * Animometer/tests/master/particles.html:
3523         * Animometer/tests/misc/canvas-electrons.html:
3524         * Animometer/tests/misc/canvas-stars.html:
3525         * Animometer/tests/misc/compositing-transforms.html:
3526         * Animometer/tests/simple/simple-canvas-paths.html:
3527         * Animometer/tests/simple/tiled-canvas-image.html:
3528         * Animometer/tests/template/template-canvas.html:
3529         * Animometer/tests/template/template-css.html:
3530         * Animometer/tests/template/template-svg.html:
3531         * Animometer/tests/text/layering-text.html:
3532         * Animometer/tests/text/text-boxes.html:
3533
3534         Fix the cursor in the graph analysis when the min
3535         complexity is not 0.
3536
3537         * Animometer/resources/debug-runner/graph.js:
3538         (_addRegression):
3539         (createComplexityGraph):
3540
3541 2016-02-23  Geoffrey Garen  <ggaren@apple.com>
3542
3543         Fix some issues in MallocBench
3544         https://bugs.webkit.org/show_bug.cgi?id=154600
3545
3546         Reviewed by Oliver Hunt.
3547
3548         * MallocBench/MallocBench.xcodeproj/project.pbxproj: Make nimlang.ops
3549         a part of the build so that it copies to the right place for execution.
3550
3551         * MallocBench/MallocBench/Interpreter.cpp:
3552         (Interpreter::Interpreter): Don't try to open .ops files for writing
3553         because we're only going to read and we might need extra permissions to
3554         write.
3555
3556         (Interpreter::~Interpreter): Give more context when opening a file fails
3557         to help with debugging.
3558
3559         * MallocBench/MallocBench/stress.cpp:
3560         (benchmark_stress): Reduce iterations to complete in less than 10 seconds.
3561
3562 2016-02-23  Michael Saboff  <msaboff@apple.com>
3563
3564         Unreviewed change to revert extraneous changes made part of change set 196955.
3565
3566         * MallocBench/MallocBench/Interpreter.cpp:
3567         (Interpreter::doMallocOp):
3568         (Interpreter::Thread::switchTo):
3569         (writeData): Deleted.
3570
3571 2016-02-19  Michael Saboff  <msaboff@apple.com>
3572
3573         MallocBench: Added recording for nimlang website, new recording details and added new options
3574         https://bugs.webkit.org/show_bug.cgi?id=154485
3575
3576         Reviewed by Geoff Garen.
3577
3578         Added new capabilities to MallocBench.  These include:
3579             Added a recording of http://nim-lang.org/docs/lib.html.
3580             Added thread id to the recording and the ability to playback switching threads in MallocBench
3581             Added aligned allocations to recordings and the ability to playback
3582             Added --use-thread-id option to honor recorded thread ids
3583             Added --detailed-report to output remaining allocations by size after playback
3584             Added --no-warmup to not run the warm up iteration
3585
3586         Changed the way that options are passed down to the benchmarks.  Instead of passing individual
3587         boolean or numeric option values, just pass a reference the CommandLine itself.  Each benchmark
3588         can access the options that are appropriate.  The Benchmark class also uses the options for
3589         is parallel, run counts and warm up.
3590
3591         Added thread id and aligned malloc to the Op by noticing that structure padding and Opcode allowed
3592         for another 32 bits of data.  Breaking that unused 32 bits into a 16 bit thread id value and a
3593         16 bit log base 2 of the alignment for aligned malloc allowed for existing recordings to playback
3594         without any incompatibilities.
3595
3596         Threaded operation is simulated by creating threads as needed.  As long as the next Op's thread id
3597         is the same as the last, operation continues as normal.  When the next Op has a different thread id,
3598         we switch to that thread using the shared Op stream to continue playing back.  There is a mutex to
3599         assure that only one thread is really running at a time and a condition variable used to wait
3600         that the current thread id matches each block thread's thread id.  This doesn't simulate true
3601         concurrent threading, but is instead plays back Ops recorded for multiple thread faithfully.
3602
3603         * MallocBench/MallocBench.xcodeproj/project.pbxproj:
3604         * MallocBench/MallocBench/Benchmark.cpp:
3605         (deallocateHeap):
3606         (Benchmark::Benchmark):
3607         (Benchmark::runOnce):
3608         (Benchmark::run):
3609         * MallocBench/MallocBench/Benchmark.h:
3610         (Benchmark::isValid):
3611         * MallocBench/MallocBench/CommandLine.cpp:
3612         (CommandLine::printUsage):
3613         * MallocBench/MallocBench/CommandLine.h:
3614         (CommandLine::isValid):
3615         (CommandLine::benchmarkName):
3616         (CommandLine::isParallel):
3617         (CommandLine::useThreadID):
3618         (CommandLine::detailedReport):
3619         (CommandLine::warmUp):
3620         (CommandLine::heapSize):
3621         (CommandLine::runs):
3622         * MallocBench/MallocBench/Interpreter.cpp:
3623         (Interpreter::Interpreter):
3624         (Interpreter::run):
3625         (Interpreter::readOps):
3626         (Interpreter::doOnSameThread):
3627         (Interpreter::switchToThread):
3628         (Interpreter::detailedReport):
3629         (compute2toPower):
3630         (writeData):
3631         (Interpreter::doMallocOp):
3632         (Interpreter::Thread::Thread):
3633         (Interpreter::Thread::stop):
3634         (Interpreter::Thread::~Thread):
3635         (Interpreter::Thread::runThread):
3636         (Interpreter::Thread::waitToRun):
3637         (Interpreter::Thread::switchTo):
3638         * MallocBench/MallocBench/Interpreter.h:
3639         (Interpreter::Thread::isMainThread):
3640         * MallocBench/MallocBench/alloc_free.cpp: Added.
3641         (benchmark_alloc_free):
3642         * MallocBench/MallocBench/alloc_free.h: Added.
3643         * MallocBench/MallocBench/balloon.cpp:
3644         (benchmark_balloon):
3645         * MallocBench/MallocBench/balloon.h:
3646         * MallocBench/MallocBench/big.cpp:
3647         (benchmark_big):
3648         * MallocBench/MallocBench/big.h:
3649         * MallocBench/MallocBench/churn.cpp:
3650         (benchmark_churn):
3651         * MallocBench/MallocBench/churn.h:
3652         * MallocBench/MallocBench/facebook.cpp:
3653         (benchmark_facebook):
3654         * MallocBench/MallocBench/facebook.h:
3655         * MallocBench/MallocBench/flickr.cpp:
3656         (benchmark_flickr):
3657         (benchmark_flickr_memory_warning):
3658         * MallocBench/MallocBench/flickr.h:
3659         * MallocBench/MallocBench/fragment.cpp:
3660         (validate):
3661         (benchmark_fragment):
3662         (benchmark_fragment_iterate):
3663         * MallocBench/MallocBench/fragment.h:
3664         * MallocBench/MallocBench/list.cpp:
3665         (benchmark_list_allocate):
3666         (benchmark_list_traverse):
3667         * MallocBench/MallocBench/list.h:
3668         * MallocBench/MallocBench/main.cpp:
3669         (main):
3670         * MallocBench/MallocBench/medium.cpp:
3671         (benchmark_medium):
3672         * MallocBench/MallocBench/medium.h:
3673         * MallocBench/MallocBench/memalign.cpp:
3674         (test):
3675         (benchmark_memalign):
3676         * MallocBench/MallocBench/memalign.h:
3677         * MallocBench/MallocBench/message.cpp:
3678         (benchmark_message_one):
3679         (benchmark_message_many):
3680         * MallocBench/MallocBench/message.h:
3681         * MallocBench/MallocBench/nimlang.cpp: Added.
3682         (benchmark_nimlang):
3683         * MallocBench/MallocBench/nimlang.h: Added.
3684         * MallocBench/MallocBench/nimlang.ops: Added.
3685         * MallocBench/MallocBench/realloc.cpp:
3686         (benchmark_realloc):
3687         * MallocBench/MallocBench/realloc.h:
3688         * MallocBench/MallocBench/reddit.cpp:
3689         (benchmark_reddit):
3690         (benchmark_reddit_memory_warning):
3691         * MallocBench/MallocBench/reddit.h:
3692         * MallocBench/MallocBench/stress.cpp:
3693         (deallocate):
3694         (benchmark_stress):
3695         * MallocBench/MallocBench/stress.h:
3696         * MallocBench/MallocBench/stress_aligned.cpp:
3697         (benchmark_stress_aligned):
3698         * MallocBench/MallocBench/stress_aligned.h:
3699         * MallocBench/MallocBench/theverge.cpp:
3700         (benchmark_theverge):
3701         (benchmark_theverge_memory_warning):
3702         * MallocBench/MallocBench/theverge.h:
3703         * MallocBench/MallocBench/tree.cpp:
3704         (benchmark_tree_allocate):
3705         (benchmark_tree_traverse):
3706         (benchmark_tree_churn):
3707         * MallocBench/MallocBench/tree.h:
3708         * MallocBench/run-malloc-benchmarks:
3709
3710 2016-02-11  Jon Lee  <jonlee@apple.com>
3711
3712         Fix a missing refactoring.
3713
3714         * Animometer/tests/master/resources/multiply.js:
3715         (animate): Move to Utilities.lerp.
3716         (_lerp): Deleted.
3717
3718 2016-02-10  Jon Lee  <jonlee@apple.com>
3719
3720         Add new benchmark tests.
3721         https://bugs.webkit.org/show_bug.cgi?id=154063
3722
3723         Provisionally reviewed by Said Abou-Hallawa.
3724
3725         Add tests for get/put image data, filters, opacity, and css transforms.
3726
3727         * Animometer/resources/runner/benchmark-runner.js:
3728         (_runBenchmarkAndRecordResults): Update the body background color to match that of
3729         the stage.
3730         (this._runNextIteration): Clear the background color style for the results page.
3731         * Animometer/resources/runner/tests.js:
3732         * Animometer/tests/master/focus.html: Added.
3733         * Animometer/tests/master/image-data.html: Added.
3734         * Animometer/tests/master/multiply.html: Added.
3735         * Animometer/tests/master/resources/focus.js: Added.
3736         * Animometer/tests/master/resources/image-data.js: Added.
3737         * Animometer/tests/master/resources/multiply.js: Added.
3738         * Animometer/tests/master/resources/stage.css: Move common styles out.
3739         * Animometer/tests/resources/main.js: Update Stage.randomBool to use Math.random.
3740         Add Stage.randomSign for randomly setting a direction. Add the notion of the
3741         current timestamp of the test to Benchmark, since some animations cycle through
3742         colors and rely on an incremental counter like the time.
3743
3744 2016-02-09  Said Abou-Hallawa  <sabouhallawa@apple.com>
3745
3746         Add internal benchmark tests for CSS mix-blend-modes and filters
3747         https://bugs.webkit.org/show_bug.cgi?id=154058
3748
3749         Provisionally reviewed by Jon Lee.
3750
3751         * Animometer/resources/debug-runner/tests.js: Include the new tests in the
3752         "HTML suite" of the debug runner.
3753
3754         * Animometer/resources/extensions.js:
3755         (Utilities.browserPrefix):
3756         (Utilities.setElementPrefixedProperty): Utility functions to allow setting
3757         prefixed style properties.
3758
3759         * Animometer/tests/bouncing-particles/resources/bouncing-css-shapes.js:
3760         Set the mix-blend-mode and the filter to some random values if the options
3761         of the test requested that.
3762
3763         * Animometer/tests/bouncing-particles/resources/bouncing-particles.js:
3764         (parseShapeParameters): Parse the url options "blend" and "filter" and set
3765         the corresponding flags.
3766
3767         * Animometer/tests/resources/main.js:
3768         (randomStyleMixBlendMode):
3769         (randomStyleFilter): Return random mix-blend-mode and filter.
3770
3771 2016-02-08  Jon Lee  <jonlee@apple.com>
3772
3773         Add a ramp controller
3774         https://bugs.webkit.org/show_bug.cgi?id=154028
3775
3776         Provisionally reviewed by Said Abou-Hallawa.
3777
3778         Enhance the graph to include a complexity-fps graph, in addition
3779         to the time graph.
3780
3781         * Animometer/developer.html: Add a ramp option.
3782         * Animometer/resources/debug-runner/animometer.css: Update the style.
3783         * Animometer/resources/strings.js: Flatten the Strings.text constants.
3784         * Animometer/resources/debug-runner/animometer.js:
3785         (ResultsTable.call._addGraphButton): Refactor.
3786         (ResultsTable.call._addTest): Add regression data.
3787         (benchmarkController): Add a form that allows the user to switch between the two forms,
3788         Add a form that allows the user to toggle different data. Hide certain header columns
3789         depending on the selected controller.
3790         * Animometer/resources/debug-runner/graph.js: Add the complexity regressions.
3791         * Animometer/resources/debug-runner/tests.js: Add headers for the ramp results.
3792         * Animometer/resources/runner/animometer.js:
3793         (ResultsTable): If a header is disabled don't include them in _flattenedHeaders.
3794         * Animometer/tests/resources/main.js:
3795         (Controller): Allow options to specify the capacity for sample arrays.
3796         (Regression): A piecewise regression that tries to fit a slope and a flat profile.
3797         (_calculateRegression): Options can fix the slope and bias when calculating the minimal
3798         error. Sweep across the samples in time (which could be backward depending on the controller)
3799         and calculate the intersection point.
3800         (RampController): This controller assumes that the target frame rate is below
3801         58 FPS. It runs in two stages. The first stage quickly determines the order of
3802         magnitude of objects needed to stress the system by the setting the complexity
3803         to increasingly difficult tiers. Perform a series of ramps descending from a
3804         high-water mark of complexity. The complexity needed to reach the target frame
3805         length is done by performing a piecewise regression on each ramp, and track a
3806         running average of these values. For the next ramp, make that running average
3807         the center of the ramp. With a minimum complexity of 0, the high-water mark is
3808         twice that average. The score is based on the highest complexity that can
3809         reach 60 fps.
3810
3811 2016-02-08  Jon Lee  <jonlee@apple.com>
3812
3813         Address Said's comments on the benchmark, and do some clean up.
3814
3815         * Animometer/developer.html:
3816         * Animometer/resources/debug-runner/animometer.css: Add styles for averages.
3817         * Animometer/resources/debug-runner/animometer.js: Use the right
3818         Strings constants.
3819         * Animometer/resources/debug-runner/graph.js:
3820         (_addRegressionLine): Add missing code to draw the line and standard
3821         deviation highlight.
3822         (onGraphTypeChanged): Remove unneeded variables
3823         (onTimeGraphOptionsChanged):
3824         * Animometer/resources/runner/benchmark-runner.js:
3825         (_runBenchmarkAndRecordResults): Rename samplers to suiteResults and
3826         _suitesSamplers to _suitesResults.
3827         * Animometer/tests/resources/main.js:
3828         (results): Call processSamples().
3829         (update): Change sampling timestamp comparison.
3830         (_animateLoop): Move shouldStop call to before the update.
3831         * Animometer/tests/resources/sampler.js:
3832         (process): Rename to processSamples().
3833
3834 2016-02-07  Jon Lee  <jonlee@apple.com>
3835
3836         Teach Controller to measure intervals, and turn off the frame length estimator.
3837
3838         * Animometer/tests/resources/main.js: Default interval length is 100 ms.
3839         (start): Set the first interval.
3840         (_measureAndResetInterval): Reports the average frame length of the interval that just
3841         completed, and sets up the next interval.
3842         (update): If there is no length, then just use the estimator per frame, otherwise the
3843         estimator measures per interval. Add a didFinishInterval for subclasses to process
3844         prior to recording the sample. Update tune() to include whether an interval had
3845         finished.
3846         (StepController): Step controllers don't measure on an interval basis.
3847
3848 2016-02-07  Jon Lee  <jonlee@apple.com>
3849
3850         Minor refactoring. Rename Controller._estimator to Controller._frameLengthEstimator
3851         and switch the parameters for start(), update(), and tune(), so that the timestamp
3852         is first and stage is second.
3853
3854         * Animometer/tests/resources/main.js:
3855
3856 2016-02-07  Jon Lee  <jonlee@apple.com>
3857
3858         Move ResultsTable functionality not needed for release tests out.
3859         Move reporting of score and mean to selection of the time-based graph.
3860
3861         * Animometer/developer.html: Rename graph-options to time-graph-options.
3862         * Animometer/resources/debug-runner/animometer.js:
3863         (DeveloperResultsTable): Moved from runner/animometer.js. Switch from mean
3864         values to "average" objects which can hold stdev. Move graph button and
3865         calculation of noisy measurements here. Sophisticated header processing
3866         is not needed in release suite.
3867         (populateTable): Use DeveloperResultsTable.
3868         * Animometer/resources/debug-runner/graph.js: Pull time graph creation to
3869         its own function, and add a new onGraphTypeChanged handler in preparation
3870         of a complexity graph to be added later.
3871         * Animometer/resources/runner/animometer.js:
3872         (ResultsTable): Simplify to just handle test names and scores.
3873
3874 2016-02-07  Jon Lee  <jonlee@apple.com>
3875
3876         Tests: reuse objects already made.
3877
3878         Avoid thrash of object creation and removal by maintaining an index that
3879         moves along the array as the adjust values change. If the tune value
3880         requires more objects than the maximum size of the object array, then create
3881         new objects. This means that the object array size never decreases.
3882
3883         * Animometer/tests/master/resources/canvas-stage.js: Maintain a separate
3884         offsetIndex. For these tests, we want to avoid drawing the oldest objects,
3