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

Initial Graal native-image creation and Benchmarks #1194

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Conversation

crogoz
Copy link
Contributor

@crogoz crogoz commented Jan 22, 2025

Before this PR

After this PR

==COMMIT_MSG==
Graal native-image and Benchmarks
==COMMIT_MSG==

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Jan 22, 2025

Generate changelog in changelog/@unreleased

What do the change types mean?
  • feature: A new feature of the service.
  • improvement: An incremental improvement in the functionality or operation of the service.
  • fix: Remedies the incorrect behaviour of a component of the service in a backwards-compatible way.
  • break: Has the potential to break consumers of this service's API, inclusive of both Palantir services
    and external consumers of the service's API (e.g. customer-written software or integrations).
  • deprecation: Advertises the intention to remove service functionality without any change to the
    operation of the service itself.
  • manualTask: Requires the possibility of manual intervention (running a script, eyeballing configuration,
    performing database surgery, ...) at the time of upgrade for it to succeed.
  • migration: A fully automatic upgrade migration task with no engineer input required.

Note: only one type should be chosen.

How are new versions calculated?
  • ❗The break and manual task changelog types will result in a major release!
  • 🐛 The fix changelog type will result in a minor release in most cases, and a patch release version for patch branches. This behaviour is configurable in autorelease.
  • ✨ All others will result in a minor version release.

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Initial Graal native-image creation and Benchmarks

Check the box to generate changelog(s)

  • Generate changelog entry


jdk(23) {
distribution = 'graalvm-ce'
jdkVersion = '23.0.1'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

> Task :setupJdks

 + Options
     | Auto-detection:     Disabled
     | Auto-download:      Disabled

 + Amazon Corretto JDK 11.0.25+9-LTS
     | Location:           /Users/crogoz/.gradle/gradle-jdks/amazon-corretto-11.0.25.9.1
     | Language Version:   11
     | Vendor:             Amazon Corretto
     | Architecture:       aarch64
     | Is JDK:             true
     | Detected by:        Gradle property 'org.gradle.java.installations.paths'

 + Amazon Corretto JDK 17.0.13+11-LTS
     | Location:           /Users/crogoz/.gradle/gradle-jdks/amazon-corretto-17.0.13.11.1
     | Language Version:   17
     | Vendor:             Amazon Corretto
     | Architecture:       aarch64
     | Is JDK:             true
     | Detected by:        Current JVM

 + Amazon Corretto JDK 21.0.5+11-LTS
     | Location:           /Users/crogoz/.gradle/gradle-jdks/amazon-corretto-21.0.5.11.1
     | Language Version:   21
     | Vendor:             Amazon Corretto
     | Architecture:       aarch64
     | Is JDK:             true
     | Detected by:        Gradle property 'org.gradle.java.installations.paths'

 + GraalVM Community JDK 23.0.1+11-jvmci-b01
     | Location:           /Users/crogoz/.gradle/gradle-jdks/graalvm-ce-23.0.1
     | Language Version:   23
     | Vendor:             GraalVM Community
     | Architecture:       aarch64
     | Is JDK:             true
     | Detected by:        Gradle property 'org.gradle.java.installations.paths'


@@ -141,11 +141,11 @@ install_and_setup_jdks() {
case "$distribution_url" in
*.zip)
distribution_name=${distribution_url##*/}
curl -C - "$distribution_url" -o "$distribution_name"
curl -L -C - "$distribution_url" -o "$distribution_name"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just ran ./gradlew setupJdks - same below

@@ -0,0 +1,18 @@
[
Copy link
Contributor Author

@crogoz crogoz Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these were generated via https://pl.ntr/2qm

fallback = false
sharedLibrary = false
configurationFileDirectories.from(file('src/main/resources/META-INF/native-image'))
buildArgs.addAll("-H:ConfigurationFileDirectories=${projectDir}/src/main/resources/META-INF/native-image",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crogoz crogoz changed the title Graal native-image and Benchmarks Initial Graal native-image creation and Benchmarks Jan 30, 2025
@crogoz crogoz marked this pull request as ready for review January 30, 2025 16:08

@Measurement(iterations = 2, time = 2)
@Warmup(iterations = 2, time = 4)
public class BenchmarkMultiFiles {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-01-31 at 9 53 19 AM

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

Successfully merging this pull request may close these issues.

2 participants