Open ChristianKleineidam opened 1 year ago
As I understand, dart compile exe
output is equivalent to dart compile aot-snapshot
output + self-contained dartaotruntime
, and dart compile jit-snapshot
does not work for some of the programs
I asked on Flutters Discord and according to them the answer of how you get the jit is:
the "jit" benchmark would just be running the programs using the dart command The AOT benchmark would be to do what hanabi describes. You can either use the exe or make a aot-snapshot and run it with the dartaotruntime. Both solutions here gives the same result.
regex-redux Dart JIT #4 program
COMMAND LINE:
/opt/src/dart-sdk/bin/dart run regexredux.dartjit-4.dartjit 0 < regexredux-input5000000.txt
/opt/src/dart-sdk/bin/dart compile exe regexredux.dartexe-4.dartexe -o regexredux.dartexe-4.dartexe_run
...
COMMAND LINE:
./regexredux.dartexe-4.dartexe_run 0 < regexredux-input5000000.txt
Dart includes both a Dart VM with just-in-time (JIT) compilation and an ahead-of-time (AOT) compiler for producing machine code. It would be great if both modes would be in the benchmarks.