Presentation: JIT vs AOT Performance With GraalVM
Share this on:
What You’ll Learn
- Hear about GraalVM, what is it good for from a performance point of view.
- Learn how to optimize your applications for better performance.
Abstract
In this session we are going to talk about various aspects of performance, such as peak throughput, startup, memory footprint and more, and how you can optimize your applications for them with GraalVM. GraalVM is a high-performance virtual machine, bringing new performance optimizations for individual languages and seamless interoperability for polyglot applications.
In particular, we’ll discuss JIT and AOT compilation and and talk about their advantages and trade-offs. Also, we’ll go through some practical examples comparing JIT compilation with HotSpot and GraalVM, JIT and AOT, improving AOT with profile-guided optimizations and more.
What is the work you're doing today?
I'm a developer advocate for GraalVM, and this means that I’m responsible for interacting with our developer community. So I help people to learn about GraalVM: what it is, what capabilities does it offer, how they can use GraalVM in various scenarios and make the most of it.
What are the goals you have for the talk?
I want to offer an additional point of view on performance. Performance is something people often talk about, but often focus on one or two metrics, and there might be more ways to look at it, and additional opportunities to optimize. We will go through some additional metrics, discuss how they are connected, and how you can optimize for each of them, specifically in the just-in-time compilation and ahead-of-time compilation modes.
Could you give me an example of, say, a new performance optimization that you can do in GraalVM that you can't do with the JVM C2?
GraalVM can offer the ability to compile Java applications ahead of time into a native binary. The reason why you might be interested in doing so is because you will get faster startup and will consume significantly less memory compared to traditional just in time (JIT) compilation setup. JIT is very good for optimizing for peak performance, but for startup and memory footprints the native images can offer very competitive advantages. This is something you might be specifically interested in if you are working with cloud and microservices, as these performance metrics may become more relevant for you.
You optimize for a smaller or a quicker startup time vs. the longer term performance that the classic JVM has. I got that right?
With GraalVM you can optimize for both. With JIT and AOT modes, you can choose whatever works for you and what your priorities for a particular application are. You can really do both, and we discuss how to do this, along with benefits and trade-offs of both ways.
What do you want people to leave the talk with?
The idea is to give the audience some food for thought and motivation to try some of the different ways to trade-off the performance dimensions when they go back to work, and gain performance improvements as the result.
Last Year's Tracks
Monday, 16 November
-
Distributed Systems for Developers
Computer science in practice. An applied track that fuses together the human side of computer science with the technical choices that are made along the way
-
The Future of APIs
Web-based API continue to evolve. The track provides the what, how, and why of future APIs, including GraphQL, Backend for Frontend, gRPC, & ReST
-
Resurgence of Functional Programming
What was once a paradigm shift in how we thought of programming languages is now main stream in nearly all modern languages. Hear how software shops are infusing concepts like pure functions and immutablity into their architectures and design choices.
-
Social Responsibility: Implications of Building Modern Software
Software has an ever increasing impact on individuals and society. Understanding these implications helps build software that works for all users
-
Non-Technical Skills for Technical Folks
To be an effective engineer, requires more than great coding skills. Learn the subtle arts of the tech lead, including empathy, communication, and organization.
-
Clientside: From WASM to Browser Applications
Dive into some of the technologies that can be leveraged to ultimately deliver a more impactful interaction between the user and client.
Tuesday, 17 November
-
Languages of Infra
More than just Infrastructure as a Service, today we have libraries, languages, and platforms that help us define our infra. Languages of Infra explore languages and libraries being used today to build modern cloud native architectures.
-
Mechanical Sympathy: The Software/Hardware Divide
Understanding the Hardware Makes You a Better Developer
-
Paths to Production: Deployment Pipelines as a Competitive Advantage
Deployment pipelines allow us to push to production at ever increasing volume. Paths to production looks at how some of software's most well known shops continuous deliver code.
-
Java, The Platform
Mobile, Micro, Modular: The platform continues to evolve and change. Discover how the platform continues to drive us forward.
-
Security for Engineers
How to build secure, yet usable, systems from the engineer's perspective.
-
Modern Data Engineering
The innovations necessary to build towards a fully automated decentralized data warehouse.
Wednesday, 18 November
-
Machine Learning for the Software Engineer
AI and machine learning are more approachable than ever. Discover how ML, deep learning, and other modern approaches are being used in practice by Software Engineers.
-
Inclusion & Diversity in Tech
The road map to an inclusive and diverse tech organization. *Diversity & Inclusion defined as the inclusion of all individuals in an within tech, regardless of gender, religion, ethnicity, race, age, sexual orientation, and physical or mental fitness.
-
Architectures You've Always Wondered About
How do they do it? In QCon's marquee Architectures track, we learn what it takes to operate at large scale from well-known names in our industry. You will take away hard-earned architectural lessons on scalability, reliability, throughput, and performance.
-
Architecting for Confidence: Building Resilient Systems
Your system will fail. Build systems with the confidence to know when they do and you won’t.
-
Remotely Productive: Remote Teams & Software
More and more companies are moving to remote work. How do you build, work on, and lead teams remotely?
-
Operating Microservices
Building and operating distributed systems is hard, and microservices are no different. Learn strategies for not just building a service but operating them at scale.