Skip to content
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

Provide both aot and jit performance for Dart #368

Open
ChristianKleineidam opened this issue Feb 9, 2023 · 3 comments
Open

Provide both aot and jit performance for Dart #368

ChristianKleineidam opened this issue Feb 9, 2023 · 3 comments

Comments

@ChristianKleineidam
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link

igouy commented Mar 24, 2023

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

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

No branches or pull requests

3 participants