Added binary platform channels test#81874
Conversation
7008340 to
468f58f
Compare
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@dnfield Please give this a review. I know it's a bit of a pain because of Github's UI, but since the tree is blocked I don't want to get a huge backlog of reviews, too. It might help if you click on the commits after 095c3a1, I think all of the changes are in |
a73c7ac to
c55a359
Compare
c55a359 to
8a83dd3
Compare
|
@dnfield It's been rebased now so it should be easy to review, I'll add @goderbauer too since I know you said your schedule might be weird today. |
dnfield
left a comment
There was a problem hiding this comment.
Couple formatting nits. The warmup lap should be pretty simple.
There was a problem hiding this comment.
nit: no new line here, or add a comma to the end of the string and put the closing paren on a new line.
There was a problem hiding this comment.
I tried that and it didn't look any better to my eyes. Having a trailing comma for a parameter list is odd, it's not like an array or map literal. This is what the automatic formatter wants in this case.
There was a problem hiding this comment.
It's what the style guide wants: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#if-you-have-a-newline-after-some-opening-punctuation-match-it-on-the-closing-punctuation
We don't use dartfmt in this repo, although it can come close if you specify a longer line length like 120 or something.
There was a problem hiding this comment.
Done, imo If you have a newline after some opening punctuation, match it on the closing punctuation. doesn't make any sense. What is "it" and what should it be matched with? I read it about 20 times trying to understand how it applies to this case and I still don't get it but from the examples it seems applicable =P
| Future<double> _runBasicStandardSmall( | ||
| BasicMessageChannel<Object> basicStandard) async { | ||
| final Stopwatch watch = Stopwatch(); | ||
| watch.start(); |
There was a problem hiding this comment.
For this and the one below, we should have a warmup lap. Even though the Dart code is AOT in profile/release modes, on at least the Android side we'll be hitting JVM code.
There was a problem hiding this comment.
Nice catch before these are turned on, done.
There was a problem hiding this comment.
Did you add/commit the changes? I'm not seeing it yet.
There was a problem hiding this comment.
And in case it's not clear, what I mean by warmup here is to actually use the message channel at least once before you start the stop watch.
There was a problem hiding this comment.
Yep it's there. Each function is called with the parameter of count = 1 before it is actually measured.
There was a problem hiding this comment.
The stopwatch happens for the warmup, but the result is thrown away
There was a problem hiding this comment.
Ahhh ok, thanks I missed that.
| const int numMessages = 2500; | ||
|
|
||
| final BenchmarkResultPrinter printer = BenchmarkResultPrinter(); | ||
| await _runBasicStandardSmall(basicStandard, 1); |
There was a problem hiding this comment.
nit: here or in the method, consider adding ac omment about this being a warmup run.
This depends on #81414
issue: #81559
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.