-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add the ability to run web_benchmarks with Wasm #5611
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
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.
@@ -55,6 +55,7 @@ class BenchmarkServer { | |||
required this.chromeDebugPort, | |||
required this.headless, | |||
required this.treeShakeIcons, | |||
this.useWasm = false, |
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.
I wonder if this will have the same effect as useCanvasKit
above. useCanvasKit
ended up being not extensible enough, so we'll need to make a breaking change to accommodate Skwasm. I wonder if we should instead have a CompilationOptions
object that can be extended in the future. cc @eyebrowsoffire
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.
I added a CompilationOptions class. PTAL @yjbanov @eyebrowsoffire. Since this is a breaking change, I also did a major version bump - let me know if we want to hold off on bringing this package to '1.0.0'.
class CompilationOptions { | ||
/// Creates a [CompilationOptions] object. | ||
const CompilationOptions({ | ||
this.renderer = WebRenderer.html, |
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.
The default should ABSOLUTELY be canvaskit
. I'd say ditch the html
option entirely!
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.
Well, this is published. Maybe just default to canvaskit
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.
Looks good to me!
flutter/packages@15584a3...6cd0657 2023-12-08 [email protected] [gis_web] Correct pub.dev changelog entry. (flutter/packages#5613) 2023-12-08 [email protected] Add the ability to run web_benchmarks with Wasm (flutter/packages#5611) 2023-12-08 [email protected] [google_sign_in] Endorse macOS implementation (flutter/packages#5600) 2023-12-07 [email protected] [go_router_builder] add support to `go_router_builder` for initializing a `ShellRoute` with `observers` (flutter/packages#5563) 2023-12-07 [email protected] [go_router] Fix(docs): Typo in Update navigation.md (flutter/packages#5545) 2023-12-07 [email protected] [two_dimensional_scrollables] Expose addAutomaticKeepAlives in Table delegates (flutter/packages#5597) 2023-12-07 [email protected] [pigeon] Fix pigeon issue_tracker link (flutter/packages#5505) 2023-12-07 [email protected] Pointer interceptor implementations (flutter/packages#5594) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This uses the same run flags that the flutter benchmark tests use: https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/web_benchmarks.dart#L36-L40 CC @kevmoo
This uses the same run flags that the flutter benchmark tests use: https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/web_benchmarks.dart#L36-L40 CC @kevmoo
This uses the same run flags that the flutter benchmark tests use: https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/web_benchmarks.dart#L36-L40
CC @kevmoo