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.


翻译:联合国《2030年可持续发展议程》强调能效软件对减少全球碳足迹的重要性。编程语言与执行模型对软件能耗具有显著影响,其中解释型语言通常比编译型语言能效更低。Lua语言正是这一权衡的例证:尽管广受欢迎,其能效却低于C语言等更环保、更快速的编程语言。本文通过实证研究,系统评估了25个官方解释器版本及即时编译(JIT)环境下Lua的运行性能与能源效率。基于综合性基准测试套件,我们测量了执行时间与能耗,以分析Lua的演进趋势、JIT编译的影响以及与其他语言的对比。结果表明:所有LuaJIT编译器均显著优于标准Lua解释器。最高效的LuaJIT版本能耗降低约七倍,运行速度提升约七倍。此外,LuaJIT已接近C语言的效率水平——其能耗约为C语言的六倍,运行速度约为C语言的八分之一,这充分证明了JIT编译技术在提升解释型语言性能与能效方面的巨大潜力。

0
下载
关闭预览

相关内容

Lua 是一门轻量而快速的脚本语言,功能在高级动态语言中十分完备,对 C API、嵌入式开发以及线程安全的 VM 的支持,使其非常流行。
LLM/智能体作为数据分析师:综述
专知会员服务
36+阅读 · 2025年9月30日
LLMs与生成式智能体模拟:复杂系统研究的新范式
专知会员服务
27+阅读 · 2025年6月15日
《LLM 时代小模型的作用》综述
专知会员服务
49+阅读 · 2024年9月12日
《中国绿色算力发展研究报告(2024年)》,81页pdf
专知会员服务
31+阅读 · 2024年7月14日
《利用人工智能加速能源转型》报告
专知会员服务
85+阅读 · 2022年2月23日
智能合约的形式化验证方法研究综述
专知
16+阅读 · 2021年5月8日
报告 | 绿色制造标准化白皮书(2019年版)(附PDF下载)
走向智能论坛
11+阅读 · 2019年9月10日
学界 | ACL 2019 论文收录数据官方详解!
AI科技评论
24+阅读 · 2019年7月3日
ACL 2019 | 微软8篇精选论文解读,一览最新研究进展
微软研究院AI头条
12+阅读 · 2019年6月28日
图像检索研究进展:浅层、深层特征及特征融合
中国计算机学会
123+阅读 · 2018年3月26日
用Rasa NLU构建自己的中文NLU系统
待字闺中
18+阅读 · 2017年9月18日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Arxiv
0+阅读 · 1月23日
VIP会员
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员