Skip to content

Replace Dart-flute-complex with Dart-flute-todomvc #97

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eqrion
Copy link

@eqrion eqrion commented Jul 23, 2025

This is the WIP commit I've been using to compare the behavior of Dart-flute-todomvc and Dart-flute-complex. I also built a local version of https://wonderous.app/web/ using Wasm-GC to compare as well.

From profiling I observed the following relative rates of allocation in bytes per frame:

  • Dart-flute-todomvc = 1x (baseline)
  • Dart-flute-complex = 39x
  • wondrous.app = 0.34x

This is from a profiler that samples 1% of allocations and reports the stack, bytes, etc for them. So I have good relative numbers, but not precise absolute numbers.

In summary, complex allocates about 39x more bytes than todomvc, which allocates about 3x more bytes than wondrous.app.

In addition, over half of the allocated bytes in complex are coming from stacks with CupertinoTimePicker in their name. That seems excessive to me.

I would prefer if todomvc replaces complex, as it seems more representative of realistic workloads. This PR includes both for if anyone else wants to do comparisons on them, but I would remove the complex benchmark if we go ahead with this.

Here are dartpad links for complex/todomvc if anyone wants to look at the rendered output of either.

cc' @danleh @camillobruni @kmiller68 @mkustermann

Update to the latest wasm_gc_benchmarks commit, and pull in the todomvc
benchmark too.

I had to update the benchmark runner polyfill. I just copy pasted things
from tools/run_wasm.js until it worked for me. This part likely needs
some filtering and clean up.
Copy link

netlify bot commented Jul 23, 2025

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit e16893c
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/68814d1b47b2f40007fa30c2
😎 Deploy Preview https://deploy-preview-97--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant