LmCast :: Stay tuned in

The Green Side of the Lua

Recorded: May 28, 2026, 5:03 a.m.

Original Summarized

[2601.16670] The Green Side of the Lua

Skip to main content

Learn about arXiv becoming an independent nonprofit.

We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors.
Donate

> cs > arXiv:2601.16670

Help | Advanced Search

All fields
Title
Author
Abstract
Comments
Journal reference
ACM classification
MSC classification
Report number
arXiv identifier
DOI
ORCID
arXiv author ID
Help pages
Full text

Search

open search

GO

open navigation menu

quick links

Login
Help Pages
About

Computer Science > Software Engineering

arXiv:2601.16670 (cs)

[Submitted on 23 Jan 2026 (v1), last revised 30 Jan 2026 (this version, v2)]
Title:The Green Side of the Lua
Authors:André Brandão, Diogo Matos, Miguel Guimarães, Simão Cunha, João Saraiva View a PDF of the paper titled The Green Side of the Lua, by Andr\'e Brand\~ao and 4 other authors
View PDF
HTML (experimental)

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 most efficient LuaJIT consumes about seven times less energy and runs seven times faster than the best Lua interpreter. Moreover, LuaJIT approaches C's efficiency, using roughly six times more energy and running about eight times slower, demonstrating the substantial benefits of JIT compilation for improving both performance and energy efficiency in interpreted languages.

Subjects:

Software Engineering (cs.SE); Programming Languages (cs.PL)

Cite as:
arXiv:2601.16670 [cs.SE]

 
(or
arXiv:2601.16670v2 [cs.SE] for this version)

 
https://doi.org/10.48550/arXiv.2601.16670

Focus to learn more

arXiv-issued DOI via DataCite

Submission history From: João Saraiva [view email] [v1]
Fri, 23 Jan 2026 11:40:30 UTC (2,146 KB)
[v2]
Fri, 30 Jan 2026 07:52:17 UTC (2,143 KB)

Full-text links:
Access Paper:

View a PDF of the paper titled The Green Side of the Lua, by Andr\'e Brand\~ao and 4 other authorsView PDFHTML (experimental)TeX Source

view license


Current browse context: cs.SE

< prev

  |  
next >

new
|
recent
| 2026-01

Change to browse by:

cs
cs.PL

References & Citations

NASA ADSGoogle Scholar
Semantic Scholar

export BibTeX citation
Loading...

BibTeX formatted citation
×

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

Links to Code Toggle

Papers with Code (What is Papers with Code?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author
Venue
Institution
Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? |
Disable MathJax (What is MathJax?)

About
Help

contact arXivClick here to contact arXiv
Contact

subscribe to arXiv mailingsClick here to subscribe
Subscribe

Copyright
Privacy Policy

Web Accessibility Assistance

arXiv Operational Status

The study presented in this paper investigates the energy efficiency and runtime performance of the Lua programming language, framed within the context of the United Nations' 2030 Agenda for Sustainable Development which prioritizes energy-efficient software to mitigate the global carbon footprint. The authors posit that the choice of programming language and execution model significantly impacts software energy consumption, noting that interpreted languages are generally less energy-efficient compared to compiled languages. Specifically, Lua, despite its widespread adoption, exhibits lower energy efficiency when compared to greener and faster alternatives such as C.

To empirically analyze this trade-off, the research conducted an empirical study measuring the runtime performance and energy consumption across twenty-five official versions of Lua interpreters and various just-in-time (JIT) compilers. This analysis utilized a comprehensive benchmark suite to thoroughly evaluate the evolution of Lua, the impact of JIT compilation techniques, and comparisons against other languages. The results demonstrated a significant performance and efficiency gap between standard Lua interpreters and those employing JIT compilation methods.

The findings clearly indicate that all LuaJIT compilers significantly outperform standard Lua interpreters. The most efficient LuaJIT implementation was found to consume approximately seven times less energy and execute operations seven times faster than the most efficient standard Lua interpreter. Furthermore, the study established that LuaJIT approaches the efficiency levels of C, consuming roughly six times more energy while running approximately eight times slower. This quantitative data strongly supports the conclusion that JIT compilation provides substantial benefits for enhancing both the performance and energy efficiency inherent in interpreted languages.