RESOLVED FIXED 86017
add some basic perf-o-matic tests for flexbox
https://bugs.webkit.org/show_bug.cgi?id=86017
Summary add some basic perf-o-matic tests for flexbox
Tony Chang
Reported 2012-05-09 14:21:06 PDT
add some basic perf-o-matic tests for flexbox
Attachments
Patch (7.00 KB, patch)
2012-05-09 14:23 PDT, Tony Chang
no flags
Tony Chang
Comment 1 2012-05-09 14:23:10 PDT
Tony Chang
Comment 2 2012-05-09 14:24:23 PDT
Comment on attachment 141012 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141012&action=review > PerformanceTests/Layout/flexbox-column-nowrap.html:33 > +PerfTestRunner.run(runTest, 180, 20, function() { > + document.getElementById("flexbox").style.display = 'none'; > +}); Do I need the done function? Without it, the column tests failed, but the row tests passed.
Ryosuke Niwa
Comment 3 2012-05-09 14:37:46 PDT
Comment on attachment 141012 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141012&action=review > PerformanceTests/Layout/flexbox-column-nowrap.html:31 > +PerfTestRunner.run(runTest, 180, 20, function() { It's fragile to rely on hard-coded values like this. >> PerformanceTests/Layout/flexbox-column-nowrap.html:33 >> +}); > > Do I need the done function? Without it, the column tests failed, but the row tests passed. done is called after all tests have ran.
Tony Chang
Comment 4 2012-05-09 14:39:23 PDT
Comment on attachment 141012 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141012&action=review >> PerformanceTests/Layout/flexbox-column-nowrap.html:31 >> +PerfTestRunner.run(runTest, 180, 20, function() { > > It's fragile to rely on hard-coded values like this. I'm sorry, I don't understand. What value should not be hard coded?
Ryosuke Niwa
Comment 5 2012-05-09 14:49:45 PDT
You need done function if you're adding something to the document. run-perf-test assumes any line it doesn't understand as an error message. What I meant about the hard-coded number is that we should use runs/s as ojan suggested.
Tony Chang
Comment 6 2012-05-09 14:52:57 PDT
(In reply to comment #5) > What I meant about the hard-coded number is that we should use runs/s as ojan suggested. Yeah, I didn't want to just copy/paste the code from Dromaeo/resources/dromaeorunner.js. Ideally, this would be something that resources/runner.js supports natively. I'll file a bug about this.
WebKit Review Bot
Comment 7 2012-05-09 15:44:37 PDT
Comment on attachment 141012 [details] Patch Clearing flags on attachment: 141012 Committed r116564: <http://trac.webkit.org/changeset/116564>
WebKit Review Bot
Comment 8 2012-05-09 15:44:41 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.