RESOLVED FIXED 152679
Update benchmark test suite
https://bugs.webkit.org/show_bug.cgi?id=152679
Summary Update benchmark test suite
Jon Lee
Reported 2016-01-03 18:13:58 PST
Update tests.
Attachments
1. Fix tests for other browsers. (3.35 KB, patch)
2016-01-04 14:31 PST, Jon Lee
no flags
2. Move algorithm.js and sampler.js to tests/ and benchmark-runner.js to runner/. (48.82 KB, patch)
2016-01-04 14:31 PST, Jon Lee
no flags
3. Add a new test. (70.26 KB, patch)
2016-01-04 14:31 PST, Jon Lee
no flags
3. Add new test (Take 2) (13.25 KB, patch)
2016-01-07 19:00 PST, Jon Lee
no flags
1. Fix tests for other browsers (Take 2) (3.28 KB, patch)
2016-01-07 19:02 PST, Jon Lee
no flags
2. Move algorithm.js and sampler.js (Take 2) (48.82 KB, patch)
2016-01-07 19:03 PST, Jon Lee
simon.fraser: review+
Radar WebKit Bug Importer
Comment 1 2016-01-03 18:14:11 PST
Jon Lee
Comment 2 2016-01-04 14:31:17 PST
Created attachment 268232 [details] 1. Fix tests for other browsers.
Jon Lee
Comment 3 2016-01-04 14:31:36 PST
Created attachment 268233 [details] 2. Move algorithm.js and sampler.js to tests/ and benchmark-runner.js to runner/.
Jon Lee
Comment 4 2016-01-04 14:31:56 PST
Created attachment 268234 [details] 3. Add a new test.
Said Abou-Hallawa
Comment 5 2016-01-04 14:43:45 PST
Comment on attachment 268233 [details] 2. Move algorithm.js and sampler.js to tests/ and benchmark-runner.js to runner/. View in context: https://bugs.webkit.org/attachment.cgi?id=268233&action=review > PerformanceTests/ChangeLog:16 > + into utilities.js. Did you mean "into extensions.js"?
Said Abou-Hallawa
Comment 6 2016-01-04 15:20:13 PST
Comment on attachment 268234 [details] 3. Add a new test. View in context: https://bugs.webkit.org/attachment.cgi?id=268234&action=review > PerformanceTests/Animometer/resources/extensions.js:96 > + return new Point(this.x + other, this.y + other); I am not sure if adding a scalar value to a point/size is something meaningful.
Said Abou-Hallawa
Comment 7 2016-01-04 15:20:46 PST
All looks good to me. Unofficial r=me.
Jon Lee
Comment 8 2016-01-04 15:26:19 PST
Comment on attachment 268233 [details] 2. Move algorithm.js and sampler.js to tests/ and benchmark-runner.js to runner/. View in context: https://bugs.webkit.org/attachment.cgi?id=268233&action=review >> PerformanceTests/ChangeLog:16 >> + into utilities.js. > > Did you mean "into extensions.js"? Yes
Jon Lee
Comment 9 2016-01-04 15:26:52 PST
(In reply to comment #4) > Created attachment 268234 [details] > 3. Add a new test. I will check in a version with the corrected ChangeLog.
Jon Lee
Comment 10 2016-01-07 19:00:12 PST
Created attachment 268524 [details] 3. Add new test (Take 2)
Jon Lee
Comment 11 2016-01-07 19:02:58 PST
Created attachment 268526 [details] 1. Fix tests for other browsers (Take 2)
Jon Lee
Comment 12 2016-01-07 19:03:49 PST
Created attachment 268527 [details] 2. Move algorithm.js and sampler.js (Take 2)
Simon Fraser (smfr)
Comment 13 2016-01-07 19:06:15 PST
Comment on attachment 268526 [details] 1. Fix tests for other browsers (Take 2) View in context: https://bugs.webkit.org/attachment.cgi?id=268526&action=review > PerformanceTests/ChangeLog:14 > + (CanvasElectron.prototype._draw): Some browsers don't support ellipse. Which ones?
Simon Fraser (smfr)
Comment 14 2016-01-07 19:06:40 PST
Comment on attachment 268526 [details] 1. Fix tests for other browsers (Take 2) View in context: https://bugs.webkit.org/attachment.cgi?id=268526&action=review > PerformanceTests/Animometer/resources/extensions.js:70 > + var rect = element.getBoundingClientRect(); > + return new Point(rect.width, rect.height); Are you sure this doesn't cause layout thrashing?
Simon Fraser (smfr)
Comment 15 2016-01-07 19:16:33 PST
Comment on attachment 268524 [details] 3. Add new test (Take 2) View in context: https://bugs.webkit.org/attachment.cgi?id=268524&action=review > PerformanceTests/Animometer/resources/extensions.js:96 > + if(isNaN(other.x)) > + return new Point(this.x + other, this.y + other); Weird but ok! > PerformanceTests/Animometer/tests/master/resources/dom-particles.js:25 > + this.element.style.backgroundColor = "hsl(" + (((Date.now()/2000)%1)*360) + ", 70%, 45%)"; Are the outer parens around Date.now()... necessary?
Jon Lee
Comment 16 2016-01-07 19:18:21 PST
(In reply to comment #13) > Comment on attachment 268526 [details] > 1. Fix tests for other browsers (Take 2) > > View in context: > https://bugs.webkit.org/attachment.cgi?id=268526&action=review > > > PerformanceTests/ChangeLog:14 > > + (CanvasElectron.prototype._draw): Some browsers don't support ellipse. > > Which ones? Firefox.
Jon Lee
Comment 17 2016-01-07 19:22:49 PST
(In reply to comment #14) > Comment on attachment 268526 [details] > 1. Fix tests for other browsers (Take 2) > > View in context: > https://bugs.webkit.org/attachment.cgi?id=268526&action=review > > > PerformanceTests/Animometer/resources/extensions.js:70 > > + var rect = element.getBoundingClientRect(); > > + return new Point(rect.width, rect.height); > > Are you sure this doesn't cause layout thrashing? This function is only called when the stage is initialized, and for graphing. It is not called during the benchmark run. I wouldn't expect any benchmark to make a call to this because it should be caching its size.
Jon Lee
Comment 18 2016-01-07 19:25:01 PST
(In reply to comment #15) > Comment on attachment 268524 [details] > 3. Add new test (Take 2) > > View in context: > https://bugs.webkit.org/attachment.cgi?id=268524&action=review > > > PerformanceTests/Animometer/resources/extensions.js:96 > > + if(isNaN(other.x)) > > + return new Point(this.x + other, this.y + other); > > Weird but ok! > > > PerformanceTests/Animometer/tests/master/resources/dom-particles.js:25 > > + this.element.style.backgroundColor = "hsl(" + (((Date.now()/2000)%1)*360) + ", 70%, 45%)"; > > Are the outer parens around Date.now()... necessary? No. This calculation is done enough that I'll probably factor it out anyway in a future patch.
WebKit Commit Bot
Comment 19 2016-01-07 19:54:54 PST
Comment on attachment 268526 [details] 1. Fix tests for other browsers (Take 2) Clearing flags on attachment: 268526 Committed r194752: <http://trac.webkit.org/changeset/194752>
Jon Lee
Comment 20 2016-01-07 19:59:02 PST
Jon Lee
Comment 21 2016-01-07 19:59:16 PST
(In reply to comment #20) > Committed r194753: <http://trac.webkit.org/changeset/194753> This is patch #2.
Jon Lee
Comment 22 2016-01-07 20:28:44 PST
Jon Lee
Comment 23 2016-01-07 20:30:17 PST
fix in r194756
Note You need to log in before you can comment on or make changes to this bug.