# Dart flute benchmark applicationThis is a WasmGC build of the `flute` benchmark, a Dart application using the`Flutter` UI framework.It performs the Wasm/compute-only part of rendering a certain number of frames.Since JetStream runs in JS engine shells, the actual rendering to a Canvas isstubbed out.The upstream repository containing pre-built WebAssembly binaries (which weuse here) is at https://github.com/mkustermann/wasm_gc_benchmarks.The Dart source code of the flute application is at https://github.com/dart-lang/flute.## Build InstructionsSee `build.sh` or just run it.See `build.log` for the last build time, used sources, and toolchain versions.## Running in JS shellsTo run the unmodified upstream benchmark, without the JetStream driver, see theupstream repo.In short, the main runner is `build/run_wasm.js`, which takes as arguments aapplication-specific generated JS and Wasm file, and the arguments passed tothe Dart main method.Since different engines / shells resolve JS modules and parse command-linearguments differently, the invocations are something like (from this directory):```path/to/d8 build/run_wasm.js -- flute.dart2wasm.mjs build/flute.dart2wasm.wasm -- $(date +%s.%N) 1000path/to/spidermonkey/js build/run_wasm.js build/flute.dart2wasm.mjs flute.dart2wasm.wasm -- $(date +%s.%N) 1000path/to/jsc build/run_wasm.js -- ./flute.dart2wasm.mjs build/flute.dart2wasm.wasm -- $(date +%s.%N) 1000```