arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1611.00467cs.PL
收藏

基于堆栈和基于寄存器的虚拟机性能研究

A Performance Survey on Stack-based and Register-based Virtual Machines

Ruijie Fang, Siqi Liu

摘要:

虚拟机已经广泛地适用于高级程序设计语言实现和提供一定程度的平台中立性。随着虚拟机的整体使用和适应性的增长,虚拟机的整体性能已成为广泛讨论的话题。在本文中,我们提出了一个调查的性能差异的两个最广泛适应类型的虚拟机-基于堆栈的虚拟机和基于寄存器的虚拟机-使用各种基准程序。此外,我们采用了一种新的性能测量方法,通过在自定义实现的轻量级虚拟机上运行基准测试时测量总体调度时间、调度量、获取时间和执行时间。最后,我们提出了两个轻量级的,定制设计的,图灵等效的虚拟机,专门设计的基准虚拟机的性能-“概念”基于堆栈的虚拟机,和“惯性”基于寄存器的虚拟机。我们的研究结果表明,虽然平均而言,寄存器机器在执行基准测试上花费的时间比堆栈机器少20.39%,但基于堆栈的虚拟机在取指令时间方面仍然比虚拟机快。

英文摘要:

Virtual machines have been widely adapted for high-level programming language implementations and for providing a degree of platform neutrality. As the overall use and adaptation of virtual machines grow, the overall performance of virtual machines has become a widely-discussed topic. In this paper, we present a survey on the performance differences of the two most widely adapted types of virtual machines - the stack-based virtual machine and the register-based virtual machine - using various benchmark programs. Additionally, we adopted a new approach of measuring performance by measuring the overall dispatch time, amount of dispatches, fetch time, and execution time while running benchmarks on custom-implemented, lightweight virtual machines. Finally, we present two lightweight, custom-designed, Turing-equivalent virtual machines that are specifically designed in benchmarking virtual machine performance - the "Conceptum" stack-based virtual machine, and the "Inertia" register-based virtual machine. Our result showed that while on average the register machine spends 20.39% less time in executing benchmarks than the stack machine, the stack-based virtual machine is still faster than the virtual machine regarding the instruction fetch time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑