The Green Side of the Lua
Andr\'e Brand\~ao, Diogo Matos, Miguel Guimar\~aes, Sim\~ao Cunha, Jo\~ao Saraiva

TL;DR
This study empirically evaluates Lua's runtime performance and energy efficiency, revealing that JIT compilation significantly enhances Lua's energy and execution speed, approaching the efficiency of lower-level languages like C.
Contribution
It provides a comprehensive empirical analysis of Lua's energy efficiency across multiple interpreter versions and JIT compilers, highlighting the impact of JIT on performance and energy consumption.
Findings
LuaJIT outperforms standard Lua interpreters by 7x in energy and speed.
LuaJIT consumes about 6x more energy and is 8x slower than C.
JIT compilation substantially improves energy efficiency in interpreted languages.
Abstract
The United Nations' 2030 Agenda for Sustainable Development highlights the importance of energy-efficient software to reduce the global carbon footprint. Programming languages and execution models strongly influence software energy consumption, with interpreted languages generally being less efficient than compiled ones. Lua illustrates this trade-off: despite its popularity, it is less energy-efficient than greener and faster languages such as C. This paper presents an empirical study of Lua's runtime performance and energy efficiency across 25 official interpreter versions and just-in-time (JIT) compilers. Using a comprehensive benchmark suite, we measure execution time and energy consumption to analyze Lua's evolution, the impact of JIT compilation, and comparisons with other languages. Results show that all LuaJIT compilers significantly outperform standard Lua interpreters. The…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGreen IT and Sustainability · Parallel Computing and Optimization Techniques · Cloud Computing and Resource Management
