Support different compile options for running the benchmarks
Problem to solve
Currently the benchmark command line just runs a simple dart
command. It would be useful if we can benchmark against different compile options.
Proposal
Dart has a compile
command, we could use this to compile the benchmark to various formats and then run the compiled version, it has the following options:
aot-snapshot Compile Dart to an AOT snapshot.
exe Compile Dart to a self-contained executable.
jit-snapshot Compile Dart to a JIT snapshot.
js Compile Dart to JavaScript.
kernel Compile Dart to a kernel snapshot.