YARV是“Ruby程序语言”的一个字节码解译器,它是由笹田耕一领导的。YARV这个名称是“Yet another Ruby VM”(又一个Ruby虚拟机器)的首字母缩写。这个项目的目标是大幅度地减少Ruby程序的运行时间。
在YARV成为Ruby 1.9的官方解译器后,人们也称它为KRI(Koichi's Ruby Interpreter,Koichi的Ruby解译器)。
性能
由rubychan.de給出的評分,可以看到YARV有著大幅的性能提升。 而Antonio Cangiano 給出的評分顯示,平均起來YARV比原來的解譯器要快3倍。 兩個評分給出的都是綜合性的結果。
據報導,在YARV上執行的Ruby on Rails 比在1.8.6上執行要快15%。然而,啟動和ActiveRecord功能反而變慢了。
歷史
在2007年1月1日,YARV首次出現在Ruby下個版本的CVS庫之中。
後来,Ruby的創造者松本行弘把YARV完全放入Ruby 1.9.0(於2007年12月26日發布) 。從這個版本起,YARV成为了官方的Ruby解释器,取代原本由松本行弘製作的版本。
另见
- Parrot虚拟机
- Ruby
- Rubinius
引用
外部链接
- [http://www.atdot.net/yarv/ YARV home page] Note: obsolete now that YARV is merged into Ruby
- [http://www.atdot.net/yarv/rc2006_sasada_yarv_on_rails.pdf YARV: Yet Another RubyVM ... on Rails?] - Koichi Sasada's RubyConf 2006 presentation
- [http://antoniocangiano.com/2008/12/09/the-great-ruby-shootout-december-2008/ The Great Ruby Shootout (December 2008)] - Ruby 1.9.1 (YARV) versus other Ruby VMs
- [https://web.archive.org/web/20090218121038/http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=yarv YARV in The Computer Language Benchmarks Game] - Ruby 1.9.0(YARV) versus Ruby 1.8.6
- [https://web.archive.org/web/20101204223835/http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=yarv&lang2=ruby YARV in The Computer Language Benchmarks Game] - Ruby 1.9.1 versus Ruby 1.8.7
评论 (0)