hanabi1224 / Programming-Language-Benchmarks

Yet another implementation of computer language benchmarks game
https://programming-language-benchmarks.vercel.app/
MIT License
652 stars 133 forks source link

Provide both aot and jit performance for Dart #368

Open ChristianKleineidam opened 1 year ago

ChristianKleineidam commented 1 year ago

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.

hanabi1224 commented 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

ChristianKleineidam commented 1 year ago

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.

igouy commented 1 year ago

regex-redux Dart JIT #4 program

COMMAND LINE:
/opt/src/dart-sdk/bin/dart run  regexredux.dartjit-4.dartjit 0 < regexredux-input5000000.txt

regex-redux Dart #4 program

/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