Example Applications

Here you will find example applications written in Java, JavaScript, R, Ruby, and other JVM languages to illustrate the diverse capabilities of GraalVM.

The GraalVM compiler, enabled by default, assures performance advantages for highly abstracted programs due to its versatile optimization techniques. Code using more abstraction and modern Java features like Streams or Lambdas will see greater speedups. Java Performance Examples and Java stream API Benchmark demonstrate this.

The Polyglot JavaScript, Java, R Example Application proves that GraalVM can be a polyglot runtime and can process programs written in two or more languages.

The Native Image Examples illustrate GraalVM unique capabilities to create self-contained executable images which can run unbelievably fast. There you can find even more sophisticated example showing the possibility to create polyglot native images.

The Java/Kotlin Native Image Example example demonstrates how to compile a Java and Kotlin application ahead-of-time and what is the performance gain.