-
Notifications
You must be signed in to change notification settings - Fork 57
FED-4308 Add dart2js output benchmarks #991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 57e39e3. This didn't actually affect the size diff, since we compare the size of a single component, and not the size of the test case as a whole. As a result, all other code outside of the component is not factored into that size difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+10 this is awesome!
- smoke tested all the different variations of commands with different dependencies both versions and git references and it all looked great! (also help output was clear too)
| import 'dart2js_output/logging.dart'; | ||
| import 'dart2js_output/source.dart' as source; | ||
|
|
||
| Future<void> main(List<String> args) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be mentioned somewhere in the readme or wherever so we remember we have this debugging tool or do we not care that much?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mm good thought, but yeah I don't care that much haha. This and the other benchmark are pretty niche and on aspects of the code that don't get worked on much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay cool!
|
@Workiva/release-management-p |
rmconsole-wf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from RM
Motivation
As part of implementing #989, I put together some "benchmarks" of dart2js code output that made it easier to inspect dart2js output and compare sizes.
These benchmarks will be helpful in future work when optimizing dart2js, so let's add them to the repo.
Changes
Add
benchmark/dart2js_output.dartwith various sub-commands:Remove redendant
_benchmarkfrom existingbenchmark/builder_parsing_benchmark.dartExample output of commands:
dart run benchmark/dart2js_output.dart get-code --no-verbosedart run benchmark/dart2js_output.dart compare-code --no-verbose --base '"5.4.6"'(comparing 5.4.6 to HEAD)Release Notes
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
QA Checklist
--verbose) and verify they work and have good--helpoutputMerge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: