Using GraalVM to reduce startup time

Yash Bansal
3 min readFeb 8, 2024

Comparison between typical JVM startup time to GraalVM time

What is GraalVM

GraalVM is a high-performance virtual machine that is designed to run applications written in various programming languages. It is an open-source project that was initiated by Oracle, and it provides a range of benefits to developers, including improved performance, reduced memory usage, and faster startup times.

What is Startup Time?

Startup time is the amount of time it takes for an application to launch and become functional. It is a critical metric that can impact user experience and determine the success of an application. The faster an application can start, the better it is for users, as it reduces the waiting time and enhances the overall performance.

How GraalVM Reduces Startup Time?

GraalVM uses a technology called Ahead-of-Time (AOT) compilation to reduce the startup time of applications. AOT compilation is a process where the application code is compiled into native code before it is executed. This approach is different from the traditional Just-in-Time (JIT) compilation used by most virtual machines, which compiles code at runtime.

Time for some DEMO….

--

--

Yash Bansal

100K+ views, Principal Engineer, Loves to read and write about latest tech, sometimes about life topics . Find me on Topmate - https://topmate.io/yashbansal042