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

eval of a Source object takes twice the time in a native image #843

Open
nsoubelet opened this issue Sep 4, 2024 · 0 comments
Open

eval of a Source object takes twice the time in a native image #843

nsoubelet opened this issue Sep 4, 2024 · 0 comments

Comments

@nsoubelet
Copy link

nsoubelet commented Sep 4, 2024

Hi team,

Some context of my current env:

  • Graal Version => graalvm-community-openjdk-22+36.1
  • org.graalvm.polyglot:polyglot => 24.0.2
  • org.graalvm.polyglot:js-community => 24.0.2
  • Relevant Build args: --gc=serial; -march=compatibility

The "issue" is really simple, when evaluating a somehow complex Source, like this one , in a regular Java app (no native) it takes, let's say, 1000ms, but when evaluating the same Source in a native image, it takes exactly twice the time, that is, 2000ms.

By adding stopwatches to the entire operation (Context Creation > Bindings > Eval), I confirmed that 99.9% of the total time is consumed by the eval, meaning that problem is entirely isolated, so there is nothing else adding noise to the measurement.

Is it a known thing or am I misconfiguring something from my side?

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

1 participant