WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152458
Split benchmark into two different pages
https://bugs.webkit.org/show_bug.cgi?id=152458
Summary
Split benchmark into two different pages
Jon Lee
Reported
2015-12-18 22:52:13 PST
One version is simpler to use, the other has more options
Attachments
Patch
(484.79 KB, patch)
2015-12-23 15:21 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
1. Move benchmark resources out
(401.41 KB, patch)
2015-12-23 15:27 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
2. Split tests.js into two
(6.59 KB, patch)
2015-12-23 15:28 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
3. Get rid of utilities.js
(16.93 KB, patch)
2015-12-23 15:28 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
4. Add newer version of harness
(31.26 KB, patch)
2015-12-23 15:29 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
5. A little stylistic cleanup.
(7.89 KB, patch)
2015-12-23 15:29 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
6. Fix a few fly-by errors.
(3.08 KB, patch)
2015-12-23 15:31 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
7. Make it possible to select
(3.72 KB, patch)
2015-12-23 15:31 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
8. Add tests to 'animometer' suite.
(14.95 KB, patch)
2015-12-23 15:32 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
9. Fix selector
(2.10 KB, patch)
2015-12-23 15:32 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
10. Update debug runner
(52.92 KB, patch)
2015-12-23 15:34 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
11. Update the tests.
(4.80 KB, patch)
2015-12-23 15:34 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
12. Update the structure of the harness.
(51.60 KB, patch)
2015-12-23 15:35 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
13. Get rid of prefixed flex properties for now.
(5.86 KB, patch)
2015-12-23 15:36 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
14. Adjustment styles for iOS.
(9.86 KB, patch)
2015-12-23 15:37 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
15. Adjust styles for iPad.
(2.41 KB, patch)
2015-12-23 15:37 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
16. Move Array functions to extensions.js
(3.94 KB, patch)
2015-12-23 15:37 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
17. Follow-up patch
(10.04 KB, patch)
2015-12-23 16:48 PST
,
Jon Lee
no flags
Details
Formatted Diff
Diff
Patch to commit; harness
(484.64 KB, patch)
2015-12-23 17:17 PST
,
Jon Lee
simon.fraser
: review+
Details
Formatted Diff
Diff
Patch to commit; tests
(14.90 KB, patch)
2015-12-23 17:18 PST
,
Jon Lee
simon.fraser
: review+
Details
Formatted Diff
Diff
Show Obsolete
(17)
View All
Add attachment
proposed patch, testcase, etc.
Jon Lee
Comment 1
2015-12-23 15:21:49 PST
Created
attachment 267858
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2015-12-23 15:22:08 PST
<
rdar://problem/24002508
>
Jon Lee
Comment 3
2015-12-23 15:27:07 PST
Created
attachment 267859
[details]
1. Move benchmark resources out
Jon Lee
Comment 4
2015-12-23 15:28:08 PST
Created
attachment 267860
[details]
2. Split tests.js into two
Jon Lee
Comment 5
2015-12-23 15:28:38 PST
Created
attachment 267861
[details]
3. Get rid of utilities.js
Jon Lee
Comment 6
2015-12-23 15:29:09 PST
Created
attachment 267862
[details]
4. Add newer version of harness
Jon Lee
Comment 7
2015-12-23 15:29:37 PST
Created
attachment 267863
[details]
5. A little stylistic cleanup.
Jon Lee
Comment 8
2015-12-23 15:31:19 PST
Created
attachment 267864
[details]
6. Fix a few fly-by errors.
Jon Lee
Comment 9
2015-12-23 15:31:45 PST
Created
attachment 267865
[details]
7. Make it possible to select
Jon Lee
Comment 10
2015-12-23 15:32:11 PST
Created
attachment 267866
[details]
8. Add tests to 'animometer' suite.
Jon Lee
Comment 11
2015-12-23 15:32:55 PST
Created
attachment 267867
[details]
9. Fix selector
Jon Lee
Comment 12
2015-12-23 15:34:25 PST
Created
attachment 267868
[details]
10. Update debug runner
Jon Lee
Comment 13
2015-12-23 15:34:51 PST
Created
attachment 267869
[details]
11. Update the tests.
Jon Lee
Comment 14
2015-12-23 15:35:29 PST
Created
attachment 267871
[details]
12. Update the structure of the harness.
Jon Lee
Comment 15
2015-12-23 15:36:03 PST
Created
attachment 267872
[details]
13. Get rid of prefixed flex properties for now.
Jon Lee
Comment 16
2015-12-23 15:37:05 PST
Created
attachment 267873
[details]
14. Adjustment styles for iOS.
Jon Lee
Comment 17
2015-12-23 15:37:26 PST
Created
attachment 267874
[details]
15. Adjust styles for iPad.
Simon Fraser (smfr)
Comment 18
2015-12-23 15:37:44 PST
Comment on
attachment 267862
[details]
4. Add newer version of harness View in context:
https://bugs.webkit.org/attachment.cgi?id=267862&action=review
> PerformanceTests/Animometer/resources/runner/animometer.css:67 > + border: 2px solid rgb(96, 96, 96); > + color: rgb(96, 96, 96);
Shame we can't use variables!
Jon Lee
Comment 19
2015-12-23 15:37:47 PST
Created
attachment 267875
[details]
16. Move Array functions to extensions.js
Simon Fraser (smfr)
Comment 20
2015-12-23 15:39:21 PST
Comment on
attachment 267865
[details]
7. Make it possible to select View in context:
https://bugs.webkit.org/attachment.cgi?id=267865&action=review
> PerformanceTests/Animometer/resources/runner/animometer.js:92 > + if (event.charCode != 115) // 's' > + return;
Is there any visible text that documents this?
Jon Lee
Comment 21
2015-12-23 15:40:09 PST
(In reply to
comment #20
)
> Comment on
attachment 267865
[details]
> 7. Make it possible to select > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=267865&action=review
> > > PerformanceTests/Animometer/resources/runner/animometer.js:92 > > + if (event.charCode != 115) // 's' > > + return; > > Is there any visible text that documents this?
No, but I do mention it in developer.html.
Simon Fraser (smfr)
Comment 22
2015-12-23 15:40:35 PST
Comment on
attachment 267866
[details]
8. Add tests to 'animometer' suite. View in context:
https://bugs.webkit.org/attachment.cgi?id=267866&action=review
> PerformanceTests/Animometer/tests/master/resources/canvas-tests.js:5 > +function CanvasLineSegment(stage) {
Braces on a new line please.
Simon Fraser (smfr)
Comment 23
2015-12-23 15:41:18 PST
Comment on
attachment 267867
[details]
9. Fix selector View in context:
https://bugs.webkit.org/attachment.cgi?id=267867&action=review
> PerformanceTests/Animometer/resources/debug-runner/animometer.js:15 > + this.recordTable = new ResultsTable(document.querySelector("#test-container .results-table"), Headers);
Shouldn't results-table be an ID if there's only one?
Simon Fraser (smfr)
Comment 24
2015-12-23 15:42:36 PST
Comment on
attachment 267869
[details]
11. Update the tests. I would like to see new tests, and test changes landed separately from the benchmark harness changes.
Simon Fraser (smfr)
Comment 25
2015-12-23 15:44:44 PST
Comment on
attachment 267873
[details]
14. Adjustment styles for iOS. View in context:
https://bugs.webkit.org/attachment.cgi?id=267873&action=review
> PerformanceTests/Animometer/resources/runner/animometer.css:171 > + width: calc(100%); > + height: calc(100%);
Is that just equivalent to 100%?
Simon Fraser (smfr)
Comment 26
2015-12-23 15:46:59 PST
Comment on
attachment 267875
[details]
16. Move Array functions to extensions.js View in context:
https://bugs.webkit.org/attachment.cgi?id=267875&action=review
> PerformanceTests/Animometer/resources/extensions.js:9 > +if (!Array.prototype.fill) {
Odd spacing.
> PerformanceTests/Animometer/resources/extensions.js:23 > + for (; k < final; k++) { > + object[k] = value; > + }
No braces.
> PerformanceTests/Animometer/resources/extensions.js:32 > + if (this === null) > + throw new TypeError('Array.prototype.find called on null or undefined');
Why check here, and not for fill?
Jon Lee
Comment 27
2015-12-23 16:24:23 PST
(In reply to
comment #22
)
> Comment on
attachment 267866
[details]
> 8. Add tests to 'animometer' suite. > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=267866&action=review
> > > PerformanceTests/Animometer/tests/master/resources/canvas-tests.js:5 > > +function CanvasLineSegment(stage) { > > Braces on a new line please.
Done. (In reply to
comment #23
)
> Comment on
attachment 267867
[details]
> 9. Fix selector > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=267867&action=review
> > > PerformanceTests/Animometer/resources/debug-runner/animometer.js:15 > > + this.recordTable = new ResultsTable(document.querySelector("#test-container .results-table"), Headers); > > Shouldn't results-table be an ID if there's only one?
This gets removed later. (In reply to
comment #24
)
> Comment on
attachment 267869
[details]
> 11. Update the tests. > > I would like to see new tests, and test changes landed separately from the > benchmark harness changes.
Will do. (In reply to
comment #25
)
> Comment on
attachment 267873
[details]
> 14. Adjustment styles for iOS. > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=267873&action=review
> > > PerformanceTests/Animometer/resources/runner/animometer.css:171 > > + width: calc(100%); > > + height: calc(100%); > > Is that just equivalent to 100%?
Yes. Fixed. (In reply to
comment #26
)
> Comment on
attachment 267875
[details]
> 16. Move Array functions to extensions.js > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=267875&action=review
> > > PerformanceTests/Animometer/resources/extensions.js:9 > > +if (!Array.prototype.fill) { > > Odd spacing.
Fixed.
> > > PerformanceTests/Animometer/resources/extensions.js:23 > > + for (; k < final; k++) { > > + object[k] = value; > > + } > > No braces.
Fixed.
> > PerformanceTests/Animometer/resources/extensions.js:32 > > + if (this === null) > > + throw new TypeError('Array.prototype.find called on null or undefined'); > > Why check here, and not for fill?
It should. Added. The check also needs to be fixed to ==.
Jon Lee
Comment 28
2015-12-23 16:48:36 PST
Created
attachment 267878
[details]
17. Follow-up patch
Jon Lee
Comment 29
2015-12-23 17:17:50 PST
Created
attachment 267881
[details]
Patch to commit; harness
Jon Lee
Comment 30
2015-12-23 17:18:36 PST
Created
attachment 267882
[details]
Patch to commit; tests
Simon Fraser (smfr)
Comment 31
2015-12-23 17:26:04 PST
Comment on
attachment 267881
[details]
Patch to commit; harness View in context:
https://bugs.webkit.org/attachment.cgi?id=267881&action=review
> PerformanceTests/Animometer/resources/debug-runner/animometer.js:25 > +window.optionsManager = > +{
brace on same line.
> PerformanceTests/Animometer/resources/debug-runner/benchmark-runner.js:140 > + if (state.isFirstTest()) { > + this._appendFrame(); > + }
No braces.
> PerformanceTests/Animometer/resources/runner/animometer.js:29 > +window.sectionsManager = > +{
brace on same line.
Simon Fraser (smfr)
Comment 32
2015-12-23 17:27:51 PST
Comment on
attachment 267882
[details]
Patch to commit; tests View in context:
https://bugs.webkit.org/attachment.cgi?id=267882&action=review
> PerformanceTests/Animometer/tests/master/resources/canvas-stage.js:9 > +} > +SimpleCanvasStage.prototype = Object.create(Stage.prototype);
I would prefer blank lines after functions.
> PerformanceTests/Animometer/tests/master/resources/canvas-stage.js:58 > +function SimpleCanvasBenchmark(suite, test, options, progressBar) { > + StageBenchmark.call(this, suite, test, options, progressBar); > +} > +SimpleCanvasBenchmark.prototype = Object.create(StageBenchmark.prototype); > +SimpleCanvasBenchmark.prototype.constructor = SimpleCanvasBenchmark; > +SimpleCanvasBenchmark.prototype.createAnimator = function() {
Braces on new line.
> PerformanceTests/Animometer/tests/master/resources/canvas-tests.js:221 > +})();
LOL JS
Jon Lee
Comment 33
2015-12-23 17:32:22 PST
Committed
r194407
: <
http://trac.webkit.org/changeset/194407
>
Jon Lee
Comment 34
2015-12-23 17:37:15 PST
Committed
r194408
: <
http://trac.webkit.org/changeset/194408
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug