Register‐Based and Stack‐Based Virtual Machines: Which Perform Better in JIT Compilation Scenarios?

ABSTRACT Background Just‐In‐Time (JIT) compilation plays a critical role in optimizing the performance of modern virtual machines (VMs). While the architecture of VMs–register‐based or stack‐based–has long been a subject of debate, empirical analysis focusing on JIT compilation performance is relatively sparse. Objective In this study, we aim to answer the question: “Register‐based and stack‐based virtual machines: which perform better in JIT compilation scenarios?” Methods We explore this through a comprehensive set of benchmarks measuring execution speed. To achieve this, we developed identical test cases in languages that support both types of VM architectures and ran these tests under controlled conditions. The performance metrics were captured and analyzed for JIT compilation, including initial interpretation, bytecode translation, and optimized code execution. Results Our findings suggest that register‐based VMs generally outperform stack‐based VMs in terms of execution speed. Moreover, the performance gap between the two architectures in mixed execution mode, which essentially copies characteristics of the underlying virtual machine, suggests that making the right choice of VM architecture is still important. Conclusion This study provides developers, researchers, and system architects with actionable insights into the performance trade‐offs associated with each VM architecture in JIT‐compiled environments. The findings can guide the design decisions in the development of new virtual machines and JIT compilation strategies.

Authors

Institutions

Publication Details

Journal
Software Practice and Experience
Published
2025-08-25
DOI
https://doi.org/10.1002/spe.70014
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Register‐Based and Stack‐Based Virtual Machines: Which Perform Better in JIT Compilation Scenarios?

Martin Dostál, Dalibor Fiala, Bohuslav Šimek
Software Practice and Experience
Parallel Computing and Optimization Techniques
article

Register‐Based and Stack‐Based Virtual Machines: Which Perform Better in JIT Compilation Scenarios?

Martin Dostál, Dalibor Fiala, Bohuslav Šimek
article en

Abstract

ABSTRACT Background Just‐In‐Time (JIT) compilation plays a critical role in optimizing the performance of modern virtual machines (VMs). While the architecture of VMs–register‐based or stack‐based–has long been a subject of debate, empirical analysis focusing on JIT compilation performance is relatively sparse. Objective In this study, we aim to answer the question: “Register‐based and stack‐based virtual machines: which perform better in JIT compilation scenarios?” Methods We explore this through a comprehensive set of benchmarks measuring execution speed. To achieve this, we developed identical test cases in languages that support both types of VM architectures and ran these tests under controlled conditions. The performance metrics were captured and analyzed for JIT compilation, including initial interpretation, bytecode translation, and optimized code execution. Results Our findings suggest that register‐based VMs generally outperform stack‐based VMs in terms of execution speed. Moreover, the performance gap between the two architectures in mixed execution mode, which essentially copies characteristics of the underlying virtual machine, suggests that making the right choice of VM architecture is still important. Conclusion This study provides developers, researchers, and system architects with actionable insights into the performance trade‐offs associated with each VM architecture in JIT‐compiled environments. The findings can guide the design decisions in the development of new virtual machines and JIT compilation strategies.

Software Practice and ExperienceVol. 55(11)
University of West Bohemia in Pilsen (CZ)
Openalex Percentile: Top 76%
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.