The Green Side of the Lua

radiator2 pts0 comments

[2601.16670] The Green Side of the Lua

-->

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<br>View a PDF of the paper titled The Green Side of the Lua, by Andr\'e Brand\~ao and 4 other authors

View PDF<br>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:<br>arXiv:2601.16670 [cs.SE]

(or<br>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<br>From: João Saraiva [view email]<br>[v1]<br>Fri, 23 Jan 2026 11:40:30 UTC (2,146 KB)

[v2]<br>Fri, 30 Jan 2026 07:52:17 UTC (2,143 KB)

Full-text links:<br>Access Paper:

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

view license

Current browse context: cs.SE

next >

new<br>recent<br>| 2026-01

Change to browse by:

cs<br>cs.PL

References & Citations

NASA ADS<br>Google Scholar

Semantic Scholar

export BibTeX citation<br>Loading...

BibTeX formatted citation

&times;

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? |<br>Disable MathJax (What is MathJax?)

toggle arxiv energy papers code view

Related Articles